answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(number_of_contestants) FROM table_22951646_1
Name the most number of contestants
CREATE TABLE table_22951646_1 (number_of_contestants INTEGER)
SELECT skipper FROM table_25561560_2 WHERE sail_number = "AUS60000"
what skipper has the sail number aus60000?
CREATE TABLE table_25561560_2 (skipper VARCHAR, sail_number VARCHAR)
SELECT document_name, document_date FROM Documents AS T1 JOIN projects AS T2 ON T1.project_id = T2.project_id WHERE T2.project_details = 'Graph Database project'
Show the document name and the document date for all documents on project with details 'Graph Database project'.
CREATE TABLE Documents (project_id VARCHAR); CREATE TABLE projects (project_id VARCHAR, project_details VARCHAR)
SELECT MIN(overall) FROM table_name_46 WHERE college = "san diego state" AND pick__number < 30
College of san diego state, and a Pick # smaller than 30 has what lowest overall?
CREATE TABLE table_name_46 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
SELECT AVG(laps) FROM table_name_71 WHERE driver = "john watson" AND grid < 11
How many Laps with a Grid smaller than 11 did John Watson have?
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT steals FROM table_25342713_5 WHERE rebounds = 87
If the rebounds are at 87, what are the amount of steals?
CREATE TABLE table_25342713_5 (steals VARCHAR, rebounds VARCHAR)
SELECT COUNT(*) FROM Student WHERE Advisor = 1121
Advisor 1121 has how many students?
CREATE TABLE Student (Advisor VARCHAR)
SELECT COUNT(draw) FROM table_name_92 WHERE rank = "3rd" AND performer = "noelle" AND points > 79
How much Draw has a Rank of 3rd, and a Performer of noelle, and Points larger than 79?
CREATE TABLE table_name_92 (draw VARCHAR, points VARCHAR, rank VARCHAR, performer VARCHAR)
SELECT origin FROM table_29202276_2 WHERE destination = "Mumbai"
What is the origin when the destination is Mumbai?
CREATE TABLE table_29202276_2 (origin VARCHAR, destination VARCHAR)
SELECT nba_draft FROM table_name_38 WHERE college = "lsu"
What is the NBA Draft status of the person who went to college at LSU?
CREATE TABLE table_name_38 (nba_draft VARCHAR, college VARCHAR)
SELECT visiting_team FROM table_name_12 WHERE final_score = "14-34"
Which visiting team had a final score of 14-34?
CREATE TABLE table_name_12 (visiting_team VARCHAR, final_score VARCHAR)
SELECT rID FROM Reviewer WHERE name = "Daniel Lewis"
What is the reviewer id of Daniel Lewis?
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR)
SELECT type FROM table_name_70 WHERE entered_service = "2000"
What type entered service in 2000?
CREATE TABLE table_name_70 (type VARCHAR, entered_service VARCHAR)
SELECT MAX(total) FROM table_name_53 WHERE rank = "12" AND gold < 0
What is the highest Total for the rank 12, and gold less than 0?
CREATE TABLE table_name_53 (total INTEGER, rank VARCHAR, gold 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 COUNT(drawn) FROM table_name_9 WHERE played > 12
What is the sum of drawn that has a played more than 12?
CREATE TABLE table_name_9 (drawn VARCHAR, played INTEGER)
SELECT grid FROM table_name_11 WHERE driver = "pierre levegh"
what is the grid when the driver is pierre levegh?
CREATE TABLE table_name_11 (grid VARCHAR, driver VARCHAR)
SELECT SUM(_percentage__1960_) FROM table_name_48 WHERE _percentage__2040_ < 100 AND _percentage__2000_ < 4.7 AND county = "troms"
What is the % (1960) of Troms, which has a % (2040) smaller than 100 and a % (2000) smaller than 4.7?
CREATE TABLE table_name_48 (_percentage__1960_ INTEGER, county VARCHAR, _percentage__2040_ VARCHAR, _percentage__2000_ VARCHAR)
SELECT date FROM table_name_28 WHERE competition = "f" AND opponents = "fc astoria walldorf"
What is Date, when Competition is "F", and when Opponents is "FC Astoria Walldorf"?
CREATE TABLE table_name_28 (date VARCHAR, competition VARCHAR, opponents VARCHAR)
SELECT COUNT(location) FROM table_28794440_1 WHERE callsign = "DXGH"
How many locations have the callsign DXGH?
CREATE TABLE table_28794440_1 (location VARCHAR, callsign VARCHAR)
SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "233.4 (16)"
What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)?
CREATE TABLE table_14948647_1 (bhofen_number2__rk_ VARCHAR, ga_pa__rk_ VARCHAR)
SELECT mountain_range FROM table_name_90 WHERE region = "british columbia" AND mountain_peak = "mount edziza"
what is the mountain range when the region is british columbia and mountain pea is mount edziza?
CREATE TABLE table_name_90 (mountain_range VARCHAR, region VARCHAR, mountain_peak VARCHAR)
SELECT english FROM table_name_3 WHERE "german" = "german"
What English word has the same meaning as the German word "german"?
CREATE TABLE table_name_3 (english VARCHAR)
SELECT home_team FROM table_name_57 WHERE venue = "corio oval"
What is the Home team at corio oval?
CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(lost) FROM table_name_61 WHERE highest_ranking = "– –"
What is the total number of Lost for the Highest Ranking of – –?
CREATE TABLE table_name_61 (lost VARCHAR, highest_ranking VARCHAR)
SELECT title FROM table_10701133_1 WHERE original_air_date = "May15,2008"
What is the title when original air date is may15,2008?
CREATE TABLE table_10701133_1 (title VARCHAR, original_air_date VARCHAR)
SELECT comptroller FROM table_22607062_1 WHERE ticket___office = "Republican"
Name the comptroller for republican
CREATE TABLE table_22607062_1 (comptroller VARCHAR, ticket___office VARCHAR)
SELECT location FROM table_name_24 WHERE enzyme = "uroporphyrinogen iii synthase"
What is the location of the enzyme Uroporphyrinogen iii Synthase?
CREATE TABLE table_name_24 (location VARCHAR, enzyme VARCHAR)
SELECT position FROM table_name_17 WHERE round < 8 AND pick = 20 AND overall < 186
Which Position has a Round smaller than 8, a Pick of 20, and an Overall smaller than 186?
CREATE TABLE table_name_17 (position VARCHAR, overall VARCHAR, round VARCHAR, pick VARCHAR)
SELECT loss FROM table_name_28 WHERE opponent = "@ expos" AND save = "parrett (2)"
What is the loss for the game against @ expos, with a save of parrett (2)?
CREATE TABLE table_name_28 (loss VARCHAR, opponent VARCHAR, save VARCHAR)
SELECT volume_lbs FROM table_name_53 WHERE set_4 = "115lb x 8reps"
How many lbs does a set 4 of 115lb x 8reps have?
CREATE TABLE table_name_53 (volume_lbs VARCHAR, set_4 VARCHAR)
SELECT winning_mentor FROM table_16331144_1 WHERE season = "Two"
Who was the winning mentor in season two?
CREATE TABLE table_16331144_1 (winning_mentor VARCHAR, season VARCHAR)
SELECT COUNT(party) AS a FROM table_22756549_1 WHERE winner = "M. Gounder"
How many times did M. Gounder win for Party A?
CREATE TABLE table_22756549_1 (party VARCHAR, winner VARCHAR)
SELECT decision FROM table_name_84 WHERE record = "13–10–4"
what is the decision when the record is 13–10–4?
CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR)
SELECT points FROM table_name_85 WHERE played < 76 AND average = 0.763
How many points were there when the average was 0.763 and the played was less than 76?
CREATE TABLE table_name_85 (points VARCHAR, played VARCHAR, average VARCHAR)
SELECT MAX(seasons) FROM table_2522473_1
What is the maximum number of seasons for any team?
CREATE TABLE table_2522473_1 (seasons INTEGER)
SELECT series_no FROM table_19236587_4 WHERE uk_viewers__million_ = "2.43"
What's the series number of the episode seen by 2.43 million viewers in the UK?
CREATE TABLE table_19236587_4 (series_no VARCHAR, uk_viewers__million_ VARCHAR)
SELECT engine FROM table_name_7 WHERE year < 1959 AND points > 4
what is the engine for year less than 1959 and points more than 4?
CREATE TABLE table_name_7 (engine VARCHAR, year VARCHAR, points VARCHAR)
SELECT away_team FROM table_name_20 WHERE venue = "junction oval"
What team was the away team at Junction Oval?
CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(byes) FROM table_name_55 WHERE draws > 0
How many byes has a draw larger than 0?
CREATE TABLE table_name_55 (byes VARCHAR, draws INTEGER)
SELECT COUNT(voivodeship) FROM table_11656578_2 WHERE population__1980_ = "747 900"
How many different voivodenship have 747 900 citizes?
CREATE TABLE table_11656578_2 (voivodeship VARCHAR, population__1980_ VARCHAR)
SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name
display the department name and number of employees in each of the department.
CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR)
SELECT crowd FROM table_name_41 WHERE date = "4 july 1981" AND away_team = "essendon"
What was the crowd size on 4 july 1981, and a Away team of essendon?
CREATE TABLE table_name_41 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT competition FROM table_name_59 WHERE round = "group a - match 1"
What is Competition, when Round is "Group A - Match 1"?
CREATE TABLE table_name_59 (competition VARCHAR, round VARCHAR)
SELECT pre__season FROM table_name_21 WHERE may_5 = "21"
Which pre-season has May 5 of 21?
CREATE TABLE table_name_21 (pre__season VARCHAR, may_5 VARCHAR)
SELECT remarks FROM table_name_83 WHERE destination_number < 19 AND rank < 5
What were the remarks for a destination under 19 and rank less than 5?
CREATE TABLE table_name_83 (remarks VARCHAR, destination_number VARCHAR, rank VARCHAR)
SELECT chroma_format FROM table_1376890_2 WHERE name = "High profile"
what's the chroma format with name being high profile
CREATE TABLE table_1376890_2 (chroma_format VARCHAR, name VARCHAR)
SELECT COUNT(gold) FROM table_name_2 WHERE bronze > 0 AND rank = "total" AND "total" > 100
Tell me the total number of gold for bronze more than 0 and total more than 100
CREATE TABLE table_name_2 (gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT date FROM table_name_96 WHERE film = "monsters"
When did the film 'Monsters' come out?
CREATE TABLE table_name_96 (date VARCHAR, film VARCHAR)
SELECT tournament FROM table_name_15 WHERE runner_up = "thomas enqvist"
What tournament was Thomas Enqvist runner up?
CREATE TABLE table_name_15 (tournament VARCHAR, runner_up VARCHAR)
SELECT 2010 FROM table_name_1 WHERE 2013 = "grand slam tournaments"
What is the 2010 value of the 2013 Grand Slam Tournaments?
CREATE TABLE table_name_1 (Id VARCHAR)
SELECT MAX(grid) FROM table_name_56 WHERE constructor = "osella - alfa romeo" AND laps > 61
What is the high grid for osella - alfa romeo, and a Laps larger than 61?
CREATE TABLE table_name_56 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
SELECT MAX(population__glengallan_) FROM table_12584173_1
What is the maximum population size in the town of Glengallen?
CREATE TABLE table_12584173_1 (population__glengallan_ INTEGER)
SELECT category FROM table_name_72 WHERE cancelable = "yes" AND type = "drag"
When Cancelable of yes, and a Type of drag, what was the Category?
CREATE TABLE table_name_72 (category VARCHAR, cancelable VARCHAR, type VARCHAR)
SELECT afc_cup FROM table_name_43 WHERE name = "kenji arai"
Which AFC cup does Kenji Arai have?
CREATE TABLE table_name_43 (afc_cup VARCHAR, name VARCHAR)
SELECT home FROM table_name_8 WHERE date = "april 14"
Who was at home on april 14?
CREATE TABLE table_name_8 (home VARCHAR, date VARCHAR)
SELECT COUNT(height__cm_) FROM table_name_65 WHERE birthdate = "september 2, 1973"
What is the total height of the player with a birthdate on September 2, 1973?
CREATE TABLE table_name_65 (height__cm_ VARCHAR, birthdate VARCHAR)
SELECT votes___percentage_ FROM table_name_41 WHERE first_broadcast = "13 march 1998"
What is Votes (%), when First Broadcast is "13 March 1998"?
CREATE TABLE table_name_41 (votes___percentage_ VARCHAR, first_broadcast VARCHAR)
SELECT COUNT(milepost) FROM table_name_74 WHERE name_of_the_tunnel = "twin tunnel #1 north"
What is the Milepost of the Twin Tunnel #1 North?
CREATE TABLE table_name_74 (milepost VARCHAR, name_of_the_tunnel VARCHAR)
SELECT away_team FROM table_name_4 WHERE score = "1 – 0" AND attendance = "1,791"
What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791?
CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT player FROM table_name_39 WHERE to_par = "+1"
What Player had a To par of +1?
CREATE TABLE table_name_39 (player VARCHAR, to_par VARCHAR)
SELECT T1.name, COUNT(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id
For each building, show the name of the building and the number of institutions in it.
CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE institution (building_id VARCHAR)
SELECT years FROM table_29743928_4 WHERE name = "Chase Harrison Category:Articles with hCards"
When chase harrison category:articles with hcards is the name what is the year?
CREATE TABLE table_29743928_4 (years VARCHAR, name VARCHAR)
SELECT score FROM table_name_90 WHERE date = "november 10"
What is the score of the competition on November 10?
CREATE TABLE table_name_90 (score VARCHAR, date VARCHAR)
SELECT AVG(bronze) FROM table_name_67 WHERE nation = "poland"
What is the average number of bronze medals won by Poland?
CREATE TABLE table_name_67 (bronze INTEGER, nation VARCHAR)
SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5
What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?
CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT player FROM table_name_57 WHERE position = "cornerback"
What player is a cornerback?
CREATE TABLE table_name_57 (player VARCHAR, position VARCHAR)
SELECT MAX(pick) FROM table_name_31 WHERE player = "adam jones"
What was the highest pick for the player Adam Jones?
CREATE TABLE table_name_31 (pick INTEGER, player VARCHAR)
SELECT outcome FROM table_name_13 WHERE partner = "iryna bremond"
What was the outcome when the partner was Iryna Bremond?
CREATE TABLE table_name_13 (outcome VARCHAR, partner VARCHAR)
SELECT shot__percentage FROM table_1644876_2 WHERE locale = Switzerland
What are the shot percentages for teams that played in switzerland?
CREATE TABLE table_1644876_2 (shot__percentage VARCHAR, locale VARCHAR, Switzerland VARCHAR)
SELECT lost FROM table_name_33 WHERE drawn = "0" AND tries_against = "41"
What is the value for Lost when Drawn is 0, and Tries against is 41?
CREATE TABLE table_name_33 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)
SELECT MAX(enrollment) FROM table_name_93 WHERE location = "onalaska"
What is the Enrollment at Onalaska?
CREATE TABLE table_name_93 (enrollment INTEGER, location VARCHAR)
SELECT nationality FROM table_name_37 WHERE games = "505"
What is the nationality of the player who played 505 games?
CREATE TABLE table_name_37 (nationality VARCHAR, games VARCHAR)
SELECT ihsaa_class FROM table_name_96 WHERE location = "brazil"
Which IHSAA Class has a Location of brazil?
CREATE TABLE table_name_96 (ihsaa_class VARCHAR, location VARCHAR)
SELECT gold FROM table_name_44 WHERE silver = 3 AND total = 10
How many gold medals did the team that won a total of 10 medals and 3 silver medals win?
CREATE TABLE table_name_44 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT d_46 FROM table_name_35 WHERE d_44 = "r 17"
I want the D 46 which has a D 44 of r 17
CREATE TABLE table_name_35 (d_46 VARCHAR, d_44 VARCHAR)
SELECT series_sorted FROM table_name_91 WHERE released = "december 2009"
What is the series sorted value for the episode released December 2009?
CREATE TABLE table_name_91 (series_sorted VARCHAR, released VARCHAR)
SELECT distance FROM table_name_5 WHERE stage = "2"
Name the distance for stage of 2
CREATE TABLE table_name_5 (distance VARCHAR, stage VARCHAR)
SELECT constructor FROM table_name_89 WHERE tyre = "c" AND pole_position = "eugenio castellotti"
Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?
CREATE TABLE table_name_89 (constructor VARCHAR, tyre VARCHAR, pole_position VARCHAR)
SELECT pick__number FROM table_16575609_3 WHERE college = "Western Illinois"
What pick # did Western Illinois have?
CREATE TABLE table_16575609_3 (pick__number VARCHAR, college VARCHAR)
SELECT COUNT(total) FROM table_name_57 WHERE silver < 2 AND bronze > 0 AND gold > 1
What is the number of totals that have silvers under 2, bronzes over 0, and golds over 1?
CREATE TABLE table_name_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT no FROM table_2866509_1 WHERE us_viewers__million_ = "5.60"
what is the number of the episode in the season that had 5.60 millions of north american spectors?
CREATE TABLE table_2866509_1 (no VARCHAR, us_viewers__million_ VARCHAR)
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 school_club_team FROM table_name_27 WHERE player = "dominique wilkins"
What School/Club did Dominique Wilkins play for?
CREATE TABLE table_name_27 (school_club_team VARCHAR, player VARCHAR)
SELECT score_in_the_final FROM table_name_60 WHERE surface = "hard" AND opponent_in_the_final = "hiromi nagano"
What is the score in the final with a hard surface and is against Hiromi Nagano?
CREATE TABLE table_name_60 (score_in_the_final VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT position FROM table_12165135_1 WHERE overall_pick__number = 17
What is the position for the pick number 17?
CREATE TABLE table_12165135_1 (position VARCHAR, overall_pick__number VARCHAR)
SELECT catalog FROM table_name_21 WHERE date = "august 20, 1965"
What Catalog came out on August 20, 1965?
CREATE TABLE table_name_21 (catalog VARCHAR, date VARCHAR)
SELECT COUNT(population_density__per_km²_) FROM table_189598_7 WHERE name = "Buffalo Narrows"
When buffalo narrows is the name how many measurements of population density per kilometer squared are there?
CREATE TABLE table_189598_7 (population_density__per_km²_ VARCHAR, name VARCHAR)
SELECT time_retired FROM table_name_84 WHERE grid > 3 AND driver = "eddie irvine"
What is the time/retired for eddie irvine with a grid of greater than 3?
CREATE TABLE table_name_84 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT directed_by FROM table_name_10 WHERE original_airdate = "february 25, 2001"
Who directed the episode that originally aired on February 25, 2001?
CREATE TABLE table_name_10 (directed_by VARCHAR, original_airdate VARCHAR)
SELECT beatified FROM table_name_17 WHERE canonised < 1988
When was the person(s) who were canonised before 1988 beatified?
CREATE TABLE table_name_17 (beatified VARCHAR, canonised INTEGER)
SELECT college_country_team FROM table_name_46 WHERE former_wnba_team = "cleveland rockers"
What was the college team of the player whose former WNBA team was the Cleveland Rockers?
CREATE TABLE table_name_46 (college_country_team VARCHAR, former_wnba_team VARCHAR)
SELECT studio_host FROM table_name_91 WHERE play_by_play = "glenn ordway" AND color_commentator_s_ = "jerry sichting" AND year = "1993-94"
Name the studio host for glenn ordway and jerry sichting with year of 1993-94
CREATE TABLE table_name_91 (studio_host VARCHAR, year VARCHAR, play_by_play VARCHAR, color_commentator_s_ VARCHAR)
SELECT player FROM table_20170644_5 WHERE cfl_team = "Hamilton Tiger-Cats"
What player(s) drafted by the hamilton tiger-cats?
CREATE TABLE table_20170644_5 (player VARCHAR, cfl_team VARCHAR)
SELECT team FROM table_17001658_6 WHERE game = 21
Against which team was game 21?
CREATE TABLE table_17001658_6 (team VARCHAR, game VARCHAR)
SELECT magnitude FROM table_24192190_1 WHERE latitude = "43.048° N"
When 43.048° n is the latitude what is the magnitude?
CREATE TABLE table_24192190_1 (magnitude VARCHAR, latitude VARCHAR)
SELECT week_11_nov_6 FROM table_name_99 WHERE week_10_oct_30 = "nebraska (7-1)"
What was Week 11 when Week 10 had Nebraska (7-1)?
CREATE TABLE table_name_99 (week_11_nov_6 VARCHAR, week_10_oct_30 VARCHAR)
SELECT DISTINCT Location_Name FROM LOCATIONS
Show all distinct location names.
CREATE TABLE LOCATIONS (Location_Name VARCHAR)
SELECT COUNT(enrolment) FROM table_11318462_29 WHERE in_competition_since = 1990 AND abbreviation = "STM"
What is the enrollment of STM which has been in competition since 1990?
CREATE TABLE table_11318462_29 (enrolment VARCHAR, in_competition_since VARCHAR, abbreviation VARCHAR)
SELECT label FROM table_name_86 WHERE region = "united kingdom" AND catalog = "chem036"
What label is associated with the United Kingdom and the chem036 catalog?
CREATE TABLE table_name_86 (label VARCHAR, region VARCHAR, catalog VARCHAR)