question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the smallest crowd for a Carlton away game?
CREATE TABLE table_name_14 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_14 WHERE away_team = "carlton"
Which rank is Hawthorn?
CREATE TABLE table_name_32 (rank VARCHAR, club_clubs VARCHAR)
SELECT rank FROM table_name_32 WHERE club_clubs = "hawthorn"
What is Park Tae-Hwan's final time?
CREATE TABLE table_name_3 (time VARCHAR, name VARCHAR)
SELECT time FROM table_name_3 WHERE name = "park tae-hwan"
What current conference is Post University a member of?
CREATE TABLE table_12936521_2 (current_conference VARCHAR, institution VARCHAR)
SELECT current_conference FROM table_12936521_2 WHERE institution = "Post University"
Which 2009's 2010 featured the wta premier 5 tournaments?
CREATE TABLE table_name_72 (Id VARCHAR)
SELECT 2009 FROM table_name_72 WHERE 2010 = "wta premier 5 tournaments"
What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?
CREATE TABLE table_23014923_1 (minor__south__winners VARCHAR, primary__south__winners VARCHAR)
SELECT COUNT(minor__south__winners) FROM table_23014923_1 WHERE primary__south__winners = "Mendip Gate"
What is the Absorbtion (in nanometers) of the color Orange?
CREATE TABLE table_name_40 (absorb__nm_ VARCHAR, color VARCHAR)
SELECT absorb__nm_ FROM table_name_40 WHERE color = "orange"
What is the score when high points were Andre Miller (31)?
CREATE TABLE table_23286158_11 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_23286158_11 WHERE high_points = "Andre Miller (31)"
WHAT IS THE LOSING BONUS WITH 190 POINTS?
CREATE TABLE table_name_31 (losing_bonus VARCHAR, points_for VARCHAR)
SELECT losing_bonus FROM table_name_31 WHERE points_for = "190"
When was the first cap associated with 74 caps?
CREATE TABLE table_name_27 (first_cap VARCHAR, caps VARCHAR)
SELECT first_cap FROM table_name_27 WHERE caps = 74
What is the abbr of argovia?
CREATE TABLE table_name_65 (abbr VARCHAR, italian VARCHAR)
SELECT abbr FROM table_name_65 WHERE italian = "argovia"
What Elector was Elevated on December 18, 1182?
CREATE TABLE table_name_31 (elector VARCHAR, elevated VARCHAR)
SELECT elector FROM table_name_31 WHERE elevated = "december 18, 1182"
What is the score for the away team at Essendon?
CREATE TABLE table_name_19 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_19 WHERE away_team = "essendon"
When did camilla dallerup finish?
CREATE TABLE table_name_84 (finished VARCHAR, celebrity VARCHAR)
SELECT finished FROM table_name_84 WHERE celebrity = "camilla dallerup"
How many positions have f/laps of 1 and british formula three series?
CREATE TABLE table_22056184_1 (position VARCHAR, f_laps VARCHAR, series VARCHAR)
SELECT COUNT(position) FROM table_22056184_1 WHERE f_laps = 1 AND series = "British Formula Three"
Name the dominant religion for станишић
CREATE TABLE table_2562572_22 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_22 WHERE cyrillic_name_other_names = "Станишић"
What is the team #1 that has unics kazan for team #2?
CREATE TABLE table_name_97 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT team__number1 FROM table_name_97 WHERE team__number2 = "unics kazan"
What is the air force cross when you recieve the Aerial achievement medal?
CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR)
SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achievement Medal"
What are all the fault descriptions and the fault status of all the faults recoreded in the logs?
CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)
SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id
in what date was aired the first broacast of the episode 1x02
CREATE TABLE table_17413485_1 (first_broadcast VARCHAR, episode VARCHAR)
SELECT first_broadcast FROM table_17413485_1 WHERE episode = "1x02"
Who was the runner-up in the RR Donnelley LPGA Founders Cup?
CREATE TABLE table_name_52 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT runner_s__up FROM table_name_52 WHERE tournament = "rr donnelley lpga founders cup"
What was the Margin of Victory of winning score 68-67-69-65=269?
CREATE TABLE table_name_65 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_65 WHERE winning_score = 68 - 67 - 69 - 65 = 269
What's the 69kg of Round 16?
CREATE TABLE table_name_16 (round_of_16 VARCHAR, event VARCHAR)
SELECT round_of_16 FROM table_name_16 WHERE event = "69kg"
How many Picks have a College of hawaii, and an Overall smaller than 122?
CREATE TABLE table_name_51 (pick VARCHAR, college VARCHAR, overall VARCHAR)
SELECT COUNT(pick) FROM table_name_51 WHERE college = "hawaii" AND overall < 122
Report the distinct president vote and the vice president vote.
CREATE TABLE VOTING_RECORD (President_Vote VARCHAR, VICE_President_Vote VARCHAR)
SELECT DISTINCT President_Vote, VICE_President_Vote FROM VOTING_RECORD
What is the Result with a Date with 22 january 2008?
CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_43 WHERE date = "22 january 2008"
What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?
CREATE TABLE table_name_37 (administrative_panel INTEGER, cultural_and_educational_panel VARCHAR, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR)
SELECT MAX(administrative_panel) FROM table_name_37 WHERE nominated_by_the_taoiseach > 3 AND agricultural_panel = 5 AND cultural_and_educational_panel > 2
Tell me the tournament with a hard surface for 6–1, 6–2
CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_99 WHERE surface = "hard" AND score = "6–1, 6–2"
What Avoirdupois value has a Russian of берковец?
CREATE TABLE table_name_37 (avoirdupois_value VARCHAR, russian VARCHAR)
SELECT avoirdupois_value FROM table_name_37 WHERE russian = "берковец"
On what Surface will the Venezuela F5 Futures in Caracas be played?
CREATE TABLE table_name_30 (surface VARCHAR, city VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_30 WHERE city = "caracas" AND tournament = "venezuela f5 futures"
What was the time in part 3 when Heikki Kovalainen was the driver?
CREATE TABLE table_20159025_1 (part_3 VARCHAR, driver VARCHAR)
SELECT part_3 FROM table_20159025_1 WHERE driver = "Heikki Kovalainen"
What was the date of game 21?
CREATE TABLE table_17288869_6 (date VARCHAR, game VARCHAR)
SELECT date FROM table_17288869_6 WHERE game = 21
Who has a Record of 5-2?
CREATE TABLE table_name_2 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_2 WHERE record = "5-2"
What are the account details with the largest value or with value having char '5' in it?
CREATE TABLE Accounts (Account_details INTEGER)
SELECT MAX(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%5%"
Name the total number of rounds for gina carano
CREATE TABLE table_name_6 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_6 WHERE opponent = "gina carano"
What is the average 1st place with a Rank that is larger than 10?
CREATE TABLE table_name_26 (rank INTEGER)
SELECT AVG(1 AS st_place) FROM table_name_26 WHERE rank > 10
Name the number of points for october 11
CREATE TABLE table_15607589_2 (points_for INTEGER, date VARCHAR)
SELECT MAX(points_for) FROM table_15607589_2 WHERE date = "October 11"
Who were the candidates if the incumbent was Henry Logan?
CREATE TABLE table_2668173_4 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_2668173_4 WHERE incumbent = "Henry Logan"
What are the high points from a game of 30?
CREATE TABLE table_name_59 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_name_59 WHERE game = 30
Which Sydney has a Gold Coast of yes, an Adelaide of no, and an Auckland of yes?
CREATE TABLE table_name_13 (sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
SELECT sydney FROM table_name_13 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "yes"
What are the fewest seats with fewer than 5.4% seats and more than -1 change?
CREATE TABLE table_name_12 (seats INTEGER, _percentage_votes VARCHAR, change VARCHAR)
SELECT MIN(seats) FROM table_name_12 WHERE _percentage_votes < 5.4 AND change > -1
What was the number of males that had the number females 62 331?
CREATE TABLE table_name_13 (males VARCHAR, females VARCHAR)
SELECT males FROM table_name_13 WHERE females = "62 331"
What is the "active to date" of the latest contact channel used by "Tillman Ernser"?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (active_to_date INTEGER, customer_id VARCHAR)
SELECT MAX(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser"
Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond?
CREATE TABLE table_name_80 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR)
SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20"
What is the lowest population(2006) when there is a 1.06% in 2011?
CREATE TABLE table_189893_1 (population__2006_ INTEGER, percentage__2011_ VARCHAR)
SELECT MIN(population__2006_) FROM table_189893_1 WHERE percentage__2011_ = "1.06%"
What number has 2002-2003 as the season?
CREATE TABLE table_name_32 (number VARCHAR, season VARCHAR)
SELECT number FROM table_name_32 WHERE season = "2002-2003"
Which engine has a Lotus 49c chassis?
CREATE TABLE table_name_41 (engine VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_41 WHERE chassis = "lotus 49c"
Show the pair of male and female names in all weddings after year 2014
CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, year INTEGER); CREATE TABLE people (name VARCHAR, people_id VARCHAR)
SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014
What was the lowest pick number for Marc Pilon?
CREATE TABLE table_name_69 (pick__number INTEGER, player VARCHAR)
SELECT MIN(pick__number) FROM table_name_69 WHERE player = "marc pilon"
How many 3rd ru does Canada have?
CREATE TABLE table_17522854_6 (country VARCHAR)
SELECT COUNT(3 AS rd_ru) FROM table_17522854_6 WHERE country = "Canada"
What league is entering this round with 24 clubs remaining?
CREATE TABLE table_name_39 (leagues_entering_at_this_round VARCHAR, clubs_remaining VARCHAR)
SELECT leagues_entering_at_this_round FROM table_name_39 WHERE clubs_remaining = 24
What is the highest number of wins of the team with a position less than 1?
CREATE TABLE table_name_8 (wins INTEGER, position INTEGER)
SELECT MAX(wins) FROM table_name_8 WHERE position < 1
Which city of license has a frequency less than 100.1?
CREATE TABLE table_name_5 (city_of_license VARCHAR, frequency_mhz INTEGER)
SELECT city_of_license FROM table_name_5 WHERE frequency_mhz < 100.1
Who was the high scorer in the game when the team was 1-4?
CREATE TABLE table_13619105_3 (high_points VARCHAR, record VARCHAR)
SELECT high_points FROM table_13619105_3 WHERE record = "1-4"
What is the average NGC number that has a Apparent magnitude greater than 14.2?
CREATE TABLE table_name_59 (ngc_number INTEGER, apparent_magnitude INTEGER)
SELECT AVG(ngc_number) FROM table_name_59 WHERE apparent_magnitude > 14.2
Who is the 2008 head coach of UCLA?
CREATE TABLE table_name_7 (team VARCHAR)
SELECT 2008 AS _head_coach FROM table_name_7 WHERE team = "ucla"
What day did the VFL pay MCG?
CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_90 WHERE venue = "mcg"
What is the Livery when the Number is 31468?
CREATE TABLE table_name_57 (livery VARCHAR, number VARCHAR)
SELECT livery FROM table_name_57 WHERE number = 31468
Name the number of production code for 5.08
CREATE TABLE table_18569389_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(production_code) FROM table_18569389_1 WHERE us_viewers__million_ = "5.08"
What is the to par of player notah begay iii from the United States?
CREATE TABLE table_name_59 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_59 WHERE country = "united states" AND player = "notah begay iii"
What is the title of the episode originally aired on February 2, 2008?
CREATE TABLE table_name_65 (title VARCHAR, original_airdate VARCHAR)
SELECT title FROM table_name_65 WHERE original_airdate = "february 2, 2008"
What is the average number of events of PGA Championship tournaments with a top-5 less than 0?
CREATE TABLE table_name_27 (events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR)
SELECT AVG(events) FROM table_name_27 WHERE top_10 = 0 AND tournament = "pga championship" AND top_5 < 0
Name the least yes votes for yes passed
CREATE TABLE table_256286_14 (yes_votes INTEGER, passed VARCHAR)
SELECT MIN(yes_votes) FROM table_256286_14 WHERE passed = "YES"
What is the Player in Round 5?
CREATE TABLE table_name_23 (player VARCHAR, round VARCHAR)
SELECT player FROM table_name_23 WHERE round = 5
What's the nationality of Cardinal-Bishop of Albano?
CREATE TABLE table_name_32 (nationality VARCHAR, cardinalatial_order_and_title VARCHAR)
SELECT nationality FROM table_name_32 WHERE cardinalatial_order_and_title = "cardinal-bishop of albano"
Name the song choice for michael jackson
CREATE TABLE table_19508635_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT song_choice FROM table_19508635_1 WHERE original_artist = "Michael Jackson"
What year was the result did not qualify?
CREATE TABLE table_name_85 (year VARCHAR, result VARCHAR)
SELECT year FROM table_name_85 WHERE result = "did not qualify"
What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?
CREATE TABLE table_25479607_3 (fixed_charge___rs__kwh_ VARCHAR, unit__kwh__time_range VARCHAR)
SELECT fixed_charge___rs__kwh_ FROM table_25479607_3 WHERE unit__kwh__time_range = "I-2: Peak (18:30-22:30)"
How many different numbers of Tot enlisted are there on the dates when the number of Enlisted o/s was 801471?
CREATE TABLE table_23508196_2 (tot_enlisted VARCHAR, enlisted_o_s VARCHAR)
SELECT COUNT(tot_enlisted) FROM table_23508196_2 WHERE enlisted_o_s = 801471
what is the location attendance when the record is 39–7?
CREATE TABLE table_27715173_8 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_27715173_8 WHERE record = "39–7"
Name the director of alt i alt
CREATE TABLE table_name_92 (director_s_ VARCHAR, film VARCHAR)
SELECT director_s_ FROM table_name_92 WHERE film = "alt i alt"
how many times was the qualifying score 60.750?
CREATE TABLE table_13114949_3 (event VARCHAR, qualifying_score VARCHAR)
SELECT COUNT(event) FROM table_13114949_3 WHERE qualifying_score = "60.750"
Loses of 2, and a Pos. smaller than 2 had how many highest matches?
CREATE TABLE table_name_75 (matches INTEGER, loses VARCHAR, pos VARCHAR)
SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2
What was Anthony Leung Kam-Chung previous position?
CREATE TABLE table_2263674_1 (portfolio VARCHAR, romanised_name VARCHAR)
SELECT portfolio FROM table_2263674_1 WHERE romanised_name = "Anthony Leung Kam-chung"
What is the lengths behind of Jeremy Rose?
CREATE TABLE table_name_73 (lengths_behind VARCHAR, jockey VARCHAR)
SELECT lengths_behind FROM table_name_73 WHERE jockey = "jeremy rose"
how many milion of viewers where in the episode called in english "is a great way to care"
CREATE TABLE table_29633639_1 (hk_viewers VARCHAR, english_title VARCHAR)
SELECT hk_viewers FROM table_29633639_1 WHERE english_title = "A Great Way to Care"
Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?
CREATE TABLE table_name_48 (state VARCHAR, member VARCHAR, term_in_office VARCHAR, party VARCHAR)
SELECT state FROM table_name_48 WHERE term_in_office = "1984–1996" AND party = "labor" AND member = "robert tickner"
What nationality is the la salle team?
CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle"
What was the biggest pick number for the new team of Texas Rangers, in the compensation-a round?
CREATE TABLE table_name_55 (pick INTEGER, new_team VARCHAR, round VARCHAR)
SELECT MAX(pick) FROM table_name_55 WHERE new_team = "texas rangers" AND round = "compensation-a"
With an Overall less than 171, what is the Round pick of Lance Moon?
CREATE TABLE table_name_36 (round INTEGER, name VARCHAR, overall VARCHAR)
SELECT MIN(round) FROM table_name_36 WHERE name = "lance moon" AND overall < 171
Name the score which has record of 73-83
CREATE TABLE table_name_17 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_17 WHERE record = "73-83"
Who was the writer for season episode 7?
CREATE TABLE table_27397948_2 (written_by VARCHAR, no_in_season VARCHAR)
SELECT written_by FROM table_27397948_2 WHERE no_in_season = 7
Who were the director/s of episodes written by Mike Daniels?
CREATE TABLE table_18274425_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_18274425_1 WHERE written_by = "Mike Daniels"
In what Venue was Surrey the Opposition in the 2nd Wicket?
CREATE TABLE table_name_45 (venue VARCHAR, opposition VARCHAR, wicket VARCHAR)
SELECT venue FROM table_name_45 WHERE opposition = "surrey" AND wicket = "2nd"
what is the date of vacancy when the position in table is 10th and the team is balboa?
CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, position_in_table VARCHAR, team VARCHAR)
SELECT date_of_vacancy FROM table_name_70 WHERE position_in_table = "10th" AND team = "balboa"
Who wrote the story that is cover date 19 October 1985?
CREATE TABLE table_18305523_2 (writer_s VARCHAR, cover_date VARCHAR)
SELECT writer_s FROM table_18305523_2 WHERE cover_date = "19 October 1985"
Which Overall is the highest one that has a Name of gregory spann, and a Pick # larger than 19?
CREATE TABLE table_name_9 (overall INTEGER, name VARCHAR, pick__number VARCHAR)
SELECT MAX(overall) FROM table_name_9 WHERE name = "gregory spann" AND pick__number > 19
How many districts does Donald D. Clancy represent?
CREATE TABLE table_1341738_36 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341738_36 WHERE incumbent = "Donald D. Clancy"
What was the lowest lab for Gilera with a grid less than 12?
CREATE TABLE table_name_81 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_81 WHERE manufacturer = "gilera" AND grid < 12
What is the position of the commonwealth games?
CREATE TABLE table_name_98 (position VARCHAR, competition VARCHAR)
SELECT position FROM table_name_98 WHERE competition = "commonwealth games"
What is the lowest year that has athens, greece as the venue?
CREATE TABLE table_name_83 (year INTEGER, venue VARCHAR)
SELECT MIN(year) FROM table_name_83 WHERE venue = "athens, greece"
What is the sum of the attendance during the game against the philadelphia eagles after week 9?
CREATE TABLE table_name_58 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT SUM(attendance) FROM table_name_58 WHERE opponent = "philadelphia eagles" AND week > 9
Which goals/game ratio has fewer than 201 goals and fewer than 170 appearances?
CREATE TABLE table_name_29 (goals VARCHAR, Game VARCHAR, appearances VARCHAR)
SELECT goals / Game AS Ratio FROM table_name_29 WHERE goals < 201 AND appearances < 170
Name the location attendance for april 13
CREATE TABLE table_17322817_10 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_17322817_10 WHERE date = "April 13"
What model has an engine of 1,868 cc?
CREATE TABLE table_name_33 (model VARCHAR, displacement VARCHAR)
SELECT model FROM table_name_33 WHERE displacement = "1,868 cc"
When Princeton was the regular season winner, who was the tournament winner?
CREATE TABLE table_22733636_1 (tournament_winner VARCHAR, regular_season_winner VARCHAR)
SELECT tournament_winner FROM table_22733636_1 WHERE regular_season_winner = "Princeton"
I want to know the time which has attendance of 66,772
CREATE TABLE table_name_82 (time VARCHAR, attendance VARCHAR)
SELECT time FROM table_name_82 WHERE attendance = "66,772"
What was T3 player Lee Janzen's score?
CREATE TABLE table_name_1 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT MIN(score) FROM table_name_1 WHERE place = "t3" AND player = "lee janzen"
What is the highest To Par, when Year(s) Won is "1962 , 1967"?
CREATE TABLE table_name_66 (to_par INTEGER, year_s__won VARCHAR)
SELECT MAX(to_par) FROM table_name_66 WHERE year_s__won = "1962 , 1967"
Name the lowest Wins which has Points of 28, and a Year smaller than 1972?
CREATE TABLE table_name_94 (wins INTEGER, points VARCHAR, year VARCHAR)
SELECT MIN(wins) FROM table_name_94 WHERE points = 28 AND year < 1972