question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the sum of Kilometers that has a Station Code of KGQ?
CREATE TABLE table_name_43 (kilometers VARCHAR, station_code VARCHAR)
SELECT COUNT(kilometers) FROM table_name_43 WHERE station_code = "kgq"
What did Melbourne score as the home team?
CREATE TABLE table_name_88 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_88 WHERE home_team = "melbourne"
What is the match report of the match on 20 August?
CREATE TABLE table_name_12 (match_report VARCHAR, date VARCHAR)
SELECT match_report FROM table_name_12 WHERE date = "20 august"
What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, and less than 2 events has?
CREATE TABLE table_name_82 (wins INTEGER, events VARCHAR, cuts_made VARCHAR, top_25 VARCHAR)
SELECT MAX(wins) FROM table_name_82 WHERE cuts_made = 1 AND top_25 < 1 AND events < 2
HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON?
CREATE TABLE table_11803648_17 (overall INTEGER)
SELECT MIN(overall) FROM table_11803648_17
Which claimant's rank is 200?
CREATE TABLE table_name_7 (claimant VARCHAR, rank VARCHAR)
SELECT claimant FROM table_name_7 WHERE rank = 200
What is the Rich Savage percentage in the poll that had undecideds at 68%?
CREATE TABLE table_name_82 (rich_savage VARCHAR, undecided VARCHAR)
SELECT rich_savage FROM table_name_82 WHERE undecided = "68%"
What is the name of the player with total offense of 454?
CREATE TABLE table_28697228_4 (player VARCHAR, total_offense VARCHAR)
SELECT player FROM table_28697228_4 WHERE total_offense = 454
What is GDP (PPP) Per Capita 2012 EU27 = 100, when GDP 2012 Millions Of Euro is 309,900?
CREATE TABLE table_name_27 (gdp__ppp__per_capita_2012_eu27_ VARCHAR, _100 VARCHAR, gdp_2012_millions_of_euro VARCHAR)
SELECT gdp__ppp__per_capita_2012_eu27_ = _100 FROM table_name_27 WHERE gdp_2012_millions_of_euro = "309,900"
What college did the player for the Hamilton Tiger-Cats go to?
CREATE TABLE table_21321804_3 (college VARCHAR, cfl_team VARCHAR)
SELECT college FROM table_21321804_3 WHERE cfl_team = "Hamilton Tiger-Cats"
What is the year that has points larger than 20?
CREATE TABLE table_name_84 (year VARCHAR, points INTEGER)
SELECT COUNT(year) FROM table_name_84 WHERE points > 20
What was the winning score when the runner-up was Beth Daniel and the margin of victory was 7 strokes?
CREATE TABLE table_name_42 (winning_score VARCHAR, runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT winning_score FROM table_name_42 WHERE runner_s__up = "beth daniel" AND margin_of_victory = "7 strokes"
How much money has been won by Stephen Ames?
CREATE TABLE table_name_46 (money___£__ VARCHAR, player VARCHAR)
SELECT money___£__ FROM table_name_46 WHERE player = "stephen ames"
What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?
CREATE TABLE table_name_79 (current_branch_opened INTEGER, neighborhood VARCHAR)
SELECT MAX(current_branch_opened) FROM table_name_79 WHERE neighborhood = "w. portland park"
What is High Points, when Game is "5"?
CREATE TABLE table_name_5 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_name_5 WHERE game = 5
Which date has a competition type of British home championship?
CREATE TABLE table_name_81 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_81 WHERE competition = "british home championship"
What's the lowest lane found for a mark of 8.09 pb?
CREATE TABLE table_name_68 (lane INTEGER, mark VARCHAR)
SELECT MIN(lane) FROM table_name_68 WHERE mark = "8.09 pb"
who is the 1st runner-up when the miss earth Venezuela is maría daniela torrealba?
CREATE TABLE table_name_90 (miss_earth_venezuela VARCHAR)
SELECT 1 AS st_runner_up FROM table_name_90 WHERE miss_earth_venezuela = "maría daniela torrealba"
What is Alex Tagliani's qual 1?
CREATE TABLE table_name_89 (qual_1 VARCHAR, name VARCHAR)
SELECT qual_1 FROM table_name_89 WHERE name = "alex tagliani"
What is Tournament, when Career SR is "ATP Masters Series"?
CREATE TABLE table_name_73 (tournament VARCHAR, career_sr VARCHAR)
SELECT tournament FROM table_name_73 WHERE career_sr = "atp masters series"
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?
CREATE TABLE table_name_1 (upper_index_kcal__nm_3 INTEGER, upper_index_mj__nm_3 VARCHAR, lower_index_mj__nm_3 VARCHAR, fuel_gas VARCHAR)
SELECT SUM(upper_index_kcal__nm_3) FROM table_name_1 WHERE lower_index_mj__nm_3 > 47.91 AND fuel_gas = "propylene" AND upper_index_mj__nm_3 > 77.04
what is 2nd when the pronoun is vi (you pl.)?
CREATE TABLE table_27298240_28 (pronoun VARCHAR)
SELECT 2 AS nd FROM table_27298240_28 WHERE pronoun = "vi (you pl.)"
Who plays f position for depauw?
CREATE TABLE table_name_15 (player VARCHAR, position VARCHAR, college VARCHAR)
SELECT player FROM table_name_15 WHERE position = "f" AND college = "depauw"
What is Ryan Hunter-Reay of the Herdez Competition's Qual 2 time?
CREATE TABLE table_name_80 (qual_2 VARCHAR, team VARCHAR, name VARCHAR)
SELECT qual_2 FROM table_name_80 WHERE team = "herdez competition" AND name = "ryan hunter-reay"
Which Doctor is featured in City of Death?
CREATE TABLE table_name_69 (doctor VARCHAR, title VARCHAR)
SELECT doctor FROM table_name_69 WHERE title = "city of death"
Who did Rhein Fire play Against where 30701 people attended?
CREATE TABLE table_24786958_2 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_24786958_2 WHERE attendance = 30701
The race tony bettenhausen 200 has what smallest rd?
CREATE TABLE table_10706879_3 (rd INTEGER, name VARCHAR)
SELECT MIN(rd) FROM table_10706879_3 WHERE name = "Tony Bettenhausen 200"
What's Albufeira's assist/pass?
CREATE TABLE table_name_22 (assist_pass VARCHAR, location VARCHAR)
SELECT assist_pass FROM table_name_22 WHERE location = "albufeira"
What score has january 19 as the date?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_65 WHERE date = "january 19"
Are there proofs in the Tabulae software?
CREATE TABLE table_name_88 (proofs VARCHAR, software VARCHAR)
SELECT proofs FROM table_name_88 WHERE software = "tabulae"
what is the number of wins that is in the Top 10 and larger than 13?
CREATE TABLE table_name_73 (wins INTEGER, top_10 INTEGER)
SELECT SUM(wins) FROM table_name_73 WHERE top_10 > 13
How many times did Viorel Moldovan replaced a manager?
CREATE TABLE table_17115950_2 (date_of_vacancy VARCHAR, replaced_by VARCHAR)
SELECT COUNT(date_of_vacancy) FROM table_17115950_2 WHERE replaced_by = "Viorel Moldovan"
What is the average date in January that the Rangers played against Chicago Black Hawks?
CREATE TABLE table_name_92 (january INTEGER, opponent VARCHAR)
SELECT AVG(january) FROM table_name_92 WHERE opponent = "chicago black hawks"
What's the 2007 result when 2003 is a?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT 2007 FROM table_name_83 WHERE 2003 = "a"
How many different records were there in the games that ended in w 70-66?
CREATE TABLE table_18904831_5 (record VARCHAR, score VARCHAR)
SELECT COUNT(record) FROM table_18904831_5 WHERE score = "W 70-66"
what is the decision when the record is 13–10–4?
CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR)
SELECT decision FROM table_name_84 WHERE record = "13–10–4"
What is the highest numbered grid for piercarlo ghinzani with over 3 laps?
CREATE TABLE table_name_80 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_80 WHERE driver = "piercarlo ghinzani" AND laps > 3
What is the tie no for the away team altrincham?
CREATE TABLE table_name_59 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_59 WHERE away_team = "altrincham"
How many colors are there?
CREATE TABLE ref_colors (Id VARCHAR)
SELECT COUNT(*) FROM ref_colors
What area is the school with a decile of 8 in?
CREATE TABLE table_name_76 (area VARCHAR, decile VARCHAR)
SELECT area FROM table_name_76 WHERE decile = "8"
Name the result for jiří novák radek štěpánek
CREATE TABLE table_22825058_23 (result VARCHAR, opponents VARCHAR)
SELECT result FROM table_22825058_23 WHERE opponents = "Jiří Novák Radek Štěpánek"
What is the sum of 1891(s), when 1872 is less than 685, and when 1881 is less than 348?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT SUM(1891) FROM table_name_63 WHERE 1872 < 685 AND 1881 < 348
Who got the gold in seoul before 2002?
CREATE TABLE table_name_53 (gold VARCHAR, year VARCHAR, location VARCHAR)
SELECT gold FROM table_name_53 WHERE year < 2002 AND location = "seoul"
What is the average attendance for the date of april 4?
CREATE TABLE table_name_23 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_23 WHERE date = "april 4"
What is the total number of totals for nations with 1 silver and more than 1 bronze?
CREATE TABLE table_name_4 (total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(total) FROM table_name_4 WHERE bronze > 1 AND silver = 1
What is the average earnings of a United States player who had a score of 72-68-74-72=286?
CREATE TABLE table_name_58 (earnings___ INTEGER, country VARCHAR, score VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_58 WHERE country = "united states" AND score = 72 - 68 - 74 - 72 = 286
When was the ship BRP Miguel Malvar commissioned?
CREATE TABLE table_name_78 (commissioned VARCHAR, ship_name VARCHAR)
SELECT commissioned FROM table_name_78 WHERE ship_name = "brp miguel malvar"
What Meet has a Time of 1:04.84?
CREATE TABLE table_name_5 (meet VARCHAR, time VARCHAR)
SELECT meet FROM table_name_5 WHERE time = "1:04.84"
What was the result on 27 august 2003?
CREATE TABLE table_name_81 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_81 WHERE date = "27 august 2003"
Who's the partner at Tamara, Hon?
CREATE TABLE table_18268930_1 (partner VARCHAR, location VARCHAR)
SELECT partner FROM table_18268930_1 WHERE location = "Tamara, HON"
What is the H/A when Cork City is the opponent?
CREATE TABLE table_name_53 (h___a VARCHAR, opponents VARCHAR)
SELECT h___a FROM table_name_53 WHERE opponents = "cork city"
Who were the runners-up for the FC Viktoria Plzeň club?
CREATE TABLE table_name_7 (runners_up VARCHAR, club VARCHAR)
SELECT runners_up FROM table_name_7 WHERE club = "fc viktoria plzeň"
What position does the Cincinnati Bengals' player have?
CREATE TABLE table_12165999_1 (position VARCHAR, afl_team VARCHAR)
SELECT position FROM table_12165999_1 WHERE afl_team = "Cincinnati Bengals"
how many "no decisions" are there with 3 wins and a win percentage of 1.000?
CREATE TABLE table_19839391_3 (no_decisions INTEGER, winning__percentage VARCHAR, wins VARCHAR)
SELECT MIN(no_decisions) FROM table_19839391_3 WHERE winning__percentage = "1.000" AND wins = 3
What place had a score of 73-69-68=210?
CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_86 WHERE score = 73 - 69 - 68 = 210
Which conference is in Jackson, Mississippi?
CREATE TABLE table_10577579_3 (current_conference VARCHAR, location VARCHAR)
SELECT current_conference FROM table_10577579_3 WHERE location = "Jackson, Mississippi"
What was the outcome of the match opponents in the final of Marius Călugăru Ciprian Petre Porumb?
CREATE TABLE table_name_38 (outcome VARCHAR, opponents_in_the_final VARCHAR)
SELECT outcome FROM table_name_38 WHERE opponents_in_the_final = "marius călugăru ciprian petre porumb"
What was the highest average for the contestant having an interview score of 8.46?
CREATE TABLE table_name_84 (average INTEGER, interview VARCHAR)
SELECT MAX(average) FROM table_name_84 WHERE interview = 8.46
What team has an incoming manager named Kenny Dalglish?
CREATE TABLE table_24172157_3 (team VARCHAR, incoming_manager VARCHAR)
SELECT team FROM table_24172157_3 WHERE incoming_manager = "Kenny Dalglish"
Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship?
CREATE TABLE table_name_26 (finals_mvp VARCHAR, eastern_champion VARCHAR, western_champion VARCHAR)
SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs"
What skip has martina baumann as the third?
CREATE TABLE table_name_22 (skip VARCHAR, third VARCHAR)
SELECT skip FROM table_name_22 WHERE third = "martina baumann"
Who was the opponent at Ullevi?
CREATE TABLE table_name_22 (opponents VARCHAR, venue VARCHAR)
SELECT opponents FROM table_name_22 WHERE venue = "ullevi"
What is the celtics record after game 33 when they score of the game was 111-108?
CREATE TABLE table_name_21 (record VARCHAR, game VARCHAR, score VARCHAR)
SELECT record FROM table_name_21 WHERE game > 33 AND score = "111-108"
What is the title of the episode with a production code of FL209?
CREATE TABLE table_29747178_3 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_29747178_3 WHERE production_code = "FL209"
Which Year started is the lowest one that has a Number of cars larger than 7, and a Car # of 100?
CREATE TABLE table_name_30 (year_started INTEGER, number_of_cars VARCHAR, car__number VARCHAR)
SELECT MIN(year_started) FROM table_name_30 WHERE number_of_cars > 7 AND car__number = "100"
What catalogue is the song It's Now or Never?
CREATE TABLE table_name_86 (catalogue VARCHAR, song_title VARCHAR)
SELECT catalogue FROM table_name_86 WHERE song_title = "it's now or never"
What city of license has a Frequency under 107.7, and a call sign of w247aq?
CREATE TABLE table_name_52 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT city_of_license FROM table_name_52 WHERE frequency_mhz < 107.7 AND call_sign = "w247aq"
before 1995 waht is the aveage pts for a mclaren mp4/10b chassis
CREATE TABLE table_name_58 (pts INTEGER, chassis VARCHAR, year VARCHAR)
SELECT AVG(pts) FROM table_name_58 WHERE chassis = "mclaren mp4/10b" AND year < 1995
How many titles does Episode 2 have
CREATE TABLE table_165732_2 (title VARCHAR, episode__number VARCHAR)
SELECT COUNT(title) FROM table_165732_2 WHERE episode__number = 2
Tell me the surface for eastbourne 14 june 1999
CREATE TABLE table_name_6 (surface VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT surface FROM table_name_6 WHERE tournament = "eastbourne" AND date = "14 june 1999"
What is the highest number of goals for for teams with 25 losses?
CREATE TABLE table_name_26 (goals_for INTEGER, lost VARCHAR)
SELECT MAX(goals_for) FROM table_name_26 WHERE lost = 25
What is the type for the Cathay Pacific Holidays company, an incorporation of Hong Kong and listed activities as Travel Agency?
CREATE TABLE table_name_42 (type VARCHAR, company VARCHAR, incorporated_in VARCHAR, principal_activities VARCHAR)
SELECT type FROM table_name_42 WHERE incorporated_in = "hong kong" AND principal_activities = "travel agency" AND company = "cathay pacific holidays"
Which position has a sophomore class?
CREATE TABLE table_name_31 (position VARCHAR, class VARCHAR)
SELECT position FROM table_name_31 WHERE class = "sophomore"
Where did the games that had Wake Forest as Acc Team take place?
CREATE TABLE table_29535057_4 (location VARCHAR, acc_team VARCHAR)
SELECT location FROM table_29535057_4 WHERE acc_team = "Wake Forest"
What is the tournament on 5 October 2004?
CREATE TABLE table_name_50 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_50 WHERE date = "5 october 2004"
Which state had 3821 students in the fall of 06?
CREATE TABLE table_15055594_6 (states VARCHAR, fall_06 VARCHAR)
SELECT states FROM table_15055594_6 WHERE fall_06 = 3821
What is the wins number when the points were smaller than 27, and goals against was 41?
CREATE TABLE table_name_76 (wins INTEGER, points VARCHAR, goals_against VARCHAR)
SELECT SUM(wins) FROM table_name_76 WHERE points < 27 AND goals_against = 41
What Opponent in the final had a match with a Score in the final of 7–5, 6–2?
CREATE TABLE table_name_31 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT opponent_in_the_final FROM table_name_31 WHERE score_in_the_final = "7–5, 6–2"
Show the names of countries that have more than one roller coaster.
CREATE TABLE roller_coaster (Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR)
SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1
What is the Pananmal Punjabi's date of birth?
CREATE TABLE table_name_81 (date_of_birth VARCHAR, name VARCHAR)
SELECT date_of_birth FROM table_name_81 WHERE name = "pananmal punjabi"
How many people were first elected when john roane was the incumbent?
CREATE TABLE table_2668243_25 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_2668243_25 WHERE incumbent = "John Roane"
How many parties are named the Center Alliance
CREATE TABLE table_203802_2 (english_party_name VARCHAR)
SELECT COUNT(2013 AS _parliamentary_election) FROM table_203802_2 WHERE english_party_name = "Center Alliance"
How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.
CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR)
SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1
What name is on the Republican ticket when the American Labor ticket was spencer c. young?
CREATE TABLE table_name_37 (republican_ticket VARCHAR, american_labor_ticket VARCHAR)
SELECT republican_ticket FROM table_name_37 WHERE american_labor_ticket = "spencer c. young"
What is the ramsan-810 transfer delay?
CREATE TABLE table_27615520_1 (latency__microseconds_ VARCHAR, product_name VARCHAR)
SELECT COUNT(latency__microseconds_) FROM table_27615520_1 WHERE product_name = "RamSan-810"
How many bronze medals for the nation with over 9 golds?
CREATE TABLE table_name_8 (bronze VARCHAR, gold INTEGER)
SELECT COUNT(bronze) FROM table_name_8 WHERE gold > 9
The episode which originally aired on February 11, 2005 had which episode # of the season?
CREATE TABLE table_228973_11 (no_in_season VARCHAR, original_air_date VARCHAR)
SELECT no_in_season FROM table_228973_11 WHERE original_air_date = "February 11, 2005"
Name the To par for t10 place and score of 72-71=143
CREATE TABLE table_name_88 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_88 WHERE place = "t10" AND score = 72 - 71 = 143
What country is Tiger Woods from?
CREATE TABLE table_name_22 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_22 WHERE player = "tiger woods"
Which Visa 3 has gui finkler as Visa 1?
CREATE TABLE table_name_83 (visa_3 VARCHAR, visa_1 VARCHAR)
SELECT visa_3 FROM table_name_83 WHERE visa_1 = "gui finkler"
What is the L2 cache for the processor with a 750MHz frequency?
CREATE TABLE table_name_93 (l2_cache VARCHAR, frequency VARCHAR)
SELECT l2_cache FROM table_name_93 WHERE frequency = "750mhz"
Which High rebounds has a Score of w 81-69?
CREATE TABLE table_name_62 (high_rebounds VARCHAR, score VARCHAR)
SELECT high_rebounds FROM table_name_62 WHERE score = "w 81-69"
What country has signed type moving from porto?
CREATE TABLE table_name_75 (country VARCHAR, type VARCHAR, moving_from VARCHAR)
SELECT country FROM table_name_75 WHERE type = "signed" AND moving_from = "porto"
What is the role of the aircraft that has a registration of s5-hpb?
CREATE TABLE table_name_51 (role VARCHAR, registration VARCHAR)
SELECT role FROM table_name_51 WHERE registration = "s5-hpb"
Which Role has a Theatre of globe, and a Music of jerome kern?
CREATE TABLE table_name_61 (role VARCHAR, theatre VARCHAR, music VARCHAR)
SELECT role FROM table_name_61 WHERE theatre = "globe" AND music = "jerome kern"
Name the Province with ICAO of zbcf?
CREATE TABLE table_name_60 (province VARCHAR, icao VARCHAR)
SELECT province FROM table_name_60 WHERE icao = "zbcf"
Which player was drafted after round 9 and number 464 overall?
CREATE TABLE table_name_83 (player VARCHAR, round VARCHAR, overall VARCHAR)
SELECT player FROM table_name_83 WHERE round > 9 AND overall = 464
How many winners had a debut album titled "mike"?
CREATE TABLE table_1646960_3 (winner VARCHAR, debut_album VARCHAR)
SELECT winner FROM table_1646960_3 WHERE debut_album = "Mike"
What is the frequency for the magazine that runs September 2, 2010?
CREATE TABLE table_name_62 (frequency VARCHAR, magazine_run VARCHAR)
SELECT frequency FROM table_name_62 WHERE magazine_run = "september 2, 2010"
County of 46 laporte is what school?
CREATE TABLE table_name_83 (school VARCHAR, county VARCHAR)
SELECT school FROM table_name_83 WHERE county = "46 laporte"