answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT player FROM table_name_2 WHERE to_par = "e" AND score = 68 - 72 = 140
WHAT IS THE PLAYER WITH A TO PAR OF E, AND SCORE OF 68-72=140?
CREATE TABLE table_name_2 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "vitamin k deficiency or warfarin"
Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6
CREATE TABLE table_name_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
SELECT champion FROM table_name_57 WHERE runner_up = "atlético wanderers"
Who was the champion when atlético wanderers was the runner-up?
CREATE TABLE table_name_57 (champion VARCHAR, runner_up VARCHAR)
SELECT athletes FROM table_name_62 WHERE rank < 5 AND country = "china"
Which athlete is ranked below 5 and is from China?
CREATE TABLE table_name_62 (athletes VARCHAR, rank VARCHAR, country VARCHAR)
SELECT location_attendance FROM table_name_95 WHERE record = "26-11"
What is the location/attendance with a 26-11 record?
CREATE TABLE table_name_95 (location_attendance VARCHAR, record VARCHAR)
SELECT COUNT(rank) FROM table_name_16 WHERE games > 125 AND player = "david gonzalvez"
How many players played over 125 games and were named david gonzalvez?
CREATE TABLE table_name_16 (rank VARCHAR, games VARCHAR, player VARCHAR)
SELECT away_team FROM table_name_80 WHERE home_team = "south melbourne"
When South Melbourne was the home team, who was the away team?
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_9 WHERE venue = "corio oval"
What is the average crowd size for corio oval?
CREATE TABLE table_name_9 (crowd INTEGER, venue VARCHAR)
SELECT MIN(year) FROM table_name_97 WHERE team = "baltimore ravens" AND games < 15
What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?
CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, games VARCHAR)
SELECT AVG(round) FROM table_name_46 WHERE opponent = "michael chavez"
How many rounds is the fight against Michael Chavez?
CREATE TABLE table_name_46 (round INTEGER, opponent VARCHAR)
SELECT elector FROM table_name_31 WHERE elevated = "december 18, 1182"
What Elector was Elevated on December 18, 1182?
CREATE TABLE table_name_31 (elector VARCHAR, elevated VARCHAR)
SELECT report FROM table_name_93 WHERE set_3 = "21–25"
Which report has a Set 3 value of 21–25?
CREATE TABLE table_name_93 (report VARCHAR, set_3 VARCHAR)
SELECT passed FROM table_256286_40 WHERE description = "Authorizing State Acceptance of Certain Gifts"
What vote passed for the measure with the description, authorizing state acceptance of certain gifts?
CREATE TABLE table_256286_40 (passed VARCHAR, description VARCHAR)
SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = "modern drama" AND number_of_episodes = 20 AND airing_date = "26 sep- 21 oct"
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
SELECT 1941 FROM table_name_7 WHERE 1945 = "n/a" AND 1948 = "n/a" AND 1953 = "9"
What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953?
CREATE TABLE table_name_7 (Id VARCHAR)
SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50
Find the codes of countries that have more than 50 players.
CREATE TABLE players (country_code VARCHAR)
SELECT nationality FROM table_10015132_9 WHERE school_club_team = "Fresno State"
What are the nationality of the players on the Fresno State school/club team?
CREATE TABLE table_10015132_9 (nationality VARCHAR, school_club_team VARCHAR)
SELECT MAX(events) FROM table_name_22 WHERE earnings = "$113,259" AND average > 229.5
Which Events has Earnings of $113,259, and an Average larger than 229.5?
CREATE TABLE table_name_22 (events INTEGER, earnings VARCHAR, average VARCHAR)
SELECT SUM(week) FROM table_name_48 WHERE attendance = "41,384"
How many weeks were there games with 41,384 fans in attendance?
CREATE TABLE table_name_48 (week INTEGER, attendance VARCHAR)
SELECT MIN(points) FROM table_name_87 WHERE performer = "seán monaghan" AND draw < 7
Which Points have a Performer of seán monaghan and a Draw smaller than 7?
CREATE TABLE table_name_87 (points INTEGER, performer VARCHAR, draw VARCHAR)
SELECT notes FROM table_name_26 WHERE country = "denmark"
What is the notes for the rowers from denmark?
CREATE TABLE table_name_26 (notes VARCHAR, country VARCHAR)
SELECT population FROM table_101196_1 WHERE county = "county Mayo" AND english_name = "Carrowteige"
What is the population for County Mayo with the English Name Carrowteige?
CREATE TABLE table_101196_1 (population VARCHAR, county VARCHAR, english_name VARCHAR)
SELECT opponent FROM table_name_50 WHERE date = "june 3"
Who was the opponent on June 3?
CREATE TABLE table_name_50 (opponent VARCHAR, date VARCHAR)
SELECT 1996 FROM table_name_45 WHERE 1987 = "nme" AND tournament = "monte carlo"
What Tournament of monte carlo had 1996 and a 1987 of nme?
CREATE TABLE table_name_45 (tournament VARCHAR)
SELECT winning_constructor FROM table_name_79 WHERE winning_driver = "riccardo patrese"
Who is the winner constructor with driver riccardo patrese?
CREATE TABLE table_name_79 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT date FROM table_name_49 WHERE record = "53–17"
What was the date of the Mariners game when they had a record of 53–17?
CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR)
SELECT tournament FROM table_name_30 WHERE 1954 = "a" AND 1942 = "nh"
What is the tournament that had a result of A in 1954 and NH in 1942?
CREATE TABLE table_name_30 (tournament VARCHAR)
SELECT l_100km_urban__cold_ FROM table_name_24 WHERE co_2_g_km < 222 AND mpg_us_urban > 17.8 AND mpg_uk_extra_urban = 55.4 AND engine_capacity > 1560
What is the l/100km urban (cold) with a CO 2 g/km less than 222, an mpg-us urban greater than 17.8, an mpg-uk extra-urban of 55.4, and an engine capacity greater than 1560?
CREATE TABLE table_name_24 (l_100km_urban__cold_ VARCHAR, engine_capacity VARCHAR, mpg_uk_extra_urban VARCHAR, co_2_g_km VARCHAR, mpg_us_urban VARCHAR)
SELECT MAX(played) FROM table_name_19 WHERE points = 17 AND draw < 5
What is listed as the Highest Played, has Points of 17, and Draw that is smaller than 5?
CREATE TABLE table_name_19 (played INTEGER, points VARCHAR, draw VARCHAR)
SELECT MAX(goals¹) FROM table_24565004_7
What is the highest number of goals scored
CREATE TABLE table_24565004_7 (goals¹ INTEGER)
SELECT MAX(total) FROM table_name_99 WHERE horse = "spender s"
Tell me the highest total when the horse is spender s
CREATE TABLE table_name_99 (total INTEGER, horse VARCHAR)
SELECT wins FROM table_name_98 WHERE second = "1" AND races > 12
How many wins did the driver with 1 second and more than 12 races have?
CREATE TABLE table_name_98 (wins VARCHAR, second VARCHAR, races VARCHAR)
SELECT away FROM table_name_9 WHERE ground = "humber college north"
What is the Away with a Ground that is humber college north?
CREATE TABLE table_name_9 (away VARCHAR, ground VARCHAR)
SELECT partner FROM table_name_94 WHERE opponents_in_the_final = "serena williams venus williams"
Who was the partner that played against Serena Williams Venus Williams?
CREATE TABLE table_name_94 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT driver FROM table_name_13 WHERE zan_1 = "19"
What driver has 19 as the zan 1?
CREATE TABLE table_name_13 (driver VARCHAR, zan_1 VARCHAR)
SELECT origin FROM table_name_1 WHERE abbreviation = "atf"
What's the origin for the country abbreviated atf?
CREATE TABLE table_name_1 (origin VARCHAR, abbreviation VARCHAR)
SELECT SUM(year) FROM table_name_61 WHERE theme = "timber trade"
What year was the timber trade?
CREATE TABLE table_name_61 (year INTEGER, theme VARCHAR)
SELECT conference FROM table_name_71 WHERE season = "1967–68"
What is the Conference for the 1967–68 season?
CREATE TABLE table_name_71 (conference VARCHAR, season VARCHAR)
SELECT score FROM table_name_75 WHERE result = "loss" AND record = "1-1"
WHAT SCORE HAD A LOSS AND RECORD OF 1-1?
CREATE TABLE table_name_75 (score VARCHAR, result VARCHAR, record VARCHAR)
SELECT MAX(total) FROM table_name_55 WHERE gold = 1 AND bronze > 1
What is the high total for nations with 1 gold and over 1 bronze?
CREATE TABLE table_name_55 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT country FROM table_name_4 WHERE score < 70 AND place = "t3" AND player = "andrés romero"
Which Country has a Score smaller than 70, and a Place of t3, and a Player of andrés romero?
CREATE TABLE table_name_4 (country VARCHAR, player VARCHAR, score VARCHAR, place VARCHAR)
SELECT date FROM table_name_35 WHERE streak = "win 1" AND record = "8–4"
Which Date has a Streak of win 1, and a Record of 8–4?
CREATE TABLE table_name_35 (date VARCHAR, streak VARCHAR, record VARCHAR)
SELECT score FROM table_name_76 WHERE date = "june 12"
What was the score on June 12?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT couple FROM table_25391981_3 WHERE average = "15.5"
What couple averaged 15.5?
CREATE TABLE table_25391981_3 (couple VARCHAR, average VARCHAR)
SELECT director FROM table_name_65 WHERE result = "nominee" AND year__ceremony_ = "1969 (42nd)"
What is Director, when Result is nominee, and when Year (Ceremony) is 1969 (42nd)?
CREATE TABLE table_name_65 (director VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)
SELECT high_points FROM table_15780049_8 WHERE date = "March 7"
Name the high points for march 7
CREATE TABLE table_15780049_8 (high_points VARCHAR, date VARCHAR)
SELECT year FROM table_name_45 WHERE mixed_doubles = "no competition"
What year was there no competition in Mixed Doubles?
CREATE TABLE table_name_45 (year VARCHAR, mixed_doubles VARCHAR)
SELECT MAX(series) FROM table_24057191_2 WHERE average_viewers__millions_ = "3.72"
What series had an average of 3.72 million people watching it?
CREATE TABLE table_24057191_2 (series INTEGER, average_viewers__millions_ VARCHAR)
SELECT time FROM table_name_31 WHERE grid > 6 AND bike = "honda cbr1000rr" AND laps < 23
What was the time for a grid more than 6 in less than 23 laps with a Honda CBR1000RR?
CREATE TABLE table_name_31 (time VARCHAR, laps VARCHAR, grid VARCHAR, bike VARCHAR)
SELECT COUNT(year_to_april) FROM table_18077713_1 WHERE earnings_per_share__¢_ = "22.0"
When the earning per share is listed as 22.0 what is the year to april?
CREATE TABLE table_18077713_1 (year_to_april VARCHAR, earnings_per_share__¢_ VARCHAR)
SELECT title FROM table_name_5 WHERE pages > 128 AND vol__number = 5
What is the title of the edition with more than 128 pages and a volume # of 5?
CREATE TABLE table_name_5 (title VARCHAR, pages VARCHAR, vol__number VARCHAR)
SELECT road_team FROM table_name_89 WHERE result = "118-112"
Who was the Road Team for the game ending with a score of 118-112?
CREATE TABLE table_name_89 (road_team VARCHAR, result VARCHAR)
SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366
What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?
CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR)
SELECT high_assists FROM table_27902171_4 WHERE record = "0-1"
Who had the high assist total when the team was 0-1?
CREATE TABLE table_27902171_4 (high_assists VARCHAR, record VARCHAR)
SELECT COUNT(score) FROM table_17060277_6 WHERE high_rebounds = "David Lee (13)"
How many different games had David Lee (13) with High rebounds?
CREATE TABLE table_17060277_6 (score VARCHAR, high_rebounds VARCHAR)
SELECT year FROM table_name_99 WHERE comp = "33"
What year was the comp 33?
CREATE TABLE table_name_99 (year VARCHAR, comp VARCHAR)
SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200
Show all artist names with an average exhibition attendance over 200.
CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)
SELECT driver FROM table_name_62 WHERE laps = 45
Who is the driver for laps of 45
CREATE TABLE table_name_62 (driver VARCHAR, laps VARCHAR)
SELECT COUNT(date_of_demolition) FROM table_name_7 WHERE location = "wood street"
How many dates of demolition are located on Wood Street?
CREATE TABLE table_name_7 (date_of_demolition VARCHAR, location VARCHAR)
SELECT 2003 AS _04 FROM table_2865020_5 WHERE average = "1.377"
What 2003-2004 values are associated with an average of 1.377?
CREATE TABLE table_2865020_5 (average VARCHAR)
SELECT time FROM table_name_74 WHERE name = "mina clavero 2"
What was the Time in the Mina Clavero 2 Stage?
CREATE TABLE table_name_74 (time VARCHAR, name VARCHAR)
SELECT original_air_date FROM table_19897294_16 WHERE family_families = "The Potter Family"
Name the original air date for the potter family
CREATE TABLE table_19897294_16 (original_air_date VARCHAR, family_families VARCHAR)
SELECT MAX(points) FROM table_name_38 WHERE name = "ea schongau" AND drawn > 1
What's the most points for Ea Schongau with more than 1 drawn?
CREATE TABLE table_name_38 (points INTEGER, name VARCHAR, drawn VARCHAR)
SELECT digital_analog_signal FROM table_name_50 WHERE chipset_based_on = "radeon 8500"
What is the Digital/analog signal with a Chipset based on with radeon 8500?
CREATE TABLE table_name_50 (digital_analog_signal VARCHAR, chipset_based_on VARCHAR)
SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C'
What is the first name of students who got grade C in any class?
CREATE TABLE student (stu_num VARCHAR); CREATE TABLE enroll (stu_num VARCHAR)
SELECT SUM(gold) FROM table_name_81 WHERE total = 11 AND bronze < 3
How many golds have a Total of 11, and a Bronze smaller than 3?
CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT composition FROM table_name_67 WHERE €_equiv = "0.30"
What is the coin with a € equivalency of 0.30 made of?
CREATE TABLE table_name_67 (composition VARCHAR, €_equiv VARCHAR)
SELECT state FROM table_20065425_1 WHERE termination_of_mission = "November 29, 1973"
What state does the representative whose mission was terminated on November 29, 1973 represent?
CREATE TABLE table_20065425_1 (state VARCHAR, termination_of_mission VARCHAR)
SELECT series FROM table_name_55 WHERE date = "may 6"
What is the series score of the game on May 6?
CREATE TABLE table_name_55 (series VARCHAR, date VARCHAR)
SELECT COUNT(place) FROM table_name_96 WHERE points = 33
How many places have more than 33 points?
CREATE TABLE table_name_96 (place VARCHAR, points VARCHAR)
SELECT Name FROM editor WHERE Age = 24 OR Age = 25
Show the names of editors of age either 24 or 25.
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
SELECT record FROM table_27712702_8 WHERE date = "December 27"
What was the record on December 27?
CREATE TABLE table_27712702_8 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_51 WHERE opponent = "winnipeg jets"
What is the Winnipeg Jets record?
CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_19 WHERE home_team = "collingwood"
What is the date for home team Collingwood?
CREATE TABLE table_name_19 (date VARCHAR, home_team VARCHAR)
SELECT SUM(top_5) FROM table_name_59 WHERE top_10 = 3 AND events < 15
In the tournament that had 3 Top-10's, and less than 15 events, how many Top-5's did the player have?
CREATE TABLE table_name_59 (top_5 INTEGER, top_10 VARCHAR, events VARCHAR)
SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007"
What host has an original air date of june 11, 2007?
CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR)
SELECT score FROM table_name_92 WHERE competition = "1997 dunhill cup malaysia" AND date = "february 23, 1997"
Which score has a competition of 1997 dunhill cup malaysia and february 23, 1997 as the date?
CREATE TABLE table_name_92 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT competing_entities FROM table_name_4 WHERE first_held < 1970
Can you tell me the Competing entities that has the First held smaller than 1970?
CREATE TABLE table_name_4 (competing_entities VARCHAR, first_held INTEGER)
SELECT score FROM table_name_94 WHERE record = "1-0"
WHAT IS THE SCORE WITH A RECORD OF 1-0?
CREATE TABLE table_name_94 (score VARCHAR, record VARCHAR)
SELECT name FROM table_name_80 WHERE season = "2002" AND acquisition_via = "free agency"
What is the name from the 2002 season, and acquired via free agency?
CREATE TABLE table_name_80 (name VARCHAR, season VARCHAR, acquisition_via VARCHAR)
SELECT MIN(total_votes) FROM table_19763199_3
What is the least total votes?
CREATE TABLE table_19763199_3 (total_votes INTEGER)
SELECT candidates FROM table_1341423_20 WHERE district = "Maryland 5"
Who were the candidates in the Maryland 5 district election?
CREATE TABLE table_1341423_20 (candidates VARCHAR, district VARCHAR)
SELECT record FROM table_name_38 WHERE score = "0–2"
Which Record has a Score of 0–2?
CREATE TABLE table_name_38 (record VARCHAR, score VARCHAR)
SELECT score FROM table_name_12 WHERE tournament = "cordenons"
What is the score for the Tournament of Cordenons?
CREATE TABLE table_name_12 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(starts) FROM table_20590020_2 WHERE player = "Leif Olson"
What is the total number of entries for Leif Olson?
CREATE TABLE table_20590020_2 (starts VARCHAR, player VARCHAR)
SELECT status FROM table_2589963_1 WHERE juniors = "Baby Olympians"
What status of school is the school represented by the baby olympians?
CREATE TABLE table_2589963_1 (status VARCHAR, juniors VARCHAR)
SELECT rider FROM table_name_46 WHERE laps = 14 AND grid > 23 AND bike = "honda cbr1000rr" AND time = "+1'04.877"
Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.877 on a grid larger than 23?
CREATE TABLE table_name_46 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT country FROM table_name_80 WHERE player = "ky laffoon"
What Country has Player Ky Laffoon?
CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_52 WHERE official_name = "addington"
What's the total area in kilometers of the parish addington?
CREATE TABLE table_name_52 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67
Name the ends lost for 67 pa
CREATE TABLE table_15333005_1 (Ends VARCHAR, pa VARCHAR)
SELECT genre FROM table_name_79 WHERE release_year_of_first_charted_record = 1968 AND country_of_origin = "united states"
What is the Genre, when the Release-year of first charted record is 1968, and when the Country of origin is United States?
CREATE TABLE table_name_79 (genre VARCHAR, release_year_of_first_charted_record VARCHAR, country_of_origin VARCHAR)
SELECT SUM(qual) FROM table_name_57 WHERE grid = 24
What is the total qual where the grid number is 24?
CREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR)
SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8"
Find the names of catalog entries with level number 8.
CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, catalog_level_number VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR)
SELECT tournament FROM table_name_40 WHERE score = "4-6 6-2 6-1"
Which Tournament has a Score of 4-6 6-2 6-1?
CREATE TABLE table_name_40 (tournament VARCHAR, score VARCHAR)
SELECT copies_per_particle FROM table_name_46 WHERE protein = "nsp2"
How many copies per particle does the protein nsp2 have?
CREATE TABLE table_name_46 (copies_per_particle VARCHAR, protein VARCHAR)
SELECT club FROM table_name_65 WHERE drawn = "1" AND lost = "11" AND try_bonus = "7"
Which club had 1, draw, 11 lost, and a try bonus of 7?
CREATE TABLE table_name_65 (club VARCHAR, try_bonus VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT pole FROM table_name_95 WHERE flap < 15 AND podium > 11
When the Flap is less than 15 and the podium is larger than 11, what is the pole?
CREATE TABLE table_name_95 (pole VARCHAR, flap VARCHAR, podium VARCHAR)
SELECT match_played FROM table_21824695_8 WHERE highest = 32250
How many match played have the highest as 32250?
CREATE TABLE table_21824695_8 (match_played VARCHAR, highest VARCHAR)
SELECT AVG(grid) FROM table_name_7 WHERE time = "+22.505" AND laps > 23
What grid has an average time of +22.505 and laps larger than 23?
CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR)
SELECT COUNT(total_population) FROM table_name_12 WHERE male < 789
What is the total population with less than 789 males?
CREATE TABLE table_name_12 (total_population VARCHAR, male INTEGER)