answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MIN(overall) FROM table_name_91 WHERE player = "louis coleman"
What was the lowest overall for Louis Coleman?
CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR)
SELECT date FROM table_name_78 WHERE away_team = "morecambe"
What date was the away team Morecambe?
CREATE TABLE table_name_78 (date VARCHAR, away_team VARCHAR)
SELECT SUM(caps) FROM table_name_96 WHERE player = "stephen hoiles"
How many caps does stephen hoiles have?
CREATE TABLE table_name_96 (caps INTEGER, player VARCHAR)
SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1
What is the name of the player with the largest number of votes?
CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR)
SELECT COUNT(round) FROM table_name_39 WHERE college = "lehigh" AND overall < 152
What is the total number of rounds of the player from lehigh college with an overall less than 152?
CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR, overall VARCHAR)
SELECT rounds FROM table_name_34 WHERE chassis = "dallara f308" AND driver = "germán sánchez"
How many rounds did germán sánchez drive in where the chassis was dallara f308?
CREATE TABLE table_name_34 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR)
SELECT location_attendance FROM table_name_83 WHERE score = "w 117–109 (ot)"
What is the location and attendance when the score as w 117–109 (ot)?
CREATE TABLE table_name_83 (location_attendance VARCHAR, score VARCHAR)
SELECT AVG(average) FROM table_name_13 WHERE wickets > 19 AND matches < 16
What is the average of someone with more than 19 wickets and less than 16 matches?
CREATE TABLE table_name_13 (average INTEGER, wickets VARCHAR, matches VARCHAR)
SELECT player FROM table_name_6 WHERE pick < 11 AND position = "rhp" AND team = "new york mets"
Which Player has a Pick smaller than 11, and a Position of rhp, and a Team of new york mets?
CREATE TABLE table_name_6 (player VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR)
SELECT COUNT(points) FROM table_name_76 WHERE record = "40–21–12–3" AND march > 28
How many Points have a Record of 40–21–12–3, and a March larger than 28?
CREATE TABLE table_name_76 (points VARCHAR, record VARCHAR, march VARCHAR)
SELECT population__2010_ FROM table_1691800_2 WHERE municipality = "San Jacinto"
what is the population where municipality is san jacinto?
CREATE TABLE table_1691800_2 (population__2010_ VARCHAR, municipality VARCHAR)
SELECT date_successor_seated FROM table_225204_4 WHERE district = "Pennsylvania 17th"
Name the date successor seated for pennsylvania 17th
CREATE TABLE table_225204_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT MAX(poles) FROM table_name_74 WHERE wins < 0
What is the highest Poles with a win that is smaller than 0?
CREATE TABLE table_name_74 (poles INTEGER, wins INTEGER)
SELECT swimsuit FROM table_11674683_2 WHERE delegate = "South Africa"
What are the swimsuits for south africa?
CREATE TABLE table_11674683_2 (swimsuit VARCHAR, delegate VARCHAR)
SELECT title FROM table_name_6 WHERE year = 1952
Which Title is from 1952?
CREATE TABLE table_name_6 (title VARCHAR, year VARCHAR)
SELECT runner_up FROM table_name_20 WHERE venue = "berlin" AND result = "2-0" AND attendance = "100,000"
Who was runner-up at Berlin when the result was 2-0 with 100,000 fans in attendance?
CREATE TABLE table_name_20 (runner_up VARCHAR, attendance VARCHAR, venue VARCHAR, result VARCHAR)
SELECT village FROM table_2588674_1 WHERE area_km² = "27.19"
What village has an area of 27.19 km2?
CREATE TABLE table_2588674_1 (village VARCHAR, area_km² VARCHAR)
SELECT lmp1_winning_team FROM table_19598014_2 WHERE rnd = 2 AND lmp2_winning_team = "Adrian Fernández Luis Díaz"
Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz
CREATE TABLE table_19598014_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR)
SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 2008"
How many weeks are associated with Season 3 – spring 2008?
CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR)
SELECT surface FROM table_name_75 WHERE date = "26 may 1996"
What is the surface on 26 May 1996?
CREATE TABLE table_name_75 (surface VARCHAR, date VARCHAR)
SELECT result FROM table_name_79 WHERE date = "june 5"
Which Result that is on june 5?
CREATE TABLE table_name_79 (result VARCHAR, date VARCHAR)
SELECT MIN(game) FROM table_name_48 WHERE record = "23–6–4"
What was the earliest game with a record of 23–6–4?
CREATE TABLE table_name_48 (game INTEGER, record VARCHAR)
SELECT COUNT(first_pref_votes) FROM table_name_45 WHERE seats = "1"
How many First Pref votes have Seats of 1?
CREATE TABLE table_name_45 (first_pref_votes VARCHAR, seats VARCHAR)
SELECT assists FROM table_name_29 WHERE team = "florida" AND total_points = "75"
What is the assists for the Team of Florida and the total points of 75?
CREATE TABLE table_name_29 (assists VARCHAR, team VARCHAR, total_points VARCHAR)
SELECT player FROM table_name_93 WHERE country = "south africa"
Which player is from south africa?
CREATE TABLE table_name_93 (player VARCHAR, country VARCHAR)
SELECT apps FROM table_name_41 WHERE country = "uzbekistan" AND season = "2003"
How many apps does Uzbekistan have in 2003?
CREATE TABLE table_name_41 (apps VARCHAR, country VARCHAR, season VARCHAR)
SELECT time FROM table_name_65 WHERE laps = 23 AND grid = 13
How long did it take to ride when the laps were 23 and the grid of 13?
CREATE TABLE table_name_65 (time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(*) FROM Documents WHERE NOT document_id IN (SELECT document_id FROM Documents_with_expenses)
How many documents do not have any expense?
CREATE TABLE Documents (document_id VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR)
SELECT opponent FROM table_name_94 WHERE round = "world group"
What is Opponent, when Round is World Group?
CREATE TABLE table_name_94 (opponent VARCHAR, round VARCHAR)
SELECT incumbent FROM table_1342233_6 WHERE candidates = "Jack Z. Anderson (R) Unopposed"
who is the the incumbent with candidates being jack z. anderson (r) unopposed
CREATE TABLE table_1342233_6 (incumbent VARCHAR, candidates VARCHAR)
SELECT position FROM table_name_54 WHERE height > 179 AND player = "ezgi arslan"
What position that has a Height larger than 179, and Player is Ezgi Arslan?
CREATE TABLE table_name_54 (position VARCHAR, height VARCHAR, player VARCHAR)
SELECT us_viewers__million_ FROM table_19229713_6 WHERE _number = 16
How many u.s. viewers (million) have the number 16?
CREATE TABLE table_19229713_6 (us_viewers__million_ VARCHAR, _number VARCHAR)
SELECT MIN(year) FROM table_name_17 WHERE length = "3:50"
Which Year is the lowest one that has a Length of 3:50?
CREATE TABLE table_name_17 (year INTEGER, length VARCHAR)
SELECT director_s_ FROM table_name_53 WHERE rank = "nominated" AND film = "badmouth"
Who directed the nominated film, Badmouth?
CREATE TABLE table_name_53 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR)
SELECT 2008 FROM table_name_53 WHERE 2007 = "a" AND 2011 = "a" AND 2010 = "a" AND tournament = "china"
what is 2008 when 2007 is a, 2011 is a, 2010 is a and tournament is china?
CREATE TABLE table_name_53 (tournament VARCHAR)
SELECT time FROM table_name_82 WHERE nfl_recap = "recap" AND game_site = "arrowhead stadium"
What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?
CREATE TABLE table_name_82 (time VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)
SELECT T2.faculty FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = t2.campus JOIN degrees AS T3 ON T1.id = t3.campus AND t2.year = t3.year WHERE t2.year = 2001 ORDER BY t3.degrees LIMIT 1
How many faculty lines are there in the university that conferred the least number of degrees in year 2001?
CREATE TABLE campuses (id VARCHAR); CREATE TABLE faculty (faculty VARCHAR); CREATE TABLE degrees (Id VARCHAR)
SELECT COUNT(player) FROM table_22824319_3 WHERE points = 51
Name the total number of player for 51 points
CREATE TABLE table_22824319_3 (player VARCHAR, points VARCHAR)
SELECT SUM(rank) FROM table_name_59 WHERE gold > 0 AND total > 32 AND silver < 23
Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32
CREATE TABLE table_name_59 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT pick FROM table_2886617_3 WHERE player = "Marko Makinen"
Which pick has marko makinen as the player?
CREATE TABLE table_2886617_3 (pick VARCHAR, player VARCHAR)
SELECT producer FROM table_name_99 WHERE location = "poolavadi"
What company is the producer at the poolavadi location
CREATE TABLE table_name_99 (producer VARCHAR, location VARCHAR)
SELECT week FROM table_name_66 WHERE attendance = "27,262"
What week had an attendance of 27,262?
CREATE TABLE table_name_66 (week VARCHAR, attendance VARCHAR)
SELECT gdp__ppp__per_capita___intl_$___2011 FROM table_26313243_1 WHERE country = "Haiti"
Name the gdp per capita for haiti
CREATE TABLE table_26313243_1 (gdp__ppp__per_capita___intl_$___2011 VARCHAR, country VARCHAR)
SELECT MAX(loses) FROM table_18018214_3 WHERE club = "Ekranas-2 Panevėžys"
How many losses occurred when the club team was ekranas-2 panevėžys
CREATE TABLE table_18018214_3 (loses INTEGER, club VARCHAR)
SELECT competition FROM table_name_32 WHERE club = "aik"
Which competition has aik club?
CREATE TABLE table_name_32 (competition VARCHAR, club VARCHAR)
SELECT name FROM pilot WHERE NOT pilot_id IN (SELECT Winning_Pilot FROM MATCH WHERE country = 'Australia')
find the name of pilots who did not win the matches held in the country of Australia.
CREATE TABLE MATCH (name VARCHAR, pilot_id VARCHAR, Winning_Pilot VARCHAR, country VARCHAR); CREATE TABLE pilot (name VARCHAR, pilot_id VARCHAR, Winning_Pilot VARCHAR, country VARCHAR)
SELECT AVG(total) FROM table_name_99 WHERE place < 2 AND draw < 5
Which average Total has a Place smaller than 2, and a Draw smaller than 5?
CREATE TABLE table_name_99 (total INTEGER, place VARCHAR, draw VARCHAR)
SELECT AVG(week) FROM table_name_83 WHERE result = "w 28–20" AND attendance > 46 OFFSET 888
What is the average Week when the result was w 28–20, and there were more than 46,888 in attendance?
CREATE TABLE table_name_83 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT l2_cache FROM table_name_54 WHERE model_number = "pentium ii 350"
What is L2 Cache, when Model Number is Pentium II 350?
CREATE TABLE table_name_54 (l2_cache VARCHAR, model_number VARCHAR)
SELECT position FROM table_name_64 WHERE first_election = "1988 as vice mayor 2009"
What is the Position of the person with a First Election of 1988 as Vice Mayor 2009?
CREATE TABLE table_name_64 (position VARCHAR, first_election VARCHAR)
SELECT japanese_title FROM table_name_88 WHERE romaji_title = "ashita wa ashita no kaze ga fuku"
What title to the japanese give the romani title ashita wa ashita no kaze ga fuku?
CREATE TABLE table_name_88 (japanese_title VARCHAR, romaji_title VARCHAR)
SELECT MAX(total_usd) FROM table_27155990_1 WHERE creator = "Pebble Technology"
What was the maximum total USD collected by Pebble Technology?
CREATE TABLE table_27155990_1 (total_usd INTEGER, creator VARCHAR)
SELECT head_linesman FROM table_name_46 WHERE date = "1 february 2009"
Who is the head linesman of the game on 1 February 2009?
CREATE TABLE table_name_46 (head_linesman VARCHAR, date VARCHAR)
SELECT record FROM table_name_20 WHERE date = "23 february 1986"
Which Record has a Date of 23 february 1986?
CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR)
SELECT MIN(goals) FROM table_name_63 WHERE position = "second row" AND points > 12
Tell me the lowest goals for second row and points more than 12
CREATE TABLE table_name_63 (goals INTEGER, position VARCHAR, points VARCHAR)
SELECT COUNT(enrollment) FROM table_22171978_1 WHERE athletic_nickname = "Golden Knights"
For the athletic nickname of golden knights how many entries are shown for enrollment?
CREATE TABLE table_22171978_1 (enrollment VARCHAR, athletic_nickname VARCHAR)
SELECT played FROM table_name_95 WHERE points_against = "points against"
Name the played with points against of points against
CREATE TABLE table_name_95 (played VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_42 WHERE home_team = "richmond"
What was the date of the game when Richmond was the home team?
CREATE TABLE table_name_42 (date VARCHAR, home_team VARCHAR)
SELECT AVG(prominence__m_) FROM table_name_21 WHERE col__m_ = 350
Which Prominence (m) has a Col (m) of 350?
CREATE TABLE table_name_21 (prominence__m_ INTEGER, col__m_ VARCHAR)
SELECT race FROM table_name_9 WHERE fastest_lap = "keke rosberg" AND location = "paul ricard"
What is the race in Paul Ricard with Keke Rosberg as the fastest lap?
CREATE TABLE table_name_9 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR)
SELECT venue FROM table_name_54 WHERE city = "brussels, belgium"
What is the venue in the city of Brussels, Belgium?
CREATE TABLE table_name_54 (venue VARCHAR, city VARCHAR)
SELECT record FROM table_name_95 WHERE week = 12
What is the Record for week 12?
CREATE TABLE table_name_95 (record VARCHAR, week VARCHAR)
SELECT height_in_ft FROM table_11734041_16 WHERE no_s_ = "42" AND years_for_rockets = "1993-94"
What is the height in ft for number 42 for the rockets in 1993-94?
CREATE TABLE table_11734041_16 (height_in_ft VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR)
SELECT COUNT(viewers__millions_) FROM table_11253290_2 WHERE rank__week_ = "20"
How many viewers (millions) were there for rank (week) 20?
CREATE TABLE table_11253290_2 (viewers__millions_ VARCHAR, rank__week_ VARCHAR)
SELECT position FROM table_1213511_3 WHERE nhl_team = "Philadelphia Flyers"
What is the position listed for the team the Philadelphia Flyers?
CREATE TABLE table_1213511_3 (position VARCHAR, nhl_team VARCHAR)
SELECT opponent FROM table_16864968_9 WHERE location = "Prudential Center"
Nam the opponent for prudential center
CREATE TABLE table_16864968_9 (opponent VARCHAR, location VARCHAR)
SELECT clock_multiplier FROM table_name_23 WHERE model_number = "c7-m 764"
Which Clock Multiplier has a Model Number of c7-m 764?
CREATE TABLE table_name_23 (clock_multiplier VARCHAR, model_number VARCHAR)
SELECT AVG(round) FROM table_name_29 WHERE name = "red bryant" AND pick > 121
What's the average round Red Bryant was drafted with a pick larger than 121?
CREATE TABLE table_name_29 (round INTEGER, name VARCHAR, pick VARCHAR)
SELECT MIN(total) FROM table_name_25 WHERE finish = "t41"
What is the lowest total of the player with a t41 finish?
CREATE TABLE table_name_25 (total INTEGER, finish VARCHAR)
SELECT reason_for_termination FROM table_name_33 WHERE chief_judge = "1971–1977"
What is the reason the Chief Judge of 1971–1977 was terminated?
CREATE TABLE table_name_33 (reason_for_termination VARCHAR, chief_judge VARCHAR)
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = "Pending" ORDER BY T2.customer_id
Return the distinct name of customers whose order status is Pending, in the order of customer id.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR)
SELECT television_service FROM table_name_46 WHERE language = "italian"
Which television service has italian for its language?
CREATE TABLE table_name_46 (television_service VARCHAR, language VARCHAR)
SELECT COUNT(top_10) FROM table_name_52 WHERE tournament = "masters tournament" AND events < 4
What is the total for a top-10 in a masters tournament in an event smaller than 4?
CREATE TABLE table_name_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR)
SELECT year FROM table_name_58 WHERE remark = "#104 us"
What year was remark #104 us?
CREATE TABLE table_name_58 (year VARCHAR, remark VARCHAR)
SELECT control FROM table_name_70 WHERE conservative_party = "10 (+5)"
What was the control for the year with a Conservative Party result of 10 (+5)?
CREATE TABLE table_name_70 (control VARCHAR, conservative_party VARCHAR)
SELECT branding FROM table_name_66 WHERE frequency = "fm 88.9"
What is the branding for fm 88.9?
CREATE TABLE table_name_66 (branding VARCHAR, frequency VARCHAR)
SELECT democratic_seat_plurality FROM table_name_91 WHERE state_ranked_in_partisan_order = "new hampshire"
What is the democratic seat plurality with partisan order of New Hampshire?
CREATE TABLE table_name_91 (democratic_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)
SELECT mission FROM table_name_13 WHERE location = "rome"
what is the mission when the location is rome?
CREATE TABLE table_name_13 (mission VARCHAR, location VARCHAR)
SELECT winner FROM table_name_16 WHERE city = "lima"
Who is the winner in the city of lima?
CREATE TABLE table_name_16 (winner VARCHAR, city VARCHAR)
SELECT play_by_play FROM table_name_11 WHERE color_commentator_s_ = "eric wynalda" AND year < 2005
What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005?
CREATE TABLE table_name_11 (play_by_play VARCHAR, color_commentator_s_ VARCHAR, year VARCHAR)
SELECT COUNT(3) AS :2600 FROM table_23987362_2 WHERE hicham_el_guerrouj___mar__ = "Hudson de Souza ( BRA )"
How many of 3:26.00 when hicham el guerrouj ( mar ) is hudson de souza ( bra )?
CREATE TABLE table_23987362_2 (hicham_el_guerrouj___mar__ VARCHAR)
SELECT home_team FROM table_name_87 WHERE tie_no = "7"
Which home team is ranked no. 7 by tie no.?
CREATE TABLE table_name_87 (home_team VARCHAR, tie_no VARCHAR)
SELECT senator FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "Arkansas"
who won the senate seat in arkansas
CREATE TABLE table_1133844_4 (senator VARCHAR, state__linked_to_summaries_below_ VARCHAR)
SELECT SUM(scottish_cup) FROM table_name_74 WHERE player = "damon gray" AND league > 1
What is the sum for the Scottish cup that has player Damon Gray, and more than 1 league?
CREATE TABLE table_name_74 (scottish_cup INTEGER, player VARCHAR, league VARCHAR)
SELECT club FROM table_name_15 WHERE points = "82"
What is Club, when Points is "82"?
CREATE TABLE table_name_15 (club VARCHAR, points VARCHAR)
SELECT a_side FROM table_name_75 WHERE b_side = "it never entered my mind, part 2"
What is the A-side for it Never Entered My Mind, Part 2?
CREATE TABLE table_name_75 (a_side VARCHAR, b_side VARCHAR)
SELECT COUNT(rating) FROM table_name_70 WHERE share < 4 AND viewers__millions_ > 2.47
WHAT IS THE RATING THAT HAD A SHARE SMALLER THAN 4, AND 2.47 MILLION VIEWERS?
CREATE TABLE table_name_70 (rating VARCHAR, share VARCHAR, viewers__millions_ VARCHAR)
SELECT home_team AS score FROM table_name_1 WHERE away_team = "hawthorn"
What is the home team score when the away team was Hawthorn?
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_8 WHERE score = "734-5d"
Which venue had a score of 734-5d?
CREATE TABLE table_name_8 (venue VARCHAR, score VARCHAR)
SELECT award FROM table_name_66 WHERE result = "nominated" AND film = "sankranthi"
What is Award, when Result is "Nominated", and when Film is "Sankranthi"?
CREATE TABLE table_name_66 (award VARCHAR, result VARCHAR, film VARCHAR)
SELECT original_nfl_team FROM table_name_25 WHERE player = "rashied davis category:articles with hcards"
Who's the original team for Rashied Davis Category:articles with hcards?
CREATE TABLE table_name_25 (original_nfl_team VARCHAR, player VARCHAR)
SELECT SUM(num_of_component) FROM furniture
How many furniture components are there in total?
CREATE TABLE furniture (num_of_component INTEGER)
SELECT result FROM table_19744915_16 WHERE judges = 6
What is the result of judge 6?
CREATE TABLE table_19744915_16 (result VARCHAR, judges VARCHAR)
SELECT 2013 FROM table_name_16 WHERE 2012 = "2r"
What shows for 2013 when 2012 is 2r?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT date FROM table_name_44 WHERE location_attendance = "reunion arena"
What Date has a Location Attendance of reunion arena?
CREATE TABLE table_name_44 (date VARCHAR, location_attendance VARCHAR)
SELECT score FROM table_name_40 WHERE date = "march 8"
what is the score on march 8?
CREATE TABLE table_name_40 (score VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_9 WHERE date = "november 21, 1999"
Which Opponent has a Date of november 21, 1999?
CREATE TABLE table_name_9 (opponent VARCHAR, date VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"?
CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)
SELECT COUNT(avg_g) FROM table_name_47 WHERE att_cmp_int = "117–215–6"
What was the aveg/g for the qb with the Att-Cmp-Int of 117–215–6?
CREATE TABLE table_name_47 (avg_g VARCHAR, att_cmp_int VARCHAR)
SELECT COUNT(district) FROM table_1342331_5 WHERE incumbent = "David Delano Glover"
how many district  with incumbent being david delano glover
CREATE TABLE table_1342331_5 (district VARCHAR, incumbent VARCHAR)