answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(population__total_) FROM table_name_96 WHERE year = 1976 AND _barcaldine_ < 1 OFFSET 780
What is the high Population (total) from 1976 with a (Barcaldine) smaller than 1,780?
CREATE TABLE table_name_96 (population__total_ INTEGER, year VARCHAR, _barcaldine_ VARCHAR)
SELECT score FROM table_name_36 WHERE date = "17 november 1956" AND home_team = "derby county"
What is the score on 17 November 1956 when home team is Derby County?
CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT MIN(p) FROM table_18254488_2 WHERE player = "Shaun Maloney"
When shaun maloney is the player what is the lowest p?
CREATE TABLE table_18254488_2 (p INTEGER, player VARCHAR)
SELECT episode FROM table_name_51 WHERE run_time = "25:12"
What episode has a run time of 25:12?
CREATE TABLE table_name_51 (episode VARCHAR, run_time VARCHAR)
SELECT finish FROM table_name_91 WHERE chassis = "dallara" AND start = "5" AND year = 2006
What did the Dallara chassis with a 5 start in 2006 finish?
CREATE TABLE table_name_91 (finish VARCHAR, year VARCHAR, chassis VARCHAR, start VARCHAR)
SELECT T2.name, COUNT(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid
Show aircraft names and number of flights for each aircraft.
CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR)
SELECT money___$__ FROM table_name_75 WHERE to_par < 4 AND score = 74 - 72 - 68 - 73 = 287
How much money does the player with a to par less than 4 and a score of 74-72-68-73=287 have?
CREATE TABLE table_name_75 (money___$__ VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT COUNT(points) FROM table_name_43 WHERE club = "btsc"
How many points for the skater from club btsc?
CREATE TABLE table_name_43 (points VARCHAR, club VARCHAR)
SELECT MIN(mintage) FROM table_name_93 WHERE artist = "dora de pédery-hunt" AND year < 2002
What is the fewest mintage from Dora de Pédery-Hunt, and the year was before 2002?
CREATE TABLE table_name_93 (mintage INTEGER, artist VARCHAR, year VARCHAR)
SELECT süskən FROM table_name_25 WHERE malax = "meşəbaş"
What is the Süskən village with a Malax village meşəbaş?
CREATE TABLE table_name_25 (süskən VARCHAR, malax VARCHAR)
SELECT MIN(lost) FROM table_name_71 WHERE played > 10 AND team = "ypiranga-sp" AND against > 50
What is the Lowest lost for Team Ypiranga-SP where the games Played is more than 10 and the goals Against is greater than 50?
CREATE TABLE table_name_71 (lost INTEGER, against VARCHAR, played VARCHAR, team VARCHAR)
SELECT title FROM table_name_76 WHERE director = "joyce bernal"
Which title was directed by Joyce Bernal?
CREATE TABLE table_name_76 (title VARCHAR, director VARCHAR)
SELECT home_team FROM table_name_5 WHERE away_team = "north melbourne"
Which team played against North Melbourne as the home team?
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
SELECT year FROM table_name_86 WHERE location = "dinas" AND date = "13 january"
Which Year has a Location of dinas on 13 january?
CREATE TABLE table_name_86 (year VARCHAR, location VARCHAR, date VARCHAR)
SELECT result FROM table_name_45 WHERE opponent = "manchester united" AND venue = "h"
What was the result when the opponent was manchester united in venue h?
CREATE TABLE table_name_45 (result VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT MIN(year) FROM table_1507806_1 WHERE runner_up = "Mike Brady"
WHAT YEAR DID MIKE BRADY GET RUNNER-UP?
CREATE TABLE table_1507806_1 (year INTEGER, runner_up VARCHAR)
SELECT rebuilt FROM table_name_40 WHERE name_as_rebuilt = "binevanagh"
Which Rebuilt has a Name as rebuilt of binevanagh?
CREATE TABLE table_name_40 (rebuilt VARCHAR, name_as_rebuilt VARCHAR)
SELECT january_15_16 FROM table_25216791_3 WHERE june_10_11 = "June 10, 1964"
What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964?
CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, june_10_11 VARCHAR)
SELECT original_airdate FROM table_19517621_4 WHERE title = "The Transit of Venus"
What was the original air date for the episode Calle, The Transit of Venus?
CREATE TABLE table_19517621_4 (original_airdate VARCHAR, title VARCHAR)
SELECT winning_boat FROM table_24673710_1 WHERE entries = 61
When 61 is the entries what is the winning boat?
CREATE TABLE table_24673710_1 (winning_boat VARCHAR, entries VARCHAR)
SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)
How many cars have a larger accelerate than the car with the largest horsepower?
CREATE TABLE CARS_DATA (Accelerate INTEGER, Horsepower VARCHAR)
SELECT MIN(attendance) FROM table_name_18 WHERE week = 5
What is the smallest attendance in week 5?
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR)
SELECT pick FROM table_name_40 WHERE round = "5" AND player = "kellen davis"
Which pick's round was 5 when Kellen Davis was a player?
CREATE TABLE table_name_40 (pick VARCHAR, round VARCHAR, player VARCHAR)
SELECT royal_house FROM table_name_84 WHERE name = "polyxenos epiphanes soter"
Which royal house corresponds to Polyxenos Epiphanes Soter?
CREATE TABLE table_name_84 (royal_house VARCHAR, name VARCHAR)
SELECT score FROM table_name_49 WHERE result = "won" AND date = "december 14, 2004"
What score has won as the result on the date of December 14, 2004?
CREATE TABLE table_name_49 (score VARCHAR, result VARCHAR, date VARCHAR)
SELECT Builder FROM railway ORDER BY Builder
List the builders of railways in ascending alphabetical order.
CREATE TABLE railway (Builder VARCHAR)
SELECT location_attendance FROM table_11959669_3 WHERE date = "November 24"
What was the attendance of the game November 24
CREATE TABLE table_11959669_3 (location_attendance VARCHAR, date VARCHAR)
SELECT MIN(2010) FROM table_name_76 WHERE 2012 < 0
What is the lowest number of participants in 2010 when there were 0 participants in 2012?
CREATE TABLE table_name_76 (Id VARCHAR)
SELECT master_recording FROM table_22457674_1 WHERE artist = "Europe"
Name the master recording for europe
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1
what is the least amount of cattle head
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER)
SELECT location FROM table_name_81 WHERE college_or_campus_name = "anna university - tharamani campus"
What Location has a College or Campus Name of anna university - tharamani campus?
CREATE TABLE table_name_81 (location VARCHAR, college_or_campus_name VARCHAR)
SELECT new_conference FROM table_14976504_2 WHERE team_nickname = "Toreros"
Which new conference is the Toreros Western Collegiate Lacrosse team playing in?
CREATE TABLE table_14976504_2 (new_conference VARCHAR, team_nickname VARCHAR)
SELECT away_team AS score FROM table_name_93 WHERE home_team = "hawthorn"
What is the away side score when hawthorn is the home side?
CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR)
SELECT result FROM table_name_42 WHERE week < 9 AND attendance = "25,188"
what is the result when the week is earlier than 9 and attendance is 25,188?
CREATE TABLE table_name_42 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 12"
Who was the home team when the vistor team was the Montreal Canadiens on February 12?
CREATE TABLE table_name_60 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT gender FROM TEACHERS WHERE last_name = "Medhurst"
What is the gender of the teacher with last name "Medhurst"?
CREATE TABLE TEACHERS (gender VARCHAR, last_name VARCHAR)
SELECT opposing_teams FROM table_name_76 WHERE status = "second test"
Who was the opposing team when the status is second test?
CREATE TABLE table_name_76 (opposing_teams VARCHAR, status VARCHAR)
SELECT round FROM table_name_17 WHERE venue = "a" AND result = "1-2" AND date = "7 december 2004"
What is the round of the match at venue A with a result of 1-2 on 7 December 2004?
CREATE TABLE table_name_17 (round VARCHAR, date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT date FROM table_name_1 WHERE score = "6–4"
On what date was the score 6–4?
CREATE TABLE table_name_1 (date VARCHAR, score VARCHAR)
SELECT MAX(background) FROM table_1855342_5 WHERE ability_to_compromise = 13
When the ability to compromise is 13, what is background?
CREATE TABLE table_1855342_5 (background INTEGER, ability_to_compromise VARCHAR)
SELECT 2011 FROM table_name_10 WHERE tournament = "australian open"
How many sets were in the 2011 Australian Open Tournament?
CREATE TABLE table_name_10 (tournament VARCHAR)
SELECT rider_names FROM table_27833186_1 WHERE location = "Euer Valley, CA" AND horse_name = "Magic Sirocco"
Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?
CREATE TABLE table_27833186_1 (rider_names VARCHAR, location VARCHAR, horse_name VARCHAR)
SELECT MAX(total) FROM table_28677723_16 WHERE couple = "Aylar & Egor" AND karianne_gulliksen = 8
What is the greatest total score received by aylar & egor when karianne Gulliksen gave an 8?
CREATE TABLE table_28677723_16 (total INTEGER, couple VARCHAR, karianne_gulliksen VARCHAR)
SELECT mixed_doubles FROM table_15001572_1 WHERE year = 1998
Who won the mixed doubles in 1998?
CREATE TABLE table_15001572_1 (mixed_doubles VARCHAR, year VARCHAR)
SELECT AVG(position) FROM table_name_81 WHERE wins < 14 AND draws < 3
What is the position when wins are fewer than 14 and draws are fewer than 3?
CREATE TABLE table_name_81 (position INTEGER, wins VARCHAR, draws VARCHAR)
SELECT surface FROM table_name_5 WHERE outcome = "runner-up" AND year = 2007
What was the surface played on when they were a runner-up in 2007?
CREATE TABLE table_name_5 (surface VARCHAR, outcome VARCHAR, year VARCHAR)
SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6
Name the lowest yards for 34 long and avg less than 12.6
CREATE TABLE table_name_3 (yards INTEGER, long VARCHAR, avg VARCHAR)
SELECT COUNT(fall_05) FROM table_name_31 WHERE fall_08 > 5 AND fall_06 > 7 AND states = "maryland" AND fall_09 > 471
What is the sum amount of fall 05 when fall 08 is more than 5, fall 06 is more than 7, the state is Maryland, and fall 09 is more than 471?
CREATE TABLE table_name_31 (fall_05 VARCHAR, fall_09 VARCHAR, states VARCHAR, fall_08 VARCHAR, fall_06 VARCHAR)
SELECT AVG(laps) FROM table_name_8 WHERE grid = 8
What is the mean number of laps when the grid was 8?
CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR)
SELECT nationality FROM table_name_86 WHERE round > 8
What nationality has a higher round than 8?
CREATE TABLE table_name_86 (nationality VARCHAR, round INTEGER)
SELECT top_mc FROM table_29160596_1 WHERE appearances = 5 AND year_inducted = 2007
List all the MCs with 5 appearances who were inducted in 2007?
CREATE TABLE table_29160596_1 (top_mc VARCHAR, appearances VARCHAR, year_inducted VARCHAR)
SELECT class FROM table_name_6 WHERE chassis = "dallara f308" AND rounds = "all" AND driver = "sam abay"
what is the class when the chassis is dallara f308, rounds is all and the driver is sam abay?
CREATE TABLE table_name_6 (class VARCHAR, driver VARCHAR, chassis VARCHAR, rounds VARCHAR)
SELECT country FROM table_24486462_1 WHERE compulsory_deduction = "29.3%"
What country has a compulsory deduction of 29.3%?
CREATE TABLE table_24486462_1 (country VARCHAR, compulsory_deduction VARCHAR)
SELECT to_par FROM table_name_5 WHERE score = 68 - 74 - 71 - 77 = 290
What's the to par for the score of 68-74-71-77=290?
CREATE TABLE table_name_5 (to_par VARCHAR, score VARCHAR)
SELECT COUNT(district) FROM table_1341586_19 WHERE incumbent = "Lindy Boggs"
how many district with incumbent being lindy boggs
CREATE TABLE table_1341586_19 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(enrollment) FROM table_name_34 WHERE founded = 1891 AND team_nickname = "coyotes"
What is the Enrollment for the Coyotes Founded in 1891?
CREATE TABLE table_name_34 (enrollment VARCHAR, founded VARCHAR, team_nickname VARCHAR)
SELECT steals FROM table_24913533_4 WHERE blocks = 3
What are the numbers of steals associated with players having exactly 3 blocks?
CREATE TABLE table_24913533_4 (steals VARCHAR, blocks VARCHAR)
SELECT flag FROM table_name_66 WHERE ship = "aidavita"
Which Flag did the Ship Aidavita have?
CREATE TABLE table_name_66 (flag VARCHAR, ship VARCHAR)
SELECT nationality FROM table_name_3 WHERE lane < 2
What nationality is the swimmer that is in the lane that is less than 2?
CREATE TABLE table_name_3 (nationality VARCHAR, lane INTEGER)
SELECT 1999 AS _2000_team FROM table_name_93 WHERE height__cm_ < 187 AND birthplace = "cloquet, minnesota"
What is the 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, Minnesota?
CREATE TABLE table_name_93 (height__cm_ VARCHAR, birthplace VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_52 WHERE position = "(c)" AND round > 2
what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?
CREATE TABLE table_name_52 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
SELECT COUNT(coverage) FROM table_27914076_1 WHERE branding = "106.7 Energy FM"
Name the number of coverage for 106.7 energy fm
CREATE TABLE table_27914076_1 (coverage VARCHAR, branding VARCHAR)
SELECT MAX(bronze) FROM table_name_35 WHERE rank > 6 AND nation = "great britain (gbr)" AND silver > 1
What's the most bronze medals for Great Britain (GBR) with more than 1 silver and ranked more than 6?
CREATE TABLE table_name_35 (bronze INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT COUNT(DISTINCT department_id) FROM Degree_Programs
How many departments offer any degree?
CREATE TABLE Degree_Programs (department_id VARCHAR)
SELECT mascot FROM table_name_25 WHERE location = "brook"
What is the Mascot of Brook?
CREATE TABLE table_name_25 (mascot VARCHAR, location VARCHAR)
SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id
What are all the course names of the courses which ever have students enrolled in?
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)
SELECT week_1_sept_7 FROM table_name_15 WHERE preseason = "colorado state"
What is the Week 1 result of Colorado State?
CREATE TABLE table_name_15 (week_1_sept_7 VARCHAR, preseason VARCHAR)
SELECT nhl_team FROM table_1965650_8 WHERE player = "Denis Desgagnes"
What NHL team does Denis Desgagnes play for?
CREATE TABLE table_1965650_8 (nhl_team VARCHAR, player VARCHAR)
SELECT COUNT(population_density_2010___km²_) FROM table_14986292_1 WHERE administrative_division = "Duque de Caxias"
Name the number of population density 2010 for duque de caxias
CREATE TABLE table_14986292_1 (population_density_2010___km²_ VARCHAR, administrative_division VARCHAR)
SELECT record FROM table_name_76 WHERE home = "bucks" AND date = "24 november 2007"
Name the record with home of bucks on 24 november 2007
CREATE TABLE table_name_76 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT MIN(tally) FROM table_name_9 WHERE venue = "vasil levski national stadium, sofia, bulgaria"
What is the fewest tally for the game played at Vasil Levski National Stadium, Sofia, Bulgaria?
CREATE TABLE table_name_9 (tally INTEGER, venue VARCHAR)
SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality
What are different nationalities of people and the corresponding number of people from each nation?
CREATE TABLE people (Nationality VARCHAR)
SELECT MIN(storage_stability) FROM table_name_30 WHERE toxicity_as_blood_agent > 8 AND agent = "arsine" AND field_stability < 5
What is the storage stability of Arsine with a toxicity of 8, and field stability less than 5?
CREATE TABLE table_name_30 (storage_stability INTEGER, field_stability VARCHAR, toxicity_as_blood_agent VARCHAR, agent VARCHAR)
SELECT COUNT(place) FROM table_name_99 WHERE name = "henry s. uber / betty uber (eng)"
What play did henry s. uber / betty uber (eng) finish in?
CREATE TABLE table_name_99 (place VARCHAR, name VARCHAR)
SELECT COUNT(top_10s) FROM table_18198579_6 WHERE scoring_rank = "9"
Name the number of top 10s for scoring rank of 9
CREATE TABLE table_18198579_6 (top_10s VARCHAR, scoring_rank VARCHAR)
SELECT proposed FROM table_name_65 WHERE listed = "12/16/1994" AND county = "beaufort"
What date was proposed when the listed date was 12/16/1994 in the County of beaufort?
CREATE TABLE table_name_65 (proposed VARCHAR, listed VARCHAR, county VARCHAR)
SELECT result FROM table_name_51 WHERE venue = "jarama" AND driver = "emerson fittipaldi"
What was the outcome for Emerson Fittipaldi in the race held at Jarama?
CREATE TABLE table_name_51 (result VARCHAR, venue VARCHAR, driver VARCHAR)
SELECT original_air_date FROM table_18367694_2 WHERE production_code = 1115
What is the original air date of the episode with the production code 1115?
CREATE TABLE table_18367694_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT SUM(round) FROM table_name_64 WHERE team = "team impul" AND date = "8 july"
What is the sum of team impul with the date of 8 july
CREATE TABLE table_name_64 (round INTEGER, team VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_17060277_7 WHERE team = "Memphis"
Name the high rebounds for memphis
CREATE TABLE table_17060277_7 (high_rebounds VARCHAR, team VARCHAR)
SELECT nationality FROM table_name_14 WHERE player = "jeff hornacek"
What Nationality is Jeff Hornacek?
CREATE TABLE table_name_14 (nationality VARCHAR, player VARCHAR)
SELECT MAX(number_of_bearers_2008) FROM table_name_87 WHERE surname = "jacobsen"
What is Highest Number of Bearers 2008, when Surname is Jacobsen?
CREATE TABLE table_name_87 (number_of_bearers_2008 INTEGER, surname VARCHAR)
SELECT set_4 FROM table_name_37 WHERE set_1 = "25-18" AND date = "jun 2"
What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?
CREATE TABLE table_name_37 (set_4 VARCHAR, set_1 VARCHAR, date VARCHAR)
SELECT nationality___opponent FROM table_name_25 WHERE date = "10 january 1998"
Name Nationality / Opponent on 10 january 1998?
CREATE TABLE table_name_25 (nationality___opponent VARCHAR, date VARCHAR)
SELECT home_team FROM table_24949975_1 WHERE season = "2013" AND result = "0–0"
Who was the home team for the 2013 season and the result was 0–0?
CREATE TABLE table_24949975_1 (home_team VARCHAR, season VARCHAR, result VARCHAR)
SELECT MIN(bronze) FROM table_name_30 WHERE rank = "17" AND total < 5
What is the lowest Bronze with a 17 Rank and a Total less than 5
CREATE TABLE table_name_30 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT type FROM table_name_44 WHERE course = "marostica to bibione"
tell me the type that has the marostica to bibione course.
CREATE TABLE table_name_44 (type VARCHAR, course VARCHAR)
SELECT COUNT(seasons) FROM table_name_98 WHERE name = "joe grugin" AND lost > 8
Which Seasons has a Name of joe grugin, and a Lost larger than 8?
CREATE TABLE table_name_98 (seasons VARCHAR, name VARCHAR, lost VARCHAR)
SELECT time FROM table_name_12 WHERE round = 3 AND record = "2–0"
Which Time has a Round of 3, and a Record of 2–0?
CREATE TABLE table_name_12 (time VARCHAR, round VARCHAR, record VARCHAR)
SELECT week_2 FROM table_name_65 WHERE week_3 = "sara stokes"
Who is week 2 if week 3 is Sara Stokes?
CREATE TABLE table_name_65 (week_2 VARCHAR, week_3 VARCHAR)
SELECT nominative FROM table_name_91 WHERE dative = "mis"
What nominative has mis as the dative?
CREATE TABLE table_name_91 (nominative VARCHAR, dative VARCHAR)
SELECT 2009 FROM table_name_45 WHERE 2011 = "39th"
What 2009 has 39th as the 2011?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT opponent FROM table_name_94 WHERE score = "6–4, 6–2" AND surface = "clay"
Who is the opponent when the score was 6–4, 6–2 and the surface was clay?
CREATE TABLE table_name_94 (opponent VARCHAR, score VARCHAR, surface VARCHAR)
SELECT tournament FROM table_name_96 WHERE winner = "patrick rafter"
Which tournament did Patrick Rafter win?
CREATE TABLE table_name_96 (tournament VARCHAR, winner VARCHAR)
SELECT name, LOCATION FROM track
Show the name and location for all tracks.
CREATE TABLE track (name VARCHAR, LOCATION VARCHAR)
SELECT label FROM table_name_57 WHERE date = "1987"
What is Label, when Date is 1987?
CREATE TABLE table_name_57 (label VARCHAR, date VARCHAR)
SELECT nation FROM table_name_67 WHERE silver = 11
What nation finished with 11 silver medals?
CREATE TABLE table_name_67 (nation VARCHAR, silver VARCHAR)
SELECT season FROM table_name_46 WHERE nationality = "united states" AND position = "center"
What season did a United States center play in?
CREATE TABLE table_name_46 (season VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT institution, LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'
Show the names and locations of institutions that are founded after 1990 and have the type "Private".
CREATE TABLE institution (institution VARCHAR, LOCATION VARCHAR, founded VARCHAR, TYPE VARCHAR)
SELECT pick__number FROM table_name_13 WHERE nhl_team = "st. louis blues"
What Pick # does the St. Louis Blues have?
CREATE TABLE table_name_13 (pick__number VARCHAR, nhl_team VARCHAR)