answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT republican_ticket FROM table_name_49 WHERE democratic_ticket = "matthew j. merritt"
Who's the Republican ticket with a Democratic ticket of matthew j. merritt?
CREATE TABLE table_name_49 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT COUNT(week) FROM table_14940519_1 WHERE opponent = "at Cleveland Browns"
Name the total number of weeks for at cleveland browns
CREATE TABLE table_14940519_1 (week VARCHAR, opponent VARCHAR)
SELECT tie_no FROM table_name_26 WHERE away_team = "ipswich town"
What is the Tie no for Away Team Ipswich Town?
CREATE TABLE table_name_26 (tie_no VARCHAR, away_team VARCHAR)
SELECT COUNT(runs_conceded) FROM table_15700367_6 WHERE name = "Sanath Jayasuriya"
How many players named sanath jayasuriya?
CREATE TABLE table_15700367_6 (runs_conceded VARCHAR, name VARCHAR)
SELECT result FROM table_name_98 WHERE category = "best orchestrations"
What is the result for the best orchestrations category?
CREATE TABLE table_name_98 (result VARCHAR, category VARCHAR)
SELECT SUM(attendance) FROM table_name_41 WHERE score = "1:1"
What is the sum of the attendance where the score was 1:1?
CREATE TABLE table_name_41 (attendance INTEGER, score VARCHAR)
SELECT Name FROM musical WHERE Nominee = "Bob Fosse"
What are the names of musicals with nominee "Bob Fosse"?
CREATE TABLE musical (Name VARCHAR, Nominee VARCHAR)
SELECT original_air_date FROM table_21172539_1 WHERE no_in_season = 15
What date did episode 15 of the season originally air?
CREATE TABLE table_21172539_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT venue FROM table_name_20 WHERE round = "19" AND player = "tony lockett"
In Round 19, where did Tony Lockett play?
CREATE TABLE table_name_20 (venue VARCHAR, round VARCHAR, player VARCHAR)
SELECT COUNT(overall) FROM table_name_30 WHERE player = "angelo craig"
What is the number for overall for angelo craig?
CREATE TABLE table_name_30 (overall VARCHAR, player VARCHAR)
SELECT SUM(crowd) FROM table_name_74 WHERE home_team = "north melbourne"
What is the sum of all the crowds that watched North Melbourne at home?
CREATE TABLE table_name_74 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(west_lancashire) FROM table_name_15 WHERE pendle > 1 AND rossendale > 2
What is the highest rated West Lancashire with a Pendle greater than 1 and a Rossendale more than 2?
CREATE TABLE table_name_15 (west_lancashire INTEGER, pendle VARCHAR, rossendale VARCHAR)
SELECT MAX(goals) FROM table_name_87 WHERE player = "mitsuo kato"
How many goals does mitsuo kato have?
CREATE TABLE table_name_87 (goals INTEGER, player VARCHAR)
SELECT format FROM table_27303975_2 WHERE title = "Quick Callanetics: Hips and Behind"
Name the format for quick callanetics: hips and behind
CREATE TABLE table_27303975_2 (format VARCHAR, title VARCHAR)
SELECT mix_pack FROM table_23649244_2 WHERE artist_2 = "Eminem"
What is the mix pack when the artist 2 is Eminem?
CREATE TABLE table_23649244_2 (mix_pack VARCHAR, artist_2 VARCHAR)
SELECT MIN(total) FROM table_name_89 WHERE draws < 2 AND wins < 1 AND goal_difference = "1:2" AND losses > 1
What is the lowest total that has draws less than 2 and wins less than 1, losses bigger than 1 with a goal difference of 1:2
CREATE TABLE table_name_89 (total INTEGER, losses VARCHAR, goal_difference VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "–" AND name = "mid-south wood products"
What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products?
CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR)
SELECT party FROM table_1341707_15 WHERE district = "Illinois 1"
What party did the incumbent from the Illinois 1 district belong to?
CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR)
SELECT AVG(num_of_ticket), MAX(num_of_ticket) FROM visit
What are the average and maximum number of tickets bought in all visits?
CREATE TABLE visit (num_of_ticket INTEGER)
SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters"
List all tracks bought by customer Daan Peeters.
CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT SUM(game) FROM table_name_45 WHERE time = "2:14"
How many games had a Time of 2:14?
CREATE TABLE table_name_45 (game INTEGER, time VARCHAR)
SELECT record FROM table_name_49 WHERE date = "january 27"
What record has January 27 for the date?
CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_name_60 WHERE position = 1 AND lost < 0
Which Points is the highest one that has a Position of 1, and a Lost smaller than 0?
CREATE TABLE table_name_60 (points INTEGER, position VARCHAR, lost VARCHAR)
SELECT opponent FROM table_name_12 WHERE date = "july 2"
What's the opponent for July 2?
CREATE TABLE table_name_12 (opponent VARCHAR, date VARCHAR)
SELECT MAX(_number) FROM table_25360865_1 WHERE name = "Charvez Davis"
Name the most number for charvez davis
CREATE TABLE table_25360865_1 (_number INTEGER, name VARCHAR)
SELECT SUM(1956) FROM table_name_40 WHERE county = "vâlcea" AND 2011 < 371714
Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?
CREATE TABLE table_name_40 (county VARCHAR)
SELECT MAX(wins) FROM table_name_23 WHERE losses < 1 AND teams = "rams" AND games > 8
what is the highest wins when the losses is less than 1, team is rams and the games is more than 8?
CREATE TABLE table_name_23 (wins INTEGER, games VARCHAR, losses VARCHAR, teams VARCHAR)
SELECT weight FROM table_name_59 WHERE name = "alexandr elke"
What is Alexandr Elke's Weight?
CREATE TABLE table_name_59 (weight VARCHAR, name VARCHAR)
SELECT MIN(games) AS ↑ FROM table_name_29 WHERE number = 61
How many games has number 61 played in?
CREATE TABLE table_name_29 (games INTEGER, number VARCHAR)
SELECT location FROM table_name_47 WHERE length___m__ = "63"
Where is the longest arch with a length in meters of 63?
CREATE TABLE table_name_47 (location VARCHAR, length___m__ VARCHAR)
SELECT others FROM table_name_10 WHERE szdsz = "4%" AND fidesz = "60%"
What percentage of others have an SZDSZ of 4% and a Fidesz of 60%?
CREATE TABLE table_name_10 (others VARCHAR, szdsz VARCHAR, fidesz VARCHAR)
SELECT school_code FROM department WHERE dept_name = "Accounting"
What is the code of the school where the accounting department belongs to?
CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)
SELECT COUNT(goals) FROM table_name_40 WHERE name = "diego milito" AND debut_year > 2008
How many goals occurred with Diego Milito in a debut year later than 2008?
CREATE TABLE table_name_40 (goals VARCHAR, name VARCHAR, debut_year VARCHAR)
SELECT tyre FROM table_name_27 WHERE entrant = "ecurie nationale suisse"
What tyre was used for an entrant of Ecurie Nationale Suisse?
CREATE TABLE table_name_27 (tyre VARCHAR, entrant VARCHAR)
SELECT Builder FROM railway ORDER BY Builder
List the builders of railways in ascending alphabetical order.
CREATE TABLE railway (Builder VARCHAR)
SELECT SUM(lane) FROM table_name_32 WHERE time = 53.61 AND rank > 3
How many lanes have a Time of 53.61, and a Rank larger than 3?
CREATE TABLE table_name_32 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT high_rebounds FROM table_17326036_5 WHERE date = "November 1"
Who did the most high rebounds in the game played on November 1?
CREATE TABLE table_17326036_5 (high_rebounds VARCHAR, date VARCHAR)
SELECT under_11 FROM table_26368963_2 WHERE under_19 = "Leong Siu Lynn"
What is every value for Under-11 if Under-19 is Leong Siu Lynn?
CREATE TABLE table_26368963_2 (under_11 VARCHAR, under_19 VARCHAR)
SELECT inf_stem FROM table_name_13 WHERE subj_pres = "a" AND plur_pret = "uo"
What is the infinitive stem that is associated with a subjunctive present of a and a plural preterite of uo?
CREATE TABLE table_name_13 (inf_stem VARCHAR, subj_pres VARCHAR, plur_pret VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "AHD"
What are airlines that have some flight departing from airport 'AHD'?
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
SELECT population__2011_ FROM table_2562572_37 WHERE cyrillic_name_other_names = "Српска Црња"
Name the population for 2011 for српска црња
CREATE TABLE table_2562572_37 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT round FROM table_name_10 WHERE opponent = "travis fulton"
What round did the fight against travis fulton last?
CREATE TABLE table_name_10 (round VARCHAR, opponent VARCHAR)
SELECT position FROM table_name_26 WHERE school_club_team = "oklahoma state"
Oklahoma State produced a player in which position in the draft?
CREATE TABLE table_name_26 (position VARCHAR, school_club_team VARCHAR)
SELECT MIN(falcons_points) FROM table_16710971_2 WHERE opponent = "San Francisco 49ers"
In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored?
CREATE TABLE table_16710971_2 (falcons_points INTEGER, opponent VARCHAR)
SELECT years_for_grizzlies FROM table_16494599_5 WHERE school_club_team = "Maryland"
when was the school/club team for grizzles was maryland
CREATE TABLE table_16494599_5 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = "http://krishna.nic.in/"
What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/?
CREATE TABLE table_name_19 (area__km²_ INTEGER, density___km²_ VARCHAR, official_website VARCHAR)
SELECT COUNT(location) FROM table_1399994_5 WHERE opponents = "Claudia Kohde-Kilsch Eva Pfaff"
How many locations hosted Claudia Kohde-Kilsch Eva Pfaff?
CREATE TABLE table_1399994_5 (location VARCHAR, opponents VARCHAR)
SELECT record FROM table_name_32 WHERE game_site = "kingdome" AND result = "w 24-6"
Game site of kingdome, and a Result of w 24-6 has what record?
CREATE TABLE table_name_32 (record VARCHAR, game_site VARCHAR, result VARCHAR)
SELECT points FROM table_name_90 WHERE wins = "3" AND team = "carlin"
How many points did Carlin have when they had 3 wins?
CREATE TABLE table_name_90 (points VARCHAR, wins VARCHAR, team VARCHAR)
SELECT SUM(pick) FROM table_name_28 WHERE player = "june longalong"
What's the total number of picks of a team that had june longalong?
CREATE TABLE table_name_28 (pick INTEGER, player VARCHAR)
SELECT bullet_weight FROM table_16010376_1 WHERE source = "Weatherby"
What is the weight of the bullet used in a Weatherby?
CREATE TABLE table_16010376_1 (bullet_weight VARCHAR, source VARCHAR)
SELECT _number FROM table_25360865_1 WHERE last_school = "Florida Air Academy"
Name the number for florida air academy
CREATE TABLE table_25360865_1 (_number VARCHAR, last_school VARCHAR)
SELECT draws FROM table_name_58 WHERE year = "2006"
How many draws were there in 2006?
CREATE TABLE table_name_58 (draws VARCHAR, year VARCHAR)
SELECT location_attendance FROM table_22883210_7 WHERE game = 41
Where was game 41 held, and how many people attended?
CREATE TABLE table_22883210_7 (location_attendance VARCHAR, game VARCHAR)
SELECT date FROM table_name_96 WHERE site = "dowdy-ficklen stadium • greenville, nc" AND attendance = "27,321"
What date was the game at Dowdy-Ficklen stadium • Greenville, NC, with 27,321 in attendance?
CREATE TABLE table_name_96 (date VARCHAR, site VARCHAR, attendance VARCHAR)
SELECT MIN(score) FROM table_name_1 WHERE place = "t3" AND player = "lee janzen"
What was T3 player Lee Janzen's score?
CREATE TABLE table_name_1 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT title FROM table_name_62 WHERE track = 6
What is track 6's title?
CREATE TABLE table_name_62 (title VARCHAR, track VARCHAR)
SELECT COUNT(team) FROM table_14288212_1 WHERE points_for = 38
How many teams scored exactly 38 points
CREATE TABLE table_14288212_1 (team VARCHAR, points_for VARCHAR)
SELECT match_report FROM table_name_4 WHERE date = "25 april 2009"
What is the match report from the game played on 25 april 2009?
CREATE TABLE table_name_4 (match_report VARCHAR, date VARCHAR)
SELECT nomination FROM table_10236830_4 WHERE film_name = "Totalitarian Romance"
Which nominations are connected to the film Totalitarian Romance?
CREATE TABLE table_10236830_4 (nomination VARCHAR, film_name VARCHAR)
SELECT podcast_date FROM table_name_92 WHERE episode_number < 307 AND historical_references = "p.t. barnum" AND run_time = "5:48"
What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic?
CREATE TABLE table_name_92 (podcast_date VARCHAR, run_time VARCHAR, episode_number VARCHAR, historical_references VARCHAR)
SELECT 2005 FROM table_name_39 WHERE 2006 = "126,511"
Which 2005 has a 2006 of 126,511?
CREATE TABLE table_name_39 (Id VARCHAR)
SELECT opponent FROM table_name_96 WHERE date = "june 29"
On June 29, who was the opponent?
CREATE TABLE table_name_96 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(avge) FROM table_name_25 WHERE name = "john hall" AND goals < 63
What is the total avge of John Hall, who has less than 63 goals?
CREATE TABLE table_name_25 (avge VARCHAR, name VARCHAR, goals VARCHAR)
SELECT runner_up FROM table_name_96 WHERE year = "2004"
Who was the runner-up in 2004?
CREATE TABLE table_name_96 (runner_up VARCHAR, year VARCHAR)
SELECT height__ft_ FROM table_20754016_2 WHERE country = "Honduras"
How tall is the contestant from Honduras?
CREATE TABLE table_20754016_2 (height__ft_ VARCHAR, country VARCHAR)
SELECT venue FROM table_name_80 WHERE date = "30/03/1985"
What is the venue for the match on 30/03/1985?
CREATE TABLE table_name_80 (venue VARCHAR, date VARCHAR)
SELECT date FROM table_name_56 WHERE record = "4-4"
What was the date of the game where the record was 4-4?
CREATE TABLE table_name_56 (date VARCHAR, record VARCHAR)
SELECT time FROM table_name_20 WHERE laps < 21 AND manufacturer = "aprilia" AND grid < 17 AND rider = "thomas luthi"
what is the time when laps is less than 21, manufacturer is aprilia, grid is less than 17 and the rider is thomas luthi?
CREATE TABLE table_name_20 (time VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT position FROM table_18278508_2 WHERE co_contestant__yaar_vs_pyaar_ = "Pranita Sahu"
What position did Pranita Sahu's team get?
CREATE TABLE table_18278508_2 (position VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR)
SELECT name, RESULT FROM battle WHERE bulgarian_commander <> 'Boril'
What are the name and results of the battles when the bulgarian commander is not 'Boril'
CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR)
SELECT player FROM table_name_52 WHERE score = 69
Which player has 69 as the score?
CREATE TABLE table_name_52 (player VARCHAR, score VARCHAR)
SELECT Age FROM people ORDER BY Height DESC LIMIT 1
What is the age of the tallest person?
CREATE TABLE people (Age VARCHAR, Height VARCHAR)
SELECT incumbent FROM table_13833770_3 WHERE opponent = "Peter King (R) 56.0% David Mejias (D) 44.0%"
who is the the incumbent with opponent being peter king (r) 56.0% david mejias (d) 44.0%
CREATE TABLE table_13833770_3 (incumbent VARCHAR, opponent VARCHAR)
SELECT points_for FROM table_name_50 WHERE club = "cambrian welfare rfc"
How many pints does the Cambrian Welfare RFC have?
CREATE TABLE table_name_50 (points_for VARCHAR, club VARCHAR)
SELECT date FROM table_name_55 WHERE attendance > 62 OFFSET 491
What is the date of the game with an attendance larger than 62,491?
CREATE TABLE table_name_55 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_40 WHERE venue = "antigua recreation ground"
When did a Venue of Antigua Recreation Ground happen?
CREATE TABLE table_name_40 (date VARCHAR, venue VARCHAR)
SELECT team_name FROM basketball_match ORDER BY All_Home DESC
List names of all teams in the basketball competition, ordered by all home scores in descending order.
CREATE TABLE basketball_match (team_name VARCHAR, All_Home VARCHAR)
SELECT length FROM table_11336756_6 WHERE remarks = "Replaced by US 81"
What unit of length is being used for the route with "replaced by us 81" in their remarks section?
CREATE TABLE table_11336756_6 (length VARCHAR, remarks VARCHAR)
SELECT COUNT(round) FROM table_name_5 WHERE location = "nevada, united states" AND time = "1:55"
What is the total number of Rounds held in Nevada, United States in which the time was 1:55?
CREATE TABLE table_name_5 (round VARCHAR, location VARCHAR, time VARCHAR)
SELECT AVG(conceded) FROM table_name_68 WHERE position > 8 AND wins > 2
What is the average conceded number of the team with a position lower than 8 and more than 2 wins?
CREATE TABLE table_name_68 (conceded INTEGER, position VARCHAR, wins VARCHAR)
SELECT player FROM table_name_7 WHERE nationality = "united states" AND position = "forward" AND round > 5
Which Player has United States as Nationality, forward as Position and a greater than 5 Round?
CREATE TABLE table_name_7 (player VARCHAR, round VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT COUNT(first_elected) FROM table_1342315_4 WHERE incumbent = "Claude Fuller"
How many first elections have Claude Fuller as incumbent?
CREATE TABLE table_1342315_4 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(rnd) FROM table_1140083_2 WHERE pole_position = "James Hunt" AND fastest_lap = "John Watson"
How many rounds were won with James Hunt as pole position and John Watson as fastest lap?
CREATE TABLE table_1140083_2 (rnd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT away_team AS score FROM table_name_9 WHERE home_team = "hawthorn"
What was the away team's score against Hawthorn?
CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_20 WHERE winning_score = –16(62 - 71 - 71 - 68 = 272)
When was –16 (62-71-71-68=272) the winning score?
CREATE TABLE table_name_20 (date VARCHAR, winning_score VARCHAR)
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "August 12, 2008"
Name the republican steve sauerberg for august 12, 2008
CREATE TABLE table_16751596_2 (republican VARCHAR, dates_administered VARCHAR)
SELECT attendance FROM table_name_59 WHERE week = 10
What was the Attendance in Week 10?
CREATE TABLE table_name_59 (attendance VARCHAR, week VARCHAR)
SELECT county FROM table_20278716_2 WHERE others__number = 915
What county had 915 third party voters?
CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR)
SELECT type FROM table_name_18 WHERE course = "grosseto to rieti"
What type had a course of Grosseto To Rieti?
CREATE TABLE table_name_18 (type VARCHAR, course VARCHAR)
SELECT MIN(total) FROM table_name_31 WHERE year_s__won = "1991"
In 1991, what was the lowest total?
CREATE TABLE table_name_31 (total INTEGER, year_s__won VARCHAR)
SELECT MIN(year) FROM table_1920271_2 WHERE championship = "French Open"
What is the first year she played in the french open?
CREATE TABLE table_1920271_2 (year INTEGER, championship VARCHAR)
SELECT launched FROM table_name_56 WHERE spacecraft = "ulysses" AND time_elapsed = "491 days (1 yr, 4 mo, 3 d)"
What Launched has both a Spacecraft of Ulysses and 491 days (1 yr, 4 mo, 3 d) as Time elapsed?
CREATE TABLE table_name_56 (launched VARCHAR, spacecraft VARCHAR, time_elapsed VARCHAR)
SELECT melbourne FROM table_name_38 WHERE perth = "no" AND adelaide = "no" AND auckland = "no" AND sydney = "yes"
Name the melbourne with perth, adelaide and auckland of no with sydney of yes
CREATE TABLE table_name_38 (melbourne VARCHAR, sydney VARCHAR, auckland VARCHAR, perth VARCHAR, adelaide VARCHAR)
SELECT COUNT(paula_radcliffe___gbr__) FROM table_23619492_3 WHERE world_record = "African record"
Name the total number of african record
CREATE TABLE table_23619492_3 (paula_radcliffe___gbr__ VARCHAR, world_record VARCHAR)
SELECT week FROM table_name_89 WHERE attendance = "78,301"
Tell me the week that has an attendance of 78,301
CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR)
SELECT DISTINCT Range FROM mountain ORDER BY Prominence DESC LIMIT 3
List the distinct ranges of the mountains with the top 3 prominence.
CREATE TABLE mountain (Range VARCHAR, Prominence VARCHAR)
SELECT away FROM table_name_46 WHERE plyff = "(0-0)" AND opponent = "sioux city bandits"
Which away team has a playoff record of (0-0) and played against Sioux City Bandits?
CREATE TABLE table_name_46 (away VARCHAR, plyff VARCHAR, opponent VARCHAR)
SELECT namesake FROM table_16768245_2 WHERE longitude = "189.5W"
What is the namesake of the feature found at 189.5w longitude?
CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude VARCHAR)
SELECT COUNT(sales) FROM table_name_44 WHERE peak_position > 2 AND certification = "3x platinum"
How many sales had a peak position more than 2 and a Certification of 3x platinum?
CREATE TABLE table_name_44 (sales VARCHAR, peak_position VARCHAR, certification VARCHAR)