answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT college_junior_club_team FROM table_name_85 WHERE round < 3
What is the college club that plays before round 3?
CREATE TABLE table_name_85 (college_junior_club_team VARCHAR, round INTEGER)
SELECT country FROM table_name_37 WHERE score = 71 - 74 - 70 = 215
Which Country has a Score of 71-74-70=215?
CREATE TABLE table_name_37 (country VARCHAR, score VARCHAR)
SELECT player FROM table_name_58 WHERE year > 2007 AND college_high_school_club = "arizona"
Who is the player with a year later than 2007 and the college/high school/club of Arizona?
CREATE TABLE table_name_58 (player VARCHAR, year VARCHAR, college_high_school_club VARCHAR)
SELECT SUM(year) FROM table_name_5 WHERE title = "floetic"
WHAT IS THE YEAR OF FLOETIC?
CREATE TABLE table_name_5 (year INTEGER, title VARCHAR)
SELECT format FROM table_name_61 WHERE region = "united states" AND catalog = "kem 072"
Which Format has a Region of united states, and a Catalog of kem 072?
CREATE TABLE table_name_61 (format VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT 2003 FROM table_name_33 WHERE 2000 = "—" AND 2007 = "—" AND 2010 = "—"
Name the 2003 which has a 2000 of —, and a 2007 of —, and a 2010 of —?
CREATE TABLE table_name_33 (Id VARCHAR)
SELECT college FROM table_name_37 WHERE round < 7 AND pick__number < 27 AND name = "anthony maddox"
Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox?
CREATE TABLE table_name_37 (college VARCHAR, name VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT directed_by FROM table_23483182_1 WHERE production_code = 414
Who directed 414?
CREATE TABLE table_23483182_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT high_assists FROM table_27723228_7 WHERE score = "W 107–99 (OT)"
Name the high assists for w 107–99 (ot)
CREATE TABLE table_27723228_7 (high_assists VARCHAR, score VARCHAR)
SELECT year_built FROM table_name_10 WHERE venue = "transamerica field"
What year was transamerica field built in?
CREATE TABLE table_name_10 (year_built VARCHAR, venue VARCHAR)
SELECT rating FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
What was the rating for the episode that had 5.90 million viewers?
CREATE TABLE table_23730973_5 (rating VARCHAR, viewers__millions_ VARCHAR)
SELECT displacement_cc FROM table_name_13 WHERE engine = "i6" AND year = "1936"
What cc displacement has an i6 engine in 1936?
CREATE TABLE table_name_13 (displacement_cc VARCHAR, engine VARCHAR, year VARCHAR)
SELECT try_bonus FROM table_name_17 WHERE tries_against = "19"
What try bonus has 19 as the tries against?
CREATE TABLE table_name_17 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT democratic FROM table_17503169_1 WHERE republican = "Frank Wolf"
Who was the democratic candidate when the republican was frank wolf?
CREATE TABLE table_17503169_1 (democratic VARCHAR, republican VARCHAR)
SELECT COUNT(first_elected) FROM table_name_22 WHERE counties_represented = "anne arundel" AND district = "30" AND committee = "ways and means"
What is the total number of First Elected that has counties represented of Anne Arundel, District of 30, and a Ways and Means Committee?
CREATE TABLE table_name_22 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)
SELECT position FROM table_237757_9 WHERE nasl_club_s_ = "Philadelphia Fury"
What position is Philadelphia Fury?
CREATE TABLE table_237757_9 (position VARCHAR, nasl_club_s_ VARCHAR)
SELECT headquarters, COUNT(*) FROM company GROUP BY headquarters
List all headquarters and the number of companies in each headquarter.
CREATE TABLE company (headquarters VARCHAR)
SELECT record FROM table_name_68 WHERE visitor = "atlanta"
Atlanta was a visitor on December 8, what was their record?
CREATE TABLE table_name_68 (record VARCHAR, visitor VARCHAR)
SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Le Pop"
Find the number of vocal types used in song "Le Pop"
CREATE TABLE vocals (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)
SELECT the_prize FROM table_name_19 WHERE tv_channel = "ant1" AND the_presenter = "andreas mikroutsikos" AND launch_date = "march 10, 2003"
What was the prize when the show was aired on Ant1, was presented by Andreas Mikroutsikos, and was launched on March 10, 2003?
CREATE TABLE table_name_19 (the_prize VARCHAR, launch_date VARCHAR, tv_channel VARCHAR, the_presenter VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_26 WHERE population__2011_ = 6591
What are the cyrillic and other names of the settlement whose population is 6591?
CREATE TABLE table_2562572_26 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR)
SELECT code__iata_ FROM table_name_20 WHERE total_cargo__metric_tonnes_ = "1,838,894"
What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?
CREATE TABLE table_name_20 (code__iata_ VARCHAR, total_cargo__metric_tonnes_ VARCHAR)
SELECT AVG(total) FROM table_name_70 WHERE nation = "denmark" AND gold > 0
The nation of denmark has what average total nad more than 0 gold?
CREATE TABLE table_name_70 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT name FROM buildings ORDER BY Height DESC
List the names of buildings in descending order of building height.
CREATE TABLE buildings (name VARCHAR, Height VARCHAR)
SELECT title FROM table_name_90 WHERE track = 3
Which title has a Track of 3?
CREATE TABLE table_name_90 (title VARCHAR, track VARCHAR)
SELECT to_par FROM table_name_60 WHERE place = "t5" AND player = "vijay singh"
What is T5 Place Vijay Singh's To par?
CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT length FROM table_22669816_1 WHERE track = "Phoenix International Raceway"
What lengths did Phoenix International Raceway host?
CREATE TABLE table_22669816_1 (length VARCHAR, track VARCHAR)
SELECT week FROM table_name_16 WHERE finalist = "marcelo ríos"
what is the week when the finalist is marcelo ríos?
CREATE TABLE table_name_16 (week VARCHAR, finalist VARCHAR)
SELECT club_team FROM table_name_9 WHERE round > 5 AND position = "defense"
What Club team with a Round larger than 5 have a defense position?
CREATE TABLE table_name_9 (club_team VARCHAR, round VARCHAR, position VARCHAR)
SELECT country FROM table_name_76 WHERE to_par = "+4"
What is the country for the player who had a To Par of +4?
CREATE TABLE table_name_76 (country VARCHAR, to_par VARCHAR)
SELECT COUNT(network) FROM table_2941848_10 WHERE year = 2008
How many networks are listed when the year is 2008?
CREATE TABLE table_2941848_10 (network VARCHAR, year VARCHAR)
SELECT ihsaa_class FROM table_name_27 WHERE school = "muncie cowan"
What is the IHSAA class for Muncie Cowan?
CREATE TABLE table_name_27 (ihsaa_class VARCHAR, school VARCHAR)
SELECT AVG(ast_avg) FROM table_name_74 WHERE games > 101 AND rank = 5 AND total_assists < 331
WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?
CREATE TABLE table_name_74 (ast_avg INTEGER, total_assists VARCHAR, games VARCHAR, rank VARCHAR)
SELECT away_team FROM table_name_60 WHERE score = "103-94"
What away team had a 103-94 score?
CREATE TABLE table_name_60 (away_team VARCHAR, score VARCHAR)
SELECT T1.first_name, T1.last_name, T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id
display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working.
CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, employee_id VARCHAR, department_id VARCHAR)
SELECT MIN(attendance) FROM table_name_50 WHERE week = 15
What was the lowest attendance at a week 15 game?
CREATE TABLE table_name_50 (attendance INTEGER, week VARCHAR)
SELECT copa_conmebol_1996 FROM table_name_49 WHERE recopa_sudamericana_1996 = "champions"
What is the copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?
CREATE TABLE table_name_49 (copa_conmebol_1996 VARCHAR, recopa_sudamericana_1996 VARCHAR)
SELECT COUNT(0 AS _100km_h), s FROM table_name_19 WHERE output = "ps (kw; hp) @4000 rpm"
What is the 0–100km/h,s for the output of ps (kw; hp) @4000 rpm?
CREATE TABLE table_name_19 (s VARCHAR, output VARCHAR)
SELECT AVG(2008) FROM table_name_20 WHERE airport = "hurghada international airport"
Which 2008 has an Airport of hurghada international airport?
CREATE TABLE table_name_20 (airport VARCHAR)
SELECT name FROM table_name_44 WHERE nationality = "belgium"
Which player is from Belgium?
CREATE TABLE table_name_44 (name VARCHAR, nationality VARCHAR)
SELECT COUNT(season) FROM table_29446183_2 WHERE third_place = "Otsuka Pharmaceuticals"
How many seasons did Otsuka Pharmaceuticals come in third?
CREATE TABLE table_29446183_2 (season VARCHAR, third_place VARCHAR)
SELECT away_leg FROM table_name_60 WHERE opposition = "aarhus gymnastik forening"
What ist the Away Leg with an Opposition that is aarhus gymnastik forening?
CREATE TABLE table_name_60 (away_leg VARCHAR, opposition VARCHAR)
SELECT COUNT(driver) FROM table_21977627_1 WHERE entrant = "Bob Gerard Racing"
How many drivers did Bob Gerard Racing have?
CREATE TABLE table_21977627_1 (driver VARCHAR, entrant VARCHAR)
SELECT science FROM table_2534578_1 WHERE social_studies = "93.56"
What was the science score in the year there was a social studies score of 93.56?
CREATE TABLE table_2534578_1 (science VARCHAR, social_studies VARCHAR)
SELECT away_team FROM table_name_76 WHERE home_team = "ashington"
Who is the away team against the home team Ashington?
CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR)
SELECT name_in_syriac FROM table_24613895_1 WHERE number_of_believers = 500
Name the name in syriac for 500 believers
CREATE TABLE table_24613895_1 (name_in_syriac VARCHAR, number_of_believers VARCHAR)
SELECT moving_to FROM table_name_15 WHERE nat = "arg esp"
Where is the nationality of Arg Esp moving to?
CREATE TABLE table_name_15 (moving_to VARCHAR, nat VARCHAR)
SELECT date FROM table_name_40 WHERE result = "8-0"
What date had a result of 8-0?
CREATE TABLE table_name_40 (date VARCHAR, result VARCHAR)
SELECT arrangement FROM table_28005100_1 WHERE title = "Bets3ab 3alia Nafsy"
What is the arrangement for bets3ab 3alia nafsy?
CREATE TABLE table_28005100_1 (arrangement VARCHAR, title VARCHAR)
SELECT height FROM table_name_96 WHERE pos = "gk" AND club = "vk primorac kotor"
What is the height of the player from club vk primorac kotor who plays gk?
CREATE TABLE table_name_96 (height VARCHAR, pos VARCHAR, club VARCHAR)
SELECT church_name FROM table_name_38 WHERE year_built = 1600
Which church was built in 1600?
CREATE TABLE table_name_38 (church_name VARCHAR, year_built VARCHAR)
SELECT MAX(week) FROM table_name_18 WHERE opponent = "washington redskins"
What is the biggest week with an opponent of washington redskins?
CREATE TABLE table_name_18 (week INTEGER, opponent VARCHAR)
SELECT MIN(wins) FROM table_name_1 WHERE driver = "ayrton senna"
What is the fewest number of wins in the chart for Ayrton Senna?
CREATE TABLE table_name_1 (wins INTEGER, driver VARCHAR)
SELECT network FROM table_name_44 WHERE region_country = "united kingdom" AND dates_aired = "1985–1992"
What is the name of the network in the United Kingdom which aired in 1985–1992?
CREATE TABLE table_name_44 (network VARCHAR, region_country VARCHAR, dates_aired VARCHAR)
SELECT finalist FROM table_name_69 WHERE semi_finalists = "monica seles conchita martínez"
Which Finalist has a Semi finalists of monica seles conchita martínez?
CREATE TABLE table_name_69 (finalist VARCHAR, semi_finalists VARCHAR)
SELECT competition FROM table_name_19 WHERE assists > 40
What competition had more than 40 assists?
CREATE TABLE table_name_19 (competition VARCHAR, assists INTEGER)
SELECT date FROM table_name_92 WHERE record = "11–10–2"
Which Date has a Record of 11–10–2?
CREATE TABLE table_name_92 (date VARCHAR, record VARCHAR)
SELECT icao FROM table_name_54 WHERE city = "ningbo"
What is the ICAO for the airport in Ningbo?
CREATE TABLE table_name_54 (icao VARCHAR, city VARCHAR)
SELECT college FROM table_name_80 WHERE round < 2
Which college had rounds smaller than 2?
CREATE TABLE table_name_80 (college VARCHAR, round INTEGER)
SELECT district FROM table_1341738_19 WHERE incumbent = "Joe Waggonner"
What district did Joe Waggonner belong to?
CREATE TABLE table_1341738_19 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(points) FROM table_name_80 WHERE entrant = "fred tuck cars" AND year > 1960
How many points after 1960 for fred tuck cars?
CREATE TABLE table_name_80 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT country FROM table_name_58 WHERE player = "johnny miller"
Which country has the player Johnny Miller?
CREATE TABLE table_name_58 (country VARCHAR, player VARCHAR)
SELECT MAX(loss) FROM table_name_1 WHERE long > 61
What is the highest loss with a long more than 61?
CREATE TABLE table_name_1 (loss INTEGER, long INTEGER)
SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Lord Zortek"
What eagle riders where ova (harmony gold dub) is lord zortek?
CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, ova__harmony_gold_dub_ VARCHAR)
SELECT reward FROM table_25016824_2 WHERE immunity = "Martin" AND finish = "13th voted Out 8th Jury Member Day 46"
What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?
CREATE TABLE table_25016824_2 (reward VARCHAR, immunity VARCHAR, finish VARCHAR)
SELECT position FROM table_name_76 WHERE overall = 304
What position does the player play with an overall of 304?
CREATE TABLE table_name_76 (position VARCHAR, overall VARCHAR)
SELECT year AS Retired FROM table_name_2 WHERE fuel_propulsion = "diesel" AND length = "40'" AND numbers__quantity_ordered_ = "3701-3729 (29 buses)"
What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?
CREATE TABLE table_name_2 (year VARCHAR, numbers__quantity_ordered_ VARCHAR, fuel_propulsion VARCHAR, length VARCHAR)
SELECT MAX(pick) FROM table_name_27 WHERE nationality = "france" AND draft < 1979
What is the highest Pick, when Nationality is "France", and when Draft is less than 1979?
CREATE TABLE table_name_27 (pick INTEGER, nationality VARCHAR, draft VARCHAR)
SELECT AVG(2002) FROM table_name_64 WHERE 2003 < 13.2 AND 2006 > 12.1 AND 2011 > 13.5 AND 2001 = 11.5
What is the 2002 average when 2003 is less than 13.2, 2006 is more than 12.1, 2011 is more than 13.5 and 2001 is 11.5?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT SUM(rank) FROM table_name_47 WHERE played < 6
What is the rank for less than 6 plays?
CREATE TABLE table_name_47 (rank INTEGER, played INTEGER)
SELECT sport FROM table_name_4 WHERE medal_count = 17
Which sport has 17 as the medal count?
CREATE TABLE table_name_4 (sport VARCHAR, medal_count VARCHAR)
SELECT event FROM table_name_8 WHERE time = "2:19"
What was the name of the Event with a time of 2:19?
CREATE TABLE table_name_8 (event VARCHAR, time VARCHAR)
SELECT high_school FROM table_22496344_1 WHERE year = "Senior (RS)"
Which highschool has senior (rs) for the year?
CREATE TABLE table_22496344_1 (high_school VARCHAR, year VARCHAR)
SELECT away_team FROM table_name_60 WHERE crowd > 21 OFFSET 000
Which away team had a crowd bigger than 21,000?
CREATE TABLE table_name_60 (away_team VARCHAR, crowd INTEGER)
SELECT position FROM table_10360823_1 WHERE overall = 255
What position is played by pick 255 overall?
CREATE TABLE table_10360823_1 (position VARCHAR, overall VARCHAR)
SELECT tournament FROM table_name_3 WHERE 2007 = "19–4"
Which Tournament has a 2007 of 19–4?
CREATE TABLE table_name_3 (tournament VARCHAR)
SELECT surface FROM table_name_93 WHERE date = "september 20, 1993"
What type of surface was used for the game played on September 20, 1993?
CREATE TABLE table_name_93 (surface VARCHAR, date VARCHAR)
SELECT away FROM table_name_34 WHERE round = "semifinals"
Who was the away team in the semifinals?
CREATE TABLE table_name_34 (away VARCHAR, round VARCHAR)
SELECT position FROM table_name_55 WHERE school = "dartmouth ohio state"
What is the position of the player from Dartmouth Ohio State?
CREATE TABLE table_name_55 (position VARCHAR, school VARCHAR)
SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE cyrillic_name = "Футог"
How many 2011 populations have a Cyrillic name of футог?
CREATE TABLE table_2562572_2 (population__2011_ VARCHAR, cyrillic_name VARCHAR)
SELECT SUM(game) FROM table_name_58 WHERE opponent = "cleveland barons" AND march < 8
What is the sum of Game, when Opponent is "Cleveland Barons", and when March is less than 8?
CREATE TABLE table_name_58 (game INTEGER, opponent VARCHAR, march VARCHAR)
SELECT AVG(week) FROM table_name_71 WHERE opponent = "san diego chargers"
What week was the opponent the San Diego Chargers?
CREATE TABLE table_name_71 (week INTEGER, opponent VARCHAR)
SELECT method FROM table_name_70 WHERE opponent = "chris ade"
What is the method of the match with chris ade as the opponent?
CREATE TABLE table_name_70 (method VARCHAR, opponent VARCHAR)
SELECT chassis FROM table_name_3 WHERE year = 2012
What chassis has 2012 as the year?
CREATE TABLE table_name_3 (chassis VARCHAR, year VARCHAR)
SELECT COUNT(winner) FROM table_28211103_1 WHERE st_kilda_score = "14.11.95"
How many winners have st kilda score at 14.11.95?
CREATE TABLE table_28211103_1 (winner VARCHAR, st_kilda_score VARCHAR)
SELECT vacator FROM table_225095_4 WHERE successor = "Shadrach Bond"
Who was the vacator when Shadrach Bond was the successor?
CREATE TABLE table_225095_4 (vacator VARCHAR, successor VARCHAR)
SELECT SUM(wins) FROM table_name_76 WHERE points < 27 AND goals_against = 41
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 position FROM table_name_78 WHERE college = "notre dame"
What is the position of the player who went to college of notre dame?
CREATE TABLE table_name_78 (position VARCHAR, college VARCHAR)
SELECT position FROM table_name_77 WHERE team = "cincinnati royals"
What is Position, when Team is Cincinnati Royals?
CREATE TABLE table_name_77 (position VARCHAR, team VARCHAR)
SELECT best_10_year_period FROM table_1710426_2 WHERE best_15_year_period = "Fischer"
Which people had the best 10-year period when Fischer had best 15-year period?
CREATE TABLE table_1710426_2 (best_10_year_period VARCHAR, best_15_year_period VARCHAR)
SELECT game FROM table_13464416_6 WHERE location_attendance = "Omni Coliseum 7,194"
how many times was the participation at omni coliseum 7,194?
CREATE TABLE table_13464416_6 (game VARCHAR, location_attendance VARCHAR)
SELECT player FROM table_name_47 WHERE finish = "t48" AND year_s__won = "1997"
Who won in 1997 with a finish of t48?
CREATE TABLE table_name_47 (player VARCHAR, finish VARCHAR, year_s__won VARCHAR)
SELECT place FROM table_name_37 WHERE score = 67 - 76 - 74 - 67 = 284
What is the Place of the Player with a Score of 67-76-74-67=284?
CREATE TABLE table_name_37 (place VARCHAR, score VARCHAR)
SELECT player FROM table_name_21 WHERE total < 287 AND year_s__won = "1988"
Who won in 1988 with a total less than 287?
CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_name_95 WHERE location = "scotland"
What is the 1st prize of the tournament in Scotland?
CREATE TABLE table_name_95 (location VARCHAR)
SELECT visiting_team FROM table_name_22 WHERE stadium = "cleveland browns stadium"
What team visited the Cleveland Browns Stadium?
CREATE TABLE table_name_22 (visiting_team VARCHAR, stadium VARCHAR)
SELECT COUNT(year) FROM table_name_60 WHERE nominee = "best musical revival"
How many years was Best Musical Revival nominated?
CREATE TABLE table_name_60 (year VARCHAR, nominee VARCHAR)
SELECT MIN(term) FROM table_name_94 WHERE elected = 2007 AND position = "chairperson"
What is the lowest term from the 2007 election with the position of chairperson?
CREATE TABLE table_name_94 (term INTEGER, elected VARCHAR, position VARCHAR)
SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = "Margaret Ann Awitan Bayot"
How many pageants were margaret ann awitan bayot the delegate of?
CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR)
SELECT no_5 FROM table_name_39 WHERE no_2 = "olivia" AND no_4 = "ava" AND no_6 = "abigail"
What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?
CREATE TABLE table_name_39 (no_5 VARCHAR, no_6 VARCHAR, no_2 VARCHAR, no_4 VARCHAR)