question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?
CREATE TABLE table_name_66 (screen_pixels VARCHAR, maker VARCHAR, weight VARCHAR)
SELECT screen_pixels FROM table_name_66 WHERE maker = "amazon.com" AND weight = "221g (7.8oz)"
How many films are titled "Dans la Ville Blanche"?
CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT COUNT(film_title_used_in_nomination) FROM table_22034853_1 WHERE original_title = "Dans la ville blanche"
What date was there a playoff on the margin of victory during the Shirley Englehorn Invitational?
CREATE TABLE table_name_36 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_36 WHERE margin_of_victory = "playoff" AND tournament = "shirley englehorn invitational"
Which celebrity was raised 03?
CREATE TABLE table_12286195_1 (celebrity VARCHAR, raised VARCHAR)
SELECT celebrity FROM table_12286195_1 WHERE raised = "03"
What is the 2003 value with 2r in 2008 and 1r in 2011?
CREATE TABLE table_name_59 (Id VARCHAR)
SELECT 2003 FROM table_name_59 WHERE 2008 = "2r" AND 2011 = "1r"
Find the busiest source airport that runs most number of routes in China.
CREATE TABLE routes (src_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1
Who finished in third place when the winner was Karina Bacchi?
CREATE TABLE table_25214321_1 (third_place VARCHAR, winner VARCHAR)
SELECT third_place FROM table_25214321_1 WHERE winner = "Karina Bacchi"
What is the attendance?
CREATE TABLE table_23466021_4 (attendance INTEGER)
SELECT MAX(attendance) FROM table_23466021_4
Name the name of 36.0n
CREATE TABLE table_16799784_2 (name VARCHAR, latitude VARCHAR)
SELECT name FROM table_16799784_2 WHERE latitude = "36.0N"
What martin has a lanier of 6%?
CREATE TABLE table_name_42 (martin VARCHAR, lanier VARCHAR)
SELECT martin FROM table_name_42 WHERE lanier = "6%"
What LINER class has a W.A. of 0-6-0st with a 2 No. Built?
CREATE TABLE table_name_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR)
SELECT lner_class FROM table_name_44 WHERE wa = "0-6-0st" AND no_built = 2
How many lanes does Australia have with a reaction smaller than 0.138?
CREATE TABLE table_name_55 (lane VARCHAR, nationality VARCHAR, reaction VARCHAR)
SELECT COUNT(lane) FROM table_name_55 WHERE nationality = "australia" AND reaction < 0.138
What is the visiting team that has a home team related to footscray?
CREATE TABLE table_name_24 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_24 WHERE home_team = "footscray"
What club has a Try Bonus of 8?
CREATE TABLE table_name_16 (club VARCHAR, try_bonus VARCHAR)
SELECT club FROM table_name_16 WHERE try_bonus = "8"
What is Mark, when Lane is less than 5, and when React is 0.217?
CREATE TABLE table_name_88 (mark VARCHAR, lane VARCHAR, react VARCHAR)
SELECT mark FROM table_name_88 WHERE lane < 5 AND react = 0.217
How many match played have the highest as 32250?
CREATE TABLE table_21824695_8 (match_played VARCHAR, highest VARCHAR)
SELECT match_played FROM table_21824695_8 WHERE highest = 32250
What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?
CREATE TABLE table_16724844_1 (mens_45 VARCHAR, mens_40 VARCHAR)
SELECT mens_45 FROM table_16724844_1 WHERE mens_40 = "SunWest Razorbacks def Sydney Mets"
What was the result of the match held when his record was 7-0-0?
CREATE TABLE table_name_31 (result VARCHAR, record VARCHAR)
SELECT result FROM table_name_31 WHERE record = "7-0-0"
What type of school had an enrollment in 2009 of 224?
CREATE TABLE table_2076595_1 (type VARCHAR, enrollment__2009_ VARCHAR)
SELECT type FROM table_2076595_1 WHERE enrollment__2009_ = 224
What is Curtis Strange's Score?
CREATE TABLE table_name_11 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_11 WHERE player = "curtis strange"
Where was the hometown for the player that attended Shanley High School?
CREATE TABLE table_11677691_4 (hometown VARCHAR, school VARCHAR)
SELECT hometown FROM table_11677691_4 WHERE school = "Shanley High school"
How many in lost renomination results were elected first?
CREATE TABLE table_1342338_3 (first_elected VARCHAR, result VARCHAR)
SELECT first_elected FROM table_1342338_3 WHERE result = "Lost renomination"
How many patients' prescriptions are made by physician John Dorian?
CREATE TABLE patient (SSN VARCHAR); CREATE TABLE prescribes (patient VARCHAR, physician VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)
SELECT COUNT(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = "John Dorian"
How many drivers used lola t92/00/ buick for their chassis/engine?
CREATE TABLE table_23391714_1 (no VARCHAR, chassis_engine VARCHAR)
SELECT COUNT(no) FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick"
How many officers o/s were there on the day when the number of USAAF was 2373882?
CREATE TABLE table_23508196_2 (officers_o_s INTEGER, total_usaaf VARCHAR)
SELECT MAX(officers_o_s) FROM table_23508196_2 WHERE total_usaaf = 2373882
What's the nationality of jim les?
CREATE TABLE table_name_24 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_24 WHERE player = "jim les"
what is the English meaning of the old English name "sæturnesdæg"?
CREATE TABLE table_2624098_1 (english_day_name_meaning VARCHAR, old_english_day_name VARCHAR)
SELECT english_day_name_meaning FROM table_2624098_1 WHERE old_english_day_name = "Sæturnesdæg"
Which season has more than 5 episodes each 159 minutes in length?
CREATE TABLE table_name_12 (season VARCHAR, episode_count VARCHAR, time_length VARCHAR)
SELECT season FROM table_name_12 WHERE episode_count > 5 AND time_length = "159 minutes"
Who constructed Aguri Suzuki's car?
CREATE TABLE table_name_4 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_4 WHERE driver = "aguri suzuki"
When rank is 7 and silver is less than 0, what is the total gold?
CREATE TABLE table_name_17 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT SUM(gold) FROM table_name_17 WHERE rank = "7" AND silver < 0
Which tires were in Class C in years before 1983?
CREATE TABLE table_name_70 (tyres VARCHAR, class VARCHAR, year VARCHAR)
SELECT tyres FROM table_name_70 WHERE class = "c" AND year < 1983
What is are the highest matches with £5,000 in prize money?
CREATE TABLE table_name_77 (matches INTEGER, prize_money VARCHAR)
SELECT MAX(matches) FROM table_name_77 WHERE prize_money = "£5,000"
In what City/town was their institution founded in 1860?
CREATE TABLE table_name_34 (city__town VARCHAR, year_founded VARCHAR)
SELECT city__town FROM table_name_34 WHERE year_founded = 1860
After 1983, what was the Position in Seoul, South Korea?
CREATE TABLE table_name_92 (position VARCHAR, year VARCHAR, venue VARCHAR)
SELECT position FROM table_name_92 WHERE year > 1983 AND venue = "seoul, south korea"
What is the fewest number of bronze medals won among the nations ranked 12 that won no gold medals and 1 medal overall?
CREATE TABLE table_name_51 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR)
SELECT MIN(bronze) FROM table_name_51 WHERE total = 1 AND rank = "12" AND gold < 1
What is the highest draw against 2161?
CREATE TABLE table_name_98 (draws INTEGER, against INTEGER)
SELECT MAX(draws) FROM table_name_98 WHERE against > 2161
What college does Dennis Scott attend?
CREATE TABLE table_name_26 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_26 WHERE player = "dennis scott"
What is the low point total after 2006 with an m16 chassis?
CREATE TABLE table_name_59 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_59 WHERE chassis = "m16" AND year > 2006
how many literate males are there that has a district population of 6.65?
CREATE TABLE table_28939145_2 (Literate VARCHAR, _percentage_of_district_population VARCHAR)
SELECT Literate AS male FROM table_28939145_2 WHERE _percentage_of_district_population = "6.65"
What is the Score of the match on May 21, 1984 with Outcome of runner-up?
CREATE TABLE table_name_94 (score VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT score FROM table_name_94 WHERE outcome = "runner-up" AND date = "may 21, 1984"
What was Craig Wood's score?
CREATE TABLE table_name_22 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_22 WHERE player = "craig wood"
Which Round has a School/Club Team of indiana, and a Pick smaller than 198?
CREATE TABLE table_name_85 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)
SELECT AVG(round) FROM table_name_85 WHERE school_club_team = "indiana" AND pick < 198
List the names of editors in ascending order of age.
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
SELECT Name FROM editor ORDER BY Age
On what date were Perth Wildcats the away team?
CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_28 WHERE away_team = "perth wildcats"
What is the Home team score for the Away team of North Melbourne?
CREATE TABLE table_name_69 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_69 WHERE away_team = "north melbourne"
Where is Miller Barber from?
CREATE TABLE table_name_52 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_52 WHERE player = "miller barber"
What was the highest number of gold medals when there were 0 silver medals?
CREATE TABLE table_name_78 (gold INTEGER, silver INTEGER)
SELECT MAX(gold) FROM table_name_78 WHERE silver < 0
What is the position for the university of north carolina carolina dynamo affiliation
CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR)
SELECT position FROM table_29626583_1 WHERE affiliation = "University of North Carolina Carolina Dynamo"
On 1959-01-27 when outcome was failure, what is the serial?
CREATE TABLE table_name_91 (serial VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT serial FROM table_name_91 WHERE outcome = "failure" AND date = "1959-01-27"
How many total rounds has lehigh as the college?
CREATE TABLE table_name_90 (round VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_90 WHERE college = "lehigh"
Which result has a Goal of deacon 3/5, bridge 2/2?
CREATE TABLE table_name_38 (result VARCHAR, goals VARCHAR)
SELECT result FROM table_name_38 WHERE goals = "deacon 3/5, bridge 2/2"
What is the lowest effic with a 58.9 avg/g?
CREATE TABLE table_name_58 (effic INTEGER, avg_g VARCHAR)
SELECT MIN(effic) FROM table_name_58 WHERE avg_g = 58.9
In 2007, how many points were won when more than 5 matches were played?
CREATE TABLE table_name_74 (points_won VARCHAR, year VARCHAR, total_matches VARCHAR)
SELECT COUNT(points_won) FROM table_name_74 WHERE year = "2007" AND total_matches > 5
What is the percentage seats contested for the revolutionary socialist party?
CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR, party VARCHAR)
SELECT _percentage_in_seats_contested FROM table_20728138_1 WHERE party = "Revolutionary Socialist party"
What date was the circuit, snetterton, when riki christodoulou had the fastest lap?
CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou"
How many distinct payment methods are used by parties?
CREATE TABLE parties (payment_method_code VARCHAR)
SELECT COUNT(DISTINCT payment_method_code) FROM parties
What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r"
Name the total number of years for a 39-31 record
CREATE TABLE table_name_18 (year VARCHAR, record VARCHAR)
SELECT COUNT(year) FROM table_name_18 WHERE record = "39-31"
Record description of maximum load to m (ft), and a Date of 23 september 1961 is what pilot?
CREATE TABLE table_name_89 (pilot VARCHAR, record_description VARCHAR, date VARCHAR)
SELECT pilot FROM table_name_89 WHERE record_description = "maximum load to m (ft)" AND date = "23 september 1961"
What is the third year course in science?
CREATE TABLE table_12148147_2 (third_year VARCHAR, subjects VARCHAR)
SELECT third_year FROM table_12148147_2 WHERE subjects = "Science"
What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?
CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR)
SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania"
How many laps were completed by Piers Courage when BRM was the constructor and the grid is larger than 8?
CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT COUNT(laps) FROM table_name_25 WHERE constructor = "brm" AND driver = "piers courage" AND grid > 8
Which authors belong to the institution "Google"? Show the first names and last names.
CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR)
SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google"
What was the time for the winning horse Salford ii?
CREATE TABLE table_name_94 (time VARCHAR, winner VARCHAR)
SELECT time FROM table_name_94 WHERE winner = "salford ii"
Name the last title for cuenca
CREATE TABLE table_2454589_1 (last_title VARCHAR, home_city VARCHAR)
SELECT last_title FROM table_2454589_1 WHERE home_city = "Cuenca"
What is the college/junior/club team (league) of left wing Ondrej Roman?
CREATE TABLE table_name_62 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_62 WHERE position = "left wing" AND player = "ondrej roman"
How many numbers correspond to the score in the final of 6–3, 6–4, 7–6 (13–11)?
CREATE TABLE table_26202940_6 (no VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(no) FROM table_26202940_6 WHERE score_in_the_final = "6–3, 6–4, 7–6 (13–11)"
What was the result of week 1 and the opponent was bye?
CREATE TABLE table_name_31 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_31 WHERE week = "1" AND opponent = "bye"
Which Total population (2010 census) has an Area (km 2) smaller than 147,307.00?
CREATE TABLE table_name_11 (total_population__2010_census_ INTEGER, area__km_2__ INTEGER)
SELECT MAX(total_population__2010_census_) FROM table_name_11 WHERE area__km_2__ < 147 OFFSET 307.00
What is the new conference for the Gauchos team?
CREATE TABLE table_name_28 (new_conference VARCHAR, team_nickname VARCHAR)
SELECT new_conference FROM table_name_28 WHERE team_nickname = "gauchos"
Which flight had an aircraft of vickers viscount type 794?
CREATE TABLE table_name_26 (flight VARCHAR, aircraft VARCHAR)
SELECT flight FROM table_name_26 WHERE aircraft = "vickers viscount type 794"
How much Gold has a Bronze larger than 1, and a Silver larger than 2?
CREATE TABLE table_name_38 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(gold) FROM table_name_38 WHERE bronze > 1 AND silver > 2
What venue had a Score of 120-108?
CREATE TABLE table_name_1 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_1 WHERE score = "120-108"
What was the latitude of the Clearwater townsship?
CREATE TABLE table_18600760_3 (latitude VARCHAR, township VARCHAR)
SELECT latitude FROM table_18600760_3 WHERE township = "Clearwater"
How many instrument does the musician with last name "Heilo" use?
CREATE TABLE instruments (bandmateid VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR)
SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
Name the winning constructor for abu dhabi grand prix
CREATE TABLE table_name_22 (winning_constructor VARCHAR, grand_prix VARCHAR)
SELECT winning_constructor FROM table_name_22 WHERE grand_prix = "abu dhabi grand prix"
Name the past habitual for गर्छस् garchas 'you (will) do'
CREATE TABLE table_16337329_5 (past_habitual VARCHAR, probable_future VARCHAR)
SELECT past_habitual FROM table_16337329_5 WHERE probable_future = "गर्छस् garchas 'you (will) do'"
What is the english title of the film before 1999 with a role of kim da-rim?
CREATE TABLE table_name_80 (english_title VARCHAR, year VARCHAR, role VARCHAR)
SELECT english_title FROM table_name_80 WHERE year < 1999 AND role = "kim da-rim"
How many points were scored when the podiums is 0 and position is 10th?
CREATE TABLE table_25318033_1 (points VARCHAR, podiums VARCHAR, position VARCHAR)
SELECT points FROM table_25318033_1 WHERE podiums = 0 AND position = "10th"
Name the date for result loss for duke
CREATE TABLE table_21092444_1 (date VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT date FROM table_21092444_1 WHERE result = "Loss" AND opponent = "Duke"
Show all headquarters with both a company in banking industry and a company in Oil and gas.
CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR)
SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas'
What is the height of the player with a first round score of 44.1?
CREATE TABLE table_name_1 (height VARCHAR, first_round VARCHAR)
SELECT height FROM table_name_1 WHERE first_round = "44.1"
What Home team plays at the princes park Venue?
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_29 WHERE venue = "princes park"
What score to par did Mike Weir have?
CREATE TABLE table_name_69 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_69 WHERE player = "mike weir"
What was Lee Trevino's score?
CREATE TABLE table_name_42 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_42 WHERE player = "lee trevino"
What game did Jets have an attendance of 78,722?
CREATE TABLE table_name_8 (game_site VARCHAR, attendance VARCHAR)
SELECT game_site FROM table_name_8 WHERE attendance = "78,722"
What are the prizes when 1 is the number of winning tickets?
CREATE TABLE table_20195922_3 (prize__eur_ VARCHAR, number_of_winning_tickets VARCHAR)
SELECT prize__eur_ FROM table_20195922_3 WHERE number_of_winning_tickets = 1
Which Bleeding time has a Condition of factor x deficiency as seen in amyloid purpura?
CREATE TABLE table_name_31 (bleeding_time VARCHAR, condition VARCHAR)
SELECT bleeding_time FROM table_name_31 WHERE condition = "factor x deficiency as seen in amyloid purpura"
What is Tennis, when School Year is 2004-05?
CREATE TABLE table_name_29 (tennis VARCHAR, school_year VARCHAR)
SELECT tennis FROM table_name_29 WHERE school_year = "2004-05"
What is umbro's highest capacity?
CREATE TABLE table_name_23 (capacity INTEGER, kitmaker VARCHAR)
SELECT MAX(capacity) FROM table_name_23 WHERE kitmaker = "umbro"
What club scored 143 goals?
CREATE TABLE table_name_71 (club VARCHAR, goals VARCHAR)
SELECT club FROM table_name_71 WHERE goals = "143"
What's the least against number for Cobden with draws more than 0?
CREATE TABLE table_name_50 (against INTEGER, club VARCHAR, draws VARCHAR)
SELECT MIN(against) FROM table_name_50 WHERE club = "cobden" AND draws > 0
how many attendance with stadium being cotton bowl
CREATE TABLE table_14102379_4 (attendance VARCHAR, stadium VARCHAR)
SELECT COUNT(attendance) FROM table_14102379_4 WHERE stadium = "Cotton Bowl"
what was the venue on 7 october 2011?
CREATE TABLE table_name_11 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_11 WHERE date = "7 october 2011"
Which score has a Record of 48-55?
CREATE TABLE table_name_66 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_66 WHERE record = "48-55"
What is the total number of Tests when the lost is less than 9 for sir fred allen?
CREATE TABLE table_name_43 (tests VARCHAR, lost VARCHAR, name VARCHAR)
SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen"
What is every entry for 1982-83 for rank 1?
CREATE TABLE table_22606461_10 (rank VARCHAR)
SELECT 1982 AS _83 FROM table_22606461_10 WHERE rank = 1
How many golds for nations with under 1 bronze?
CREATE TABLE table_name_41 (gold INTEGER, bronze INTEGER)
SELECT SUM(gold) FROM table_name_41 WHERE bronze < 1
What is the grid total for cars with over 69 laps?
CREATE TABLE table_name_34 (grid VARCHAR, laps INTEGER)
SELECT COUNT(grid) FROM table_name_34 WHERE laps > 69
Which nation has a Silver of 1, a Gold of 0, and a Total of 1?
CREATE TABLE table_name_46 (nation VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT nation FROM table_name_46 WHERE silver = "1" AND gold = "0" AND total = "1"