answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT crime FROM table_2861364_1 WHERE place_of_execution = "Metz" AND executed_person = "Gunther Volz"
for what crime was gunther volz executed at metz?
CREATE TABLE table_2861364_1 (crime VARCHAR, place_of_execution VARCHAR, executed_person VARCHAR)
SELECT opponent FROM table_23308178_8 WHERE date = "February 5"
How many games did they play on february 5?
CREATE TABLE table_23308178_8 (opponent VARCHAR, date VARCHAR)
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame"
What are all the characteristic names of product "sesame"?
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT content FROM table_name_54 WHERE sign = "g e"
Name the content for sign of g e
CREATE TABLE table_name_54 (content VARCHAR, sign VARCHAR)
SELECT COUNT(format) FROM table_18536769_1 WHERE frequency = "FM 97.3"
When fm 97.3 is the frequency how many formats are there?
CREATE TABLE table_18536769_1 (format VARCHAR, frequency VARCHAR)
SELECT finish FROM table_name_71 WHERE rank = "31"
What's the Finish rank of 31?
CREATE TABLE table_name_71 (finish VARCHAR, rank VARCHAR)
SELECT code_name FROM table_name_90 WHERE distribution = "20.6%"
with distribution of 20.6% what is the code name?
CREATE TABLE table_name_90 (code_name VARCHAR, distribution VARCHAR)
SELECT AVG(crowd) FROM table_name_35 WHERE away_team = "north melbourne"
With a North Melbourne away team, what is the average crowd?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT winning_driver FROM table_name_91 WHERE winning_constructor = "mercedes" AND date = "22 august"
Name the Winning driver of mercedes on 22 august?
CREATE TABLE table_name_91 (winning_driver VARCHAR, winning_constructor VARCHAR, date VARCHAR)
SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3
What are the first and last names of the instructors who teach the top 3 number of courses?
CREATE TABLE COURSE (Instructor VARCHAR); CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR)
SELECT result FROM table_name_23 WHERE weight > 8.1 AND race = "sajc king's cup"
What is the result of the sajc king's cup race, which has a weight heavier than 8.1?
CREATE TABLE table_name_23 (result VARCHAR, weight VARCHAR, race VARCHAR)
SELECT province FROM table_name_55 WHERE election > 2009
What province has an election after 2009?
CREATE TABLE table_name_55 (province VARCHAR, election INTEGER)
SELECT SUM(laps) FROM table_name_21 WHERE time_retired = "+13 laps" AND grid > 18
Tell me the sum of laps with a time/retired of +13 laps with grid more than 18
CREATE TABLE table_name_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT to_par FROM table_name_87 WHERE player = "johanna head"
Which To par has a Player of johanna head?
CREATE TABLE table_name_87 (to_par VARCHAR, player VARCHAR)
SELECT COUNT(longitude) FROM table_name_68 WHERE township = "nogosek" AND geo_id > 3809357060
What is the total longitude of Nogosek and a GEO ID larger than 3809357060?
CREATE TABLE table_name_68 (longitude VARCHAR, township VARCHAR, geo_id VARCHAR)
SELECT city FROM table_name_96 WHERE icao = "vccj"
Which city has an ICAO of VCCJ?
CREATE TABLE table_name_96 (city VARCHAR, icao VARCHAR)
SELECT score FROM table_name_88 WHERE player = "olin dutra"
What was Olin Dutra's score?
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
SELECT MIN(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "oshawa generals (oha)" AND player = "bob kelly"
Which Round is the lowest one that has a College/Junior/Club Team (League) of oshawa generals (oha), and a Player of bob kelly?
CREATE TABLE table_name_83 (round INTEGER, college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT grid FROM table_name_34 WHERE time_retired = "+5 laps"
What grid has a Time/Retired of +5 laps?
CREATE TABLE table_name_34 (grid VARCHAR, time_retired VARCHAR)
SELECT name FROM driver WHERE home_city = 'Hartford' AND age < 40
List names for drivers from Hartford city and younger than 40.
CREATE TABLE driver (name VARCHAR, home_city VARCHAR, age VARCHAR)
SELECT record FROM table_name_25 WHERE attendance = "41,573"
What's the record when the attendance was 41,573?
CREATE TABLE table_name_25 (record VARCHAR, attendance VARCHAR)
SELECT MAX(wickets) FROM table_name_14 WHERE best_bowling = "5/40" AND average < 33.09
what is the highest wickets when best bowling is 5/40 and average is less than 33.09?
CREATE TABLE table_name_14 (wickets INTEGER, best_bowling VARCHAR, average VARCHAR)
SELECT home_team AS score FROM table_name_51 WHERE away_team = "essendon"
What was the home team score when essendon was the away team?
CREATE TABLE table_name_51 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(grid) FROM table_name_42 WHERE time_retired = "+3.9 secs" AND laps < 96
Which grid has a time/retired of +3.9 secs in less than 96 laps?
CREATE TABLE table_name_42 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT 2013 FROM table_name_71 WHERE tournament = "grand slam tournaments"
What is the 2013 of the grand slam tournaments?
CREATE TABLE table_name_71 (tournament VARCHAR)
SELECT d_42_√ FROM table_name_13 WHERE d_43_√ = "r 5"
What's the D 42 √ when D 43 √ is r 5?
CREATE TABLE table_name_13 (d_42_√ VARCHAR, d_43_√ VARCHAR)
SELECT MAX(pick) FROM table_name_51 WHERE round = 5 AND school_college = "western illinois"
Highest round 5 pick from western illinois?
CREATE TABLE table_name_51 (pick INTEGER, round VARCHAR, school_college VARCHAR)
SELECT winner FROM table_name_56 WHERE runner_up = "waseda" AND title = "32nd"
Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up?
CREATE TABLE table_name_56 (winner VARCHAR, runner_up VARCHAR, title VARCHAR)
SELECT COUNT(weight) FROM table_name_89 WHERE distance = "5 ½ f"
What is the weight number when the distance was 5 ½ f?
CREATE TABLE table_name_89 (weight VARCHAR, distance VARCHAR)
SELECT MAX(facility_id) FROM table_name_52 WHERE city_of_license = "wheeling" AND erp_kw < 4.5
What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?
CREATE TABLE table_name_52 (facility_id INTEGER, city_of_license VARCHAR, erp_kw VARCHAR)
SELECT record FROM table_name_21 WHERE opponent = "expos" AND date = "august 10"
On August 10, what was the record against the Expos?
CREATE TABLE table_name_21 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT 1986 AS _87 FROM table_14489821_1 WHERE team = "Argentinos Juniors"
how many points did the argentinos juniors team score during the 1986-87 season?
CREATE TABLE table_14489821_1 (team VARCHAR)
SELECT record FROM table_name_47 WHERE home = "philadelphia" AND date = "october 13"
What is the record on October 13, when philadelphia was the home team?
CREATE TABLE table_name_47 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_31 WHERE date = "september 23, 1973" AND week > 2
What is the average attendance for the games after week 2 on September 23, 1973?
CREATE TABLE table_name_31 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT alternate FROM table_name_38 WHERE second = "magnus swartling"
Who is the alternate for Magnus Swartling as Second?
CREATE TABLE table_name_38 (alternate VARCHAR, second VARCHAR)
SELECT tournament FROM table_name_74 WHERE 2000 = "2-4"
In what year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4?
CREATE TABLE table_name_74 (tournament VARCHAR)
SELECT attendance FROM table_name_25 WHERE week < 5 AND date = "september 18, 1994"
What was the attendance for the game held on September 18, 1994, with a week less than 5?
CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT party FROM table_1342218_17 WHERE district = "Kentucky 5"
Which party won in the election in voting district Kentucky 5?
CREATE TABLE table_1342218_17 (party VARCHAR, district VARCHAR)
SELECT title FROM table_name_87 WHERE year = 1991 AND date = "march 21"
What is the title for year 1991 and a date of March 21?
CREATE TABLE table_name_87 (title VARCHAR, year VARCHAR, date VARCHAR)
SELECT owner FROM table_name_40 WHERE format = "first nations community radio"
What is the Owner of the Frequency with a Format of First Nations Community Radio?
CREATE TABLE table_name_40 (owner VARCHAR, format VARCHAR)
SELECT original_team FROM table_19810459_1 WHERE result = "10th place"
What team was the contestant who finished in 10th place originally on?
CREATE TABLE table_19810459_1 (original_team VARCHAR, result VARCHAR)
SELECT finish FROM table_16976547_2 WHERE eliminated = "Patani"
Name the finish for patani
CREATE TABLE table_16976547_2 (finish VARCHAR, eliminated VARCHAR)
SELECT date FROM table_name_22 WHERE home = "ny rangers"
What is the Date, when the home team is the NY Rangers?
CREATE TABLE table_name_22 (date VARCHAR, home VARCHAR)
SELECT composer FROM table_name_3 WHERE director = "john ramster"
Who was Director John Ramster's Composer?
CREATE TABLE table_name_3 (composer VARCHAR, director VARCHAR)
SELECT SUM(grid) FROM table_name_48 WHERE rider = "troy corser" AND laps < 22
What is the grid number for troy corser with under 22 laps?
CREATE TABLE table_name_48 (grid INTEGER, rider VARCHAR, laps VARCHAR)
SELECT voltage FROM table_24096813_15 WHERE part_number_s_ = "TT80503300"
What's the voltage of the model with part number TT80503300?
CREATE TABLE table_24096813_15 (voltage VARCHAR, part_number_s_ VARCHAR)
SELECT COUNT(region) FROM table_160510_5 WHERE hangul_chosongul = "경상남도"
Name the number of region for 경상남도
CREATE TABLE table_160510_5 (region VARCHAR, hangul_chosongul VARCHAR)
SELECT location_attendance FROM table_name_68 WHERE date = "march 11"
Where did the game on March 11 take place and how many people attended?
CREATE TABLE table_name_68 (location_attendance VARCHAR, date VARCHAR)
SELECT date_of_appointment FROM table_11207040_6 WHERE outgoing_manager = "Colin Hendry"
What are the dates of the outgoing manager colin hendry does appointments?
CREATE TABLE table_11207040_6 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT release_date FROM table_name_89 WHERE part_number_s_ = "rk80533pz933256"
What date was part number rk80533pz933256 released?
CREATE TABLE table_name_89 (release_date VARCHAR, part_number_s_ VARCHAR)
SELECT opponent FROM table_name_47 WHERE date = "august 20, 2006"
Who is the opponent for the game played on august 20, 2006?
CREATE TABLE table_name_47 (opponent VARCHAR, date VARCHAR)
SELECT score FROM table_17102076_7 WHERE game = 35
What was the score of game 35?
CREATE TABLE table_17102076_7 (score VARCHAR, game VARCHAR)
SELECT 2004 FROM table_name_82 WHERE 2006 = "grand slam tournaments"
What is the 2004 that has a of grand slam tournaments in2006 ?
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT _number FROM table_2305948_1 WHERE name = "Eddie Guerrero"
What are the rank/s of Eddie Guerrero?
CREATE TABLE table_2305948_1 (_number VARCHAR, name VARCHAR)
SELECT median_household_income FROM table_1356555_2 WHERE county = "Sacramento"
What is the median household income of sacramento?
CREATE TABLE table_1356555_2 (median_household_income VARCHAR, county VARCHAR)
SELECT date FROM table_name_82 WHERE home = "winnipeg jets" AND score = "4–6"
When has winnipeg jets with a Score of 4–6?
CREATE TABLE table_name_82 (date VARCHAR, home VARCHAR, score VARCHAR)
SELECT phone FROM table_name_46 WHERE address = "53 dayton road"
What is the phone number of the station located at 53 Dayton Road?
CREATE TABLE table_name_46 (phone VARCHAR, address VARCHAR)
SELECT kerry_number FROM table_1302886_1 WHERE county = "Cook"
In cook county Kerry# is?
CREATE TABLE table_1302886_1 (kerry_number VARCHAR, county VARCHAR)
SELECT group_position FROM table_name_80 WHERE result_f_a = "2–0"
Result F–A of 2–0 had what group position?
CREATE TABLE table_name_80 (group_position VARCHAR, result_f_a VARCHAR)
SELECT chassis FROM table_name_13 WHERE drivers = "gary bettenhausen"
What chassis does Gary Bettenhausen use?
CREATE TABLE table_name_13 (chassis VARCHAR, drivers VARCHAR)
SELECT number FROM table_name_32 WHERE season = "2002-2003"
What number has 2002-2003 as the season?
CREATE TABLE table_name_32 (number VARCHAR, season VARCHAR)
SELECT date FROM table_name_27 WHERE record = "1–2–4"
What is the Date of the game with a Record of 1–2–4?
CREATE TABLE table_name_27 (date VARCHAR, record VARCHAR)
SELECT COUNT(rank__all__2013) FROM table_23950611_2 WHERE name = "Cenovus Energy"
How many companies named cenovus energy?
CREATE TABLE table_23950611_2 (rank__all__2013 VARCHAR, name VARCHAR)
SELECT reign_ended FROM table_name_17 WHERE name = "pharaoh seth"
When did Pharaoh Seth's reign end?
CREATE TABLE table_name_17 (reign_ended VARCHAR, name VARCHAR)
SELECT MIN(ydl) FROM table_25773915_11
What is the ydi minimum?
CREATE TABLE table_25773915_11 (ydl INTEGER)
SELECT attendance FROM table_name_88 WHERE score = "3-5"
Which attendance has a Score of 3-5?
CREATE TABLE table_name_88 (attendance VARCHAR, score VARCHAR)
SELECT percent__1990_ FROM table_1182314_5 WHERE state = "United states"
what are all the percent (1990) where state is united states
CREATE TABLE table_1182314_5 (percent__1990_ VARCHAR, state VARCHAR)
SELECT location FROM table_name_32 WHERE res = "win" AND method = "tko"
Where was the match held when the result was win, and tko as the method?
CREATE TABLE table_name_32 (location VARCHAR, res VARCHAR, method VARCHAR)
SELECT COUNT(pick__number) FROM table_name_30 WHERE college = "calgary"
What is the total number of picks for Calgary College?
CREATE TABLE table_name_30 (pick__number VARCHAR, college VARCHAR)
SELECT COUNT(location) FROM table_16403890_1 WHERE institution = "Elon University"
How many locations does Elon University have?
CREATE TABLE table_16403890_1 (location VARCHAR, institution VARCHAR)
SELECT game FROM table_name_98 WHERE result = "112-100"
What game had the result of 112-100?
CREATE TABLE table_name_98 (game VARCHAR, result VARCHAR)
SELECT time FROM table_name_57 WHERE round < 2 AND method = "ko (knee to the body)"
What is the time before round 2, and the ko (knee to the body) method?
CREATE TABLE table_name_57 (time VARCHAR, round VARCHAR, method VARCHAR)
SELECT state FROM table_name_28 WHERE opened__closing_date_if_defunct_ = "1960"
What State has an Opened (closing date if defunct) that shows 1960?
CREATE TABLE table_name_28 (state VARCHAR, opened__closing_date_if_defunct_ VARCHAR)
SELECT tournament FROM table_name_61 WHERE outcome = "winner" AND surface = "clay" AND opponent = "aranza salut"
Name the tournament for outcome of winner and clay surface with opponent of aranza salut
CREATE TABLE table_name_61 (tournament VARCHAR, opponent VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT player FROM table_2508633_3 WHERE college = "Tennessee"
Which player went to college at Tennessee?
CREATE TABLE table_2508633_3 (player VARCHAR, college VARCHAR)
SELECT played FROM table_name_1 WHERE tries_against = "correct as of 18:13 26 may 2008"
What is the played number when the tries against shows correct as of 18:13 26 May 2008?
CREATE TABLE table_name_1 (played VARCHAR, tries_against VARCHAR)
SELECT other_abbreviation FROM table_287159_1 WHERE genitive = "Hydrae /ˈhaɪdriː/"
What is the other abbreviation of the constellation that has hydrae /ˈhaɪdriː/ as genitive?
CREATE TABLE table_287159_1 (other_abbreviation VARCHAR, genitive VARCHAR)
SELECT date FROM table_name_77 WHERE record = "88-74"
Question does not make sense since there was no record of 88-74
CREATE TABLE table_name_77 (date VARCHAR, record VARCHAR)
SELECT nation FROM table_name_52 WHERE points = 108.8
What was the nationality of the skater with 108.8 points?
CREATE TABLE table_name_52 (nation VARCHAR, points VARCHAR)
SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ < 0.9590000000000001
What was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001?
CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT AVG(points) FROM table_name_89 WHERE opponent = "@ los angeles kings" AND game > 4
How many Points have an Opponent of @ los angeles kings and a Game larger than 4?
CREATE TABLE table_name_89 (points INTEGER, opponent VARCHAR, game VARCHAR)
SELECT date_year FROM table_21436373_5 WHERE type_of_record = "Total attendance-Regular season"
For what year is the type of record 'total attendance-regular season?
CREATE TABLE table_21436373_5 (date_year VARCHAR, type_of_record VARCHAR)
SELECT SUM(grid) FROM table_name_28 WHERE driver = "johnny herbert" AND laps > 52
What is the number of the grid for Johnny Herbert with more than 52 laps?
CREATE TABLE table_name_28 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT SUM(area) FROM table_name_34 WHERE name = "askøy" AND municipal_code < 1247
What's the area of askøy, with a Municipal code less than 1247?
CREATE TABLE table_name_34 (area INTEGER, name VARCHAR, municipal_code VARCHAR)
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55:13"
What year was the winning race time 1:55:13?
CREATE TABLE table_17801022_1 (year INTEGER, race_time VARCHAR)
SELECT date_of_birth FROM table_name_32 WHERE child = "oliver buell"
What is the date of birth of Oliver Buell's child?
CREATE TABLE table_name_32 (date_of_birth VARCHAR, child VARCHAR)
SELECT game_site FROM table_11452830_2 WHERE record = "1-3"
Where was the game played when the team's record was 1-3?
CREATE TABLE table_11452830_2 (game_site VARCHAR, record VARCHAR)
SELECT city_of_license FROM table_name_15 WHERE frequency = "90.1 fm"
What is the city of license for the frequency 90.1 FM?
CREATE TABLE table_name_15 (city_of_license VARCHAR, frequency VARCHAR)
SELECT length FROM table_name_94 WHERE circuit = "laguna seca raceway" AND class = "gtu"
What is the length of the Laguna Seca Raceway circuit with a class of gtu?
CREATE TABLE table_name_94 (length VARCHAR, circuit VARCHAR, class VARCHAR)
SELECT T1.Aircraft, COUNT(*) FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft
List the names of aircrafts and the number of times it won matches.
CREATE TABLE MATCH (Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR)
SELECT DISTINCT directed_by FROM film
Show all directors.
CREATE TABLE film (directed_by VARCHAR)
SELECT COUNT(total_goals) FROM table_name_27 WHERE league_cup_goals < 0
How many Total Goals values have 0 League Cup Goals?
CREATE TABLE table_name_27 (total_goals VARCHAR, league_cup_goals INTEGER)
SELECT SUM(bp_2nd_comp__) AS ˚c_ FROM table_name_33 WHERE bp_azeo__˚c_ = 57.5
Tell me the sum of bp 2nd comp with bp azeo of 57.5
CREATE TABLE table_name_33 (bp_2nd_comp__ INTEGER, bp_azeo__˚c_ VARCHAR)
SELECT site FROM table_name_59 WHERE result = "w13-7"
At what Site was the Result W13-7?
CREATE TABLE table_name_59 (site VARCHAR, result VARCHAR)
SELECT party FROM table_1805191_2 WHERE incumbent = "Robert Cramer"
What is the party affiliation of the incumbent Robert Cramer?
CREATE TABLE table_1805191_2 (party VARCHAR, incumbent VARCHAR)
SELECT player FROM table_name_88 WHERE round = "2" AND position = "center"
Which player is in position center for round 2?
CREATE TABLE table_name_88 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT engine FROM table_name_66 WHERE introduced = "1935"
What engine was introduced in 1935?
CREATE TABLE table_name_66 (engine VARCHAR, introduced VARCHAR)
SELECT martin_mcguinness FROM table_name_16 WHERE david_norris = "10.3%"
What is the Martin McGuinness with a David Norris that is 10.3%?
CREATE TABLE table_name_16 (martin_mcguinness VARCHAR, david_norris VARCHAR)
SELECT COUNT(draw) FROM table_name_87 WHERE points > 22 AND artist = "avia band"
How many draws for avia band with over 22 points?
CREATE TABLE table_name_87 (draw VARCHAR, points VARCHAR, artist VARCHAR)
SELECT MAX(amerindian__both_hispanic_and_non_hispanic_) FROM table_name_67 WHERE black__both_hispanic_and_non_hispanic_ = 15.7 AND white__both_hispanic_and_non_hispanic_ > 69.5
What is the highest Amerindian (Hispanic/Non-Hispanic) value having a Black (Hispanic/Non-Hispanic) of 15.7 and White (Hispanic/Non-Hispanic) over 69.5?
CREATE TABLE table_name_67 (amerindian__both_hispanic_and_non_hispanic_ INTEGER, black__both_hispanic_and_non_hispanic_ VARCHAR, white__both_hispanic_and_non_hispanic_ VARCHAR)