text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22824302_3 (steals VARCHAR, games_played VARCHAR)
### Question:
How many interceptions for the team who played 31 games?
### Answer:
SELECT steals FROM table_22824302_3 WHERE games_played = 31 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (drawn VARCHAR, lost VARCHAR)
### Question:
Which Drawn has a Lost of 19?
### Answer:
SELECT drawn FROM table_name_61 WHERE lost = "19" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE visitor (name VARCHAR, id VARCHAR); CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)
### Question:
What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?
### Answer:
SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2818164_4 (no_in_series INTEGER, directed_by VARCHAR, original_air_date VARCHAR)
### Question:
What is the series number for the episode directed by jay sandrich that aired October 23, 1986?
### Answer:
SELECT MIN(no_in_series) FROM table_2818164_4 WHERE directed_by = "Jay Sandrich" AND original_air_date = "October 23, 1986" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR)
### Question:
What is the date for Orangeville?
### Answer:
SELECT date FROM table_name_56 WHERE name = "orangeville" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR)
### Question:
How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?
### Answer:
SELECT COUNT(drawn) FROM table_name_2 WHERE cambridge_united_career = "2008–2009" AND lost < 13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR)
### Question:
When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?
### Answer:
SELECT gt4_winner FROM table_30062172_3 WHERE circuit = "Donington Park" AND gt3_winner = "Charles Bateman Michael Lyons" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (pick VARCHAR, name VARCHAR)
### Question:
what is the pick for robert griffin iii?
### Answer:
SELECT pick FROM table_name_97 WHERE name = "robert griffin iii" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12095519_1 (frequency VARCHAR, origin VARCHAR)
### Question:
How often does a train leave sealdah?
### Answer:
SELECT frequency FROM table_12095519_1 WHERE origin = "Sealdah" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (turbo VARCHAR, model_number VARCHAR, l2_cache VARCHAR, release_date VARCHAR)
### Question:
What turbo has a L2 cache of 4 × 256 kb, a release date of June 2013, and a Model number of core i7-4770s?
### Answer:
SELECT turbo FROM table_name_78 WHERE l2_cache = "4 × 256 kb" AND release_date = "june 2013" AND model_number = "core i7-4770s" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (team_name VARCHAR, school VARCHAR)
### Question:
What is the team name from Hammond Bishop Noll?
### Answer:
SELECT team_name FROM table_name_42 WHERE school = "hammond bishop noll" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE gas_station (location VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, market_value INTEGER); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR)
### Question:
Show all locations where a gas station for company with market value greater than 100 is located.
### Answer:
SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (to_par INTEGER, country VARCHAR, year_s__won VARCHAR)
### Question:
What is the sum of To Par, when Country is "United States", and when Year(s) Won is "1973"?
### Answer:
SELECT SUM(to_par) FROM table_name_23 WHERE country = "united states" AND year_s__won = "1973" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_29 (round VARCHAR, time VARCHAR)
### Question:
What is the total number of rounds at 5:36?
### Answer:
SELECT COUNT(round) FROM table_name_29 WHERE time = "5:36" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (head_coach VARCHAR, president VARCHAR)
### Question:
Who is the Head Coach of the team whose President is Mario Volarevic?
### Answer:
SELECT head_coach FROM table_name_86 WHERE president = "mario volarevic" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (date VARCHAR, record VARCHAR)
### Question:
What date was the game when the liberty had a record of 12-9?
### Answer:
SELECT date FROM table_name_63 WHERE record = "12-9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (date VARCHAR, fastest_lap VARCHAR)
### Question:
What day did Patrick Tambay have the fastest lap?
### Answer:
SELECT date FROM table_name_35 WHERE fastest_lap = "patrick tambay" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR)
### Question:
What game was developed by Nintendo for the Gamecube platform?
### Answer:
SELECT game FROM table_name_92 WHERE developer_s_ = "nintendo" AND platform_s_ = "gamecube" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (season VARCHAR, league VARCHAR, assists VARCHAR)
### Question:
In what Season were there 86 Assists in the WCJHL League?
### Answer:
SELECT season FROM table_name_53 WHERE league = "wcjhl" AND assists = 86 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (position VARCHAR, played INTEGER)
### Question:
What was the position has a played entry of more than 24?
### Answer:
SELECT COUNT(position) FROM table_name_68 WHERE played > 24 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (podiums VARCHAR, f_laps VARCHAR, points VARCHAR)
### Question:
What listing for Podiums has 0 F/laps and 39 points?
### Answer:
SELECT podiums FROM table_name_38 WHERE f_laps = "0" AND points = "39" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (player VARCHAR, year_s__won VARCHAR)
### Question:
Player than won in 2003?
### Answer:
SELECT player FROM table_name_94 WHERE year_s__won = "2003" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (shts INTEGER, club VARCHAR, mins VARCHAR)
### Question:
What is the largest number for SHTS for the San Jose earthquakes with MINS larger than 2700?
### Answer:
SELECT MAX(shts) FROM table_name_23 WHERE club = "san jose earthquakes" AND mins > 2700 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR)
### Question:
What is the team's record on april 12?
### Answer:
SELECT record FROM table_name_11 WHERE date = "april 12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (erp_w VARCHAR, frequency_mhz VARCHAR)
### Question:
What was the ERP W for 96.7 MHz?
### Answer:
SELECT erp_w FROM table_name_44 WHERE frequency_mhz = 96.7 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29296103_10 (runner_up VARCHAR, tournament VARCHAR, champion VARCHAR)
### Question:
How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?
### Answer:
SELECT COUNT(runner_up) FROM table_29296103_10 WHERE tournament = "Cologne , Germany Carpet – $75,000 – S32/D16" AND champion = "Matt Doyle 1–6, 6–1, 6–2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_89 (date VARCHAR, loss VARCHAR)
### Question:
What was the date of the game that had a loss of lidle (10-8)?
### Answer:
SELECT date FROM table_name_89 WHERE loss = "lidle (10-8)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (place VARCHAR, position VARCHAR, points VARCHAR)
### Question:
What was the place with 90 point total but a position less than 5?
### Answer:
SELECT place FROM table_name_12 WHERE position < 5 AND points = 90 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29033869_3 (score__collingwoods_score_is_in_bold_ VARCHAR, date VARCHAR)
### Question:
What was the score on saturday, 26 june 7:10pm?
### Answer:
SELECT score__collingwoods_score_is_in_bold_ FROM table_29033869_3 WHERE date = "Saturday, 26 June 7:10pm" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1348246_3 (Radio VARCHAR, secretariat VARCHAR)
### Question:
What are radio electricals when secretariat is wtr i?
### Answer:
SELECT Radio AS electrical FROM table_1348246_3 WHERE secretariat = "WTR I" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19283806_4 (cook_pvi VARCHAR, representative VARCHAR)
### Question:
What is the Cook PVI for the location that has a representative of Mike Thompson?
### Answer:
SELECT cook_pvi FROM table_19283806_4 WHERE representative = "Mike Thompson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (silver INTEGER, bronze VARCHAR)
### Question:
Bronze of 22 has what average silver?
### Answer:
SELECT AVG(silver) FROM table_name_99 WHERE bronze = 22 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (away_team VARCHAR, home_team VARCHAR)
### Question:
What was the away score when North Melbourne was played?
### Answer:
SELECT away_team AS score FROM table_name_91 WHERE home_team = "north melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (headquarters VARCHAR, employees__world_ VARCHAR)
### Question:
Which HQ is associated with a number of employees of 100?
### Answer:
SELECT headquarters FROM table_name_23 WHERE employees__world_ = 100 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18662026_10 (parallel_bars VARCHAR, floor VARCHAR)
### Question:
If the floor number is 14.200, what is the number for the parallel bars?
### Answer:
SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.200" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (year VARCHAR, team VARCHAR, laps VARCHAR)
### Question:
How many years have toyota team tom's as the team, with Laps greater than 64?
### Answer:
SELECT COUNT(year) FROM table_name_60 WHERE team = "toyota team tom's" AND laps > 64 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (playoffs VARCHAR, year VARCHAR)
### Question:
which playoffs took place during 2011?
### Answer:
SELECT playoffs FROM table_name_88 WHERE year = "2011" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_1 (record VARCHAR, game VARCHAR)
### Question:
What was the record after game 41?
### Answer:
SELECT record FROM table_name_1 WHERE game = 41 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (name VARCHAR, website VARCHAR)
### Question:
What is the name of the newspaper with the website liderinformativo.com ?
### Answer:
SELECT name FROM table_name_17 WHERE website = "liderinformativo.com" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_143579_1 (area___ha__ INTEGER, island VARCHAR)
### Question:
What is the area of Colonsay Island?
### Answer:
SELECT MIN(area___ha__) FROM table_143579_1 WHERE island = "Colonsay" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (constructor VARCHAR, rounds VARCHAR)
### Question:
Who is the Constructor for round 5?
### Answer:
SELECT constructor FROM table_name_58 WHERE rounds = "5" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (fastest_lap VARCHAR, constructor VARCHAR, location VARCHAR)
### Question:
Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?
### Answer:
SELECT fastest_lap FROM table_name_39 WHERE constructor = "ferrari" AND location = "zolder" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (position VARCHAR, pick VARCHAR)
### Question:
What position does pick 113 play?
### Answer:
SELECT position FROM table_name_96 WHERE pick = 113 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, week VARCHAR)
### Question:
Name for me the total number in attendance for week before 2 and result of t 24-24
### Answer:
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "t 24-24" AND week < 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (model_number VARCHAR, voltage VARCHAR, frequency VARCHAR)
### Question:
What is Model Number, when Voltage is 2.0V, and when Frequency is 350 mhz?
### Answer:
SELECT model_number FROM table_name_2 WHERE voltage = "2.0v" AND frequency = "350 mhz" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20524090_1 (obama_percentage VARCHAR, county VARCHAR)
### Question:
What was Obama's percentage in the county of Alleghany?
### Answer:
SELECT obama_percentage FROM table_20524090_1 WHERE county = "Alleghany" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (wireless_network VARCHAR, screen_type VARCHAR, internal_storage VARCHAR)
### Question:
Which wireless network did LCD displays with 4 GB of internal storage use?
### Answer:
SELECT wireless_network FROM table_name_6 WHERE screen_type = "lcd" AND internal_storage = "4 gb" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (to_par VARCHAR, player VARCHAR)
### Question:
What is To Par, when Player is K. J. Choi?
### Answer:
SELECT to_par FROM table_name_58 WHERE player = "k. j. choi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (week INTEGER, result VARCHAR)
### Question:
In what week was the Result L 15-13?
### Answer:
SELECT AVG(week) FROM table_name_91 WHERE result = "l 15-13" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_256286_61 (type VARCHAR, _percentage_yes VARCHAR)
### Question:
How many type catagories are listed when the percentage of yes is 68.91%?
### Answer:
SELECT COUNT(type) FROM table_256286_61 WHERE _percentage_yes = "68.91%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (venue VARCHAR, game VARCHAR)
### Question:
What is the venue of game 3?
### Answer:
SELECT venue FROM table_name_88 WHERE game = 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (year INTEGER, playoffs VARCHAR)
### Question:
Which year had playoffs of champion?
### Answer:
SELECT AVG(year) FROM table_name_27 WHERE playoffs = "champion" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1579922_1 (broadcast_date VARCHAR, run_time VARCHAR)
### Question:
What date was an episode with a run time of 24:30 broadcasted?
### Answer:
SELECT broadcast_date FROM table_1579922_1 WHERE run_time = "24:30" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR)
### Question:
What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?
### Answer:
SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = "apolo anton ohno" AND best_score > 30 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11254821_2 (points_awarded__platinum_ VARCHAR, points_awarded__gold_ VARCHAR)
### Question:
How many platinum points were awarded when 9 gold points were awarded?
### Answer:
SELECT points_awarded__platinum_ FROM table_11254821_2 WHERE points_awarded__gold_ = 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (airport VARCHAR, iata VARCHAR)
### Question:
Which airport has an IATA of TYN?
### Answer:
SELECT airport FROM table_name_52 WHERE iata = "tyn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (year INTEGER, publication VARCHAR)
### Question:
What is the publication the observer music monthly highest year?
### Answer:
SELECT MAX(year) FROM table_name_10 WHERE publication = "the observer music monthly" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
### Question:
Who is the home team when melbourne is the away team?
### Answer:
SELECT home_team AS score FROM table_name_47 WHERE away_team = "melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (runs VARCHAR, opponent VARCHAR)
### Question:
Which Runs has a Opponent of south australia?
### Answer:
SELECT runs FROM table_name_53 WHERE opponent = "south australia" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (area___ha__ VARCHAR, height__m_ VARCHAR, island VARCHAR)
### Question:
What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?
### Answer:
SELECT area___ha__ FROM table_name_31 WHERE height__m_ > 7 AND island = "linga holm" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_70 (swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR)
### Question:
What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5?
### Answer:
SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR)
### Question:
When was the Jamaica Classic Tournament?
### Answer:
SELECT date FROM table_name_10 WHERE tournament = "the jamaica classic" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (events INTEGER, tournament VARCHAR, top_10 VARCHAR)
### Question:
What is the lowest number of events the Open Championship has with a less than 0 top-10?
### Answer:
SELECT MIN(events) FROM table_name_30 WHERE tournament = "the open championship" AND top_10 < 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (winner VARCHAR, date VARCHAR)
### Question:
Who won on May 2011?
### Answer:
SELECT winner FROM table_name_76 WHERE date = "may 2011" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25947046_1 (jews_and_others_1 INTEGER, localities VARCHAR)
### Question:
What is the lowest jews and others 1 for the localities 11?
### Answer:
SELECT MIN(jews_and_others_1) FROM table_25947046_1 WHERE localities = 11 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (length_of_retirement VARCHAR, president VARCHAR)
### Question:
What is the length of retirement for president Sharma, Shankar Shankar Dayal Sharma?
### Answer:
SELECT length_of_retirement FROM table_name_49 WHERE president = "sharma, shankar shankar dayal sharma" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10392906_2 (week INTEGER, game_site VARCHAR)
### Question:
In what week was the first game played at the Commerzbank-Arena?
### Answer:
SELECT MIN(week) FROM table_10392906_2 WHERE game_site = "Commerzbank-Arena" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE musical (Nominee VARCHAR)
### Question:
Show different nominees and the number of musicals they have been nominated.
### Answer:
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (heat VARCHAR, mark VARCHAR)
### Question:
What is Heat, when Mark is 6.69?
### Answer:
SELECT heat FROM table_name_42 WHERE mark = "6.69" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (type VARCHAR, cc_license VARCHAR)
### Question:
What different types are there with a CC License of by-nc-sa 2.5?
### Answer:
SELECT type FROM table_name_25 WHERE cc_license = "by-nc-sa 2.5" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14945881_1 (date VARCHAR, week VARCHAR)
### Question:
Name the date when week is 9
### Answer:
SELECT date FROM table_14945881_1 WHERE week = 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (home_team VARCHAR)
### Question:
What is richmond's score as the home team?
### Answer:
SELECT home_team AS score FROM table_name_93 WHERE home_team = "richmond" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (played__pj_ INTEGER, place__posición_ VARCHAR, lost__pp_ VARCHAR)
### Question:
What is the average number played for place 2 and more than 4 lost?
### Answer:
SELECT AVG(played__pj_) FROM table_name_18 WHERE place__posición_ = 2 AND lost__pp_ > 4 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (county VARCHAR, per_capita_income VARCHAR)
### Question:
What county has $51,456 income per capita?
### Answer:
SELECT county FROM table_name_37 WHERE per_capita_income = "$51,456" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (away_captain VARCHAR, date VARCHAR)
### Question:
Who is the away captain for the matches dated 7,8,10,11 feb 1908?
### Answer:
SELECT away_captain FROM table_name_47 WHERE date = "7,8,10,11 feb 1908" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (name VARCHAR, college VARCHAR)
### Question:
Who is from the College of Cincinnati?
### Answer:
SELECT name FROM table_name_38 WHERE college = "cincinnati" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (reimboldsh VARCHAR, willingshain VARCHAR, gersdorf VARCHAR)
### Question:
What Reimboldsh has Willingshain of 268 and Gersdorf 194?
### Answer:
SELECT reimboldsh FROM table_name_24 WHERE willingshain = "268" AND gersdorf = "194" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2159571_1 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)
### Question:
Who is every vacator if date of successors formal installation is August 8, 1960?
### Answer:
SELECT vacator FROM table_2159571_1 WHERE date_of_successors_formal_installation = "August 8, 1960" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)
### Question:
Which vocal type has the band mate with first name "Marianne" played the most?
### Answer:
SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = "Marianne" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (result VARCHAR, date VARCHAR)
### Question:
What was the result on 16 November 2003?
### Answer:
SELECT result FROM table_name_34 WHERE date = "16 november 2003" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (l2_cache VARCHAR, model_number VARCHAR)
### Question:
What is the L2 cache for the Mobile Pentium 333?
### Answer:
SELECT l2_cache FROM table_name_48 WHERE model_number = "mobile pentium 333" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (total INTEGER, nation VARCHAR)
### Question:
What is total number of wins for England?
### Answer:
SELECT SUM(total) FROM table_name_59 WHERE nation = "england" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR)
### Question:
Who played the final match on November 23, 1998?
### Answer:
SELECT opponent_in_the_final FROM table_name_69 WHERE date = "november 23, 1998" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE TV_Channel (series_name VARCHAR, country VARCHAR, id VARCHAR); CREATE TABLE cartoon (Channel VARCHAR, directed_by VARCHAR)
### Question:
Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?
### Answer:
SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Michael Chang' INTERSECT SELECT T1.series_name, T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by = 'Ben Jones' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (length__km_ INTEGER, name VARCHAR, length__mi_ VARCHAR)
### Question:
What's the shortest length from north klondike highway that has a length less than 326?
### Answer:
SELECT MIN(length__km_) FROM table_name_38 WHERE name = "north klondike highway" AND length__mi_ < 326 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (to_par_ VARCHAR, a_ VARCHAR, year VARCHAR, champion VARCHAR)
### Question:
What was the To Par [a] when Charles Coody Category:Articles with hCards was champion and the year was earlier than 1973?
### Answer:
SELECT to_par_[a_] FROM table_name_6 WHERE year < 1973 AND champion = "charles coody category:articles with hcards" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1671401_1 (top_5 INTEGER)
### Question:
Name the least top 5
### Answer:
SELECT MIN(top_5) FROM table_1671401_1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
### Question:
what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s?
### Answer:
SELECT constellation FROM table_name_10 WHERE right_ascension___j2000__ = "10h18m58.4s" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_1 (losses VARCHAR, golden_rivers VARCHAR, byes VARCHAR)
### Question:
What is the total losses when Hay is the golden river and there are more than 2 byes?
### Answer:
SELECT COUNT(losses) FROM table_name_1 WHERE golden_rivers = "hay" AND byes > 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
### Question:
What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals?
### Answer:
SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 10 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (date_to VARCHAR, name VARCHAR, date_from VARCHAR)
### Question:
When was febian brandy loaned out until, when was loaned out on 2 february 2009.?
### Answer:
SELECT date_to FROM table_name_12 WHERE name = "febian brandy" AND date_from = "2 february 2009" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (county VARCHAR, location VARCHAR)
### Question:
Which County has a Location of edinburgh?
### Answer:
SELECT county FROM table_name_74 WHERE location = "edinburgh" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (venue VARCHAR, away_team VARCHAR)
### Question:
For the game where the away team was North Melbourne, what was the venue?
### Answer:
SELECT venue FROM table_name_7 WHERE away_team = "north melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (mpix INTEGER, width VARCHAR, aspect_ratio VARCHAR, height VARCHAR)
### Question:
What camera has the highest Mpix with an aspect ratio of 2:1, a height less than 1536, and a width smaller than 2048?
### Answer:
SELECT MAX(mpix) FROM table_name_51 WHERE aspect_ratio = "2:1" AND height < 1536 AND width < 2048 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_256286_14 (_percentage_yes VARCHAR, yes_votes VARCHAR)
### Question:
Name the % yes for yes votes for 78961
### Answer:
SELECT _percentage_yes FROM table_256286_14 WHERE yes_votes = 78961 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_28 (rider VARCHAR, grid VARCHAR)
### Question:
Who is the rider when the grid number is 3?
### Answer:
SELECT rider FROM table_name_28 WHERE grid = 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2417308_3 (state__class_ VARCHAR, successor VARCHAR)
### Question:
What state had william bigler (d) as a successor)
### Answer:
SELECT state__class_ FROM table_2417308_3 WHERE successor = "William Bigler (D)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (character_name VARCHAR, voice_actor__english_1998___pioneer_ VARCHAR)
### Question:
what character did Laara sadiq play
### Answer:
SELECT character_name FROM table_name_50 WHERE voice_actor__english_1998___pioneer_ = "laara sadiq" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19215259_1 (branding VARCHAR, location VARCHAR)
### Question:
What is the brand in Metro Manila?
### Answer:
SELECT branding FROM table_19215259_1 WHERE location = "Metro Manila" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (stadium VARCHAR, date VARCHAR)
### Question:
What stadium was the game played in on november 20?
### Answer:
SELECT stadium FROM table_name_65 WHERE date = "november 20" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.