question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Tournament of tokyo, japan, and a Score of 4–6, 6–4, 6–4 had which date attached?
CREATE TABLE table_name_91 (date VARCHAR, tournament VARCHAR, score VARCHAR)
SELECT date FROM table_name_91 WHERE tournament = "tokyo, japan" AND score = "4–6, 6–4, 6–4"
What country is Chad Campbell from?
CREATE TABLE table_name_49 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_49 WHERE player = "chad campbell"
How many try bonuses were there when there were 64 tries for?
CREATE TABLE table_12792876_2 (try_bonus VARCHAR, tries_for VARCHAR)
SELECT try_bonus FROM table_12792876_2 WHERE tries_for = "64"
Can you tell me the Date that has the Week smaller than 13, and the Opponent of green bay packers?
CREATE TABLE table_name_16 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_16 WHERE week < 13 AND opponent = "green bay packers"
On what date was the record 19-11?
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_58 WHERE record = "19-11"
What was the original air date for season number 2?
CREATE TABLE table_21781578_2 (original_air_date VARCHAR, season_no VARCHAR)
SELECT original_air_date FROM table_21781578_2 WHERE season_no = 2
What is the average value for ERP W when frequency is more than 100.1?
CREATE TABLE table_name_6 (erp_w INTEGER, frequency_mhz INTEGER)
SELECT AVG(erp_w) FROM table_name_6 WHERE frequency_mhz > 100.1
What is the score where the country is Japan?
CREATE TABLE table_name_95 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_95 WHERE country = "japan"
What is the average diff when games played are more than 6?
CREATE TABLE table_name_84 (diff INTEGER, played INTEGER)
SELECT AVG(diff) FROM table_name_84 WHERE played > 6
What is the title of the program that was originally aired on June 13, 1999?
CREATE TABLE table_name_8 (title VARCHAR, original_airdate VARCHAR)
SELECT title FROM table_name_8 WHERE original_airdate = "june 13, 1999"
What is indiana college's average pick?
CREATE TABLE table_name_51 (pick INTEGER, college VARCHAR)
SELECT AVG(pick) FROM table_name_51 WHERE college = "indiana"
How many were Wounded while in a Unit with a Complement of 83 off 9 Men?
CREATE TABLE table_name_79 (wounded VARCHAR, complement VARCHAR)
SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men"
What is the score when watford was the away team?
CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_59 WHERE away_team = "watford"
What was the rating for the episode with 1.83 viewers (millions)?
CREATE TABLE table_11238597_4 (rating VARCHAR, viewers__millions_ VARCHAR)
SELECT rating FROM table_11238597_4 WHERE viewers__millions_ = "1.83"
On what date did the person leave office who died on October 23, 1887 and who served 2 years?
CREATE TABLE table_name_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR)
SELECT left_office FROM table_name_58 WHERE years_in_office = "2" AND death = "october 23, 1887"
Which report had a circuit of Cagliari?
CREATE TABLE table_name_33 (report VARCHAR, circuit VARCHAR)
SELECT report FROM table_name_33 WHERE circuit = "cagliari"
Name the date when the surface was clay and the score was 6–1, 6–2 and runner-up
CREATE TABLE table_name_6 (date VARCHAR, outcome VARCHAR, surface VARCHAR, score VARCHAR)
SELECT date FROM table_name_6 WHERE surface = "clay" AND score = "6–1, 6–2" AND outcome = "runner-up"
What was the team's record after week 7 with 28,161 attending?
CREATE TABLE table_name_58 (record VARCHAR, week VARCHAR, attenmdance VARCHAR)
SELECT record FROM table_name_58 WHERE week > 7 AND attenmdance = "28,161"
What Date was the Game at Griffith Stadium?
CREATE TABLE table_name_9 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_9 WHERE game_site = "griffith stadium"
What was the date that construction was finished when the unit was greifswald - 4 (kgr 4)?
CREATE TABLE table_name_28 (finish_construction VARCHAR, unit VARCHAR)
SELECT finish_construction FROM table_name_28 WHERE unit = "greifswald - 4 (kgr 4)"
What was the results against the Philadelphia Eagles?
CREATE TABLE table_name_20 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_20 WHERE opponent = "philadelphia eagles"
What are the most games when the points are 100 and goals for less than 356?
CREATE TABLE table_name_23 (games INTEGER, points VARCHAR, goals_for VARCHAR)
SELECT MAX(games) FROM table_name_23 WHERE points = 100 AND goals_for < 356
What was the preliminary average for Miss Mississippi?
CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, state VARCHAR)
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Mississippi"
How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11?
CREATE TABLE table_name_41 (cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR, labour_panel VARCHAR)
SELECT COUNT(cultural_and_educational_panel) FROM table_name_41 WHERE university_of_dublin = 3 AND labour_panel > 11
What was the weight division for the fight that ended in a TKO (strikes)?
CREATE TABLE table_name_55 (weight_division VARCHAR, method VARCHAR)
SELECT weight_division FROM table_name_55 WHERE method = "tko (strikes)"
What are the distinct hometowns of gymnasts with total points more than 57.5?
CREATE TABLE gymnast (Gymnast_ID VARCHAR, Total_Points INTEGER); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5
At which ground did Dirk Nannes have a figure of 4/23?
CREATE TABLE table_name_37 (ground VARCHAR, figures VARCHAR)
SELECT ground FROM table_name_37 WHERE figures = "4/23"
What was Barreto's song choice when the theme was samba?
CREATE TABLE table_27614571_1 (song_choice VARCHAR, theme VARCHAR)
SELECT song_choice FROM table_27614571_1 WHERE theme = "Samba"
On what date did the opponent in the Toshiaki Sakai final play on a grass surface?
CREATE TABLE table_name_99 (date VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR)
SELECT date FROM table_name_99 WHERE opponent_in_the_final = "toshiaki sakai" AND surface = "grass"
What is the score for the date of 16 december 1978, with a tie no of 9?
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_98 WHERE date = "16 december 1978" AND tie_no = "9"
What was the highest home total?
CREATE TABLE table_27094070_4 (home_total INTEGER)
SELECT MAX(home_total) FROM table_27094070_4
What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?
CREATE TABLE table_name_45 (international_mail INTEGER, change VARCHAR, domestic_mail VARCHAR)
SELECT MAX(international_mail) FROM table_name_45 WHERE change = "+0,2%" AND domestic_mail < 0
Which Team has Podiums of 0, and a Position of nc†?
CREATE TABLE table_name_94 (team VARCHAR, podiums VARCHAR, position VARCHAR)
SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†"
Name the record for milwaukee
CREATE TABLE table_23248940_7 (record VARCHAR, team VARCHAR)
SELECT record FROM table_23248940_7 WHERE team = "Milwaukee"
Who is listed under mens singles when the year location is 2009 doha?
CREATE TABLE table_28138035_27 (mens_singles VARCHAR, year_location VARCHAR)
SELECT mens_singles FROM table_28138035_27 WHERE year_location = "2009 Doha"
Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature?
CREATE TABLE table_name_64 (feature VARCHAR, driving_force_pro VARCHAR, driving_force_ex VARCHAR, driving_force_gt VARCHAR)
SELECT feature FROM table_name_64 WHERE driving_force_ex = "no" AND driving_force_gt = "yes" AND driving_force_pro = "yes"
What is the largest vote result if loss/gain is -0.5%?
CREATE TABLE table_25818630_1 (result___votes INTEGER, loss_gain VARCHAR)
SELECT MAX(result___votes) FROM table_25818630_1 WHERE loss_gain = "-0.5%"
Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?
CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR, method VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_7 WHERE method = "tko" AND location = "elgin, illinois, usa" AND date = "2001-02-11"
How many Ties have Wins smaller than 1, and Games of 6, and Losses of 6, and a Season larger than 1941?
CREATE TABLE table_name_41 (ties VARCHAR, season VARCHAR, losses VARCHAR, wins VARCHAR, games VARCHAR)
SELECT COUNT(ties) FROM table_name_41 WHERE wins < 1 AND games = 6 AND losses = 6 AND season > 1941
What are the distinct ages of the heads who are acting?
CREATE TABLE head (age VARCHAR, head_id VARCHAR); CREATE TABLE management (head_id VARCHAR, temporary_acting VARCHAR)
SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes'
What is the largest value for Fall 08 when Fall 07 is less than 242?
CREATE TABLE table_name_28 (fall_08 INTEGER, fall_07 INTEGER)
SELECT MAX(fall_08) FROM table_name_28 WHERE fall_07 < 242
What is the score for the home team for the venue glenferrie oval?
CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_57 WHERE venue = "glenferrie oval"
Name the start with Laps of 199 with qual of 224.838
CREATE TABLE table_name_13 (start VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT start FROM table_name_13 WHERE laps = 199 AND qual = "224.838"
Who was the director of the episode Rebel Rabbit?
CREATE TABLE table_name_90 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_90 WHERE title = "rebel rabbit"
Which institution is located in Reading, PA?
CREATE TABLE table_name_44 (institution VARCHAR, location VARCHAR)
SELECT institution FROM table_name_44 WHERE location = "reading, pa"
Which player went to college at Tennessee?
CREATE TABLE table_2508633_3 (player VARCHAR, college VARCHAR)
SELECT player FROM table_2508633_3 WHERE college = "Tennessee"
Which 1947 Nos has a BR Nos of 48730-9?
CREATE TABLE table_name_55 (br_nos VARCHAR)
SELECT 1947 AS _nos FROM table_name_55 WHERE br_nos = "48730-9"
What is the Date of the game with a Score of 4–6, 4–6?
CREATE TABLE table_name_36 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_36 WHERE score = "4–6, 4–6"
When michael reihs is the mountains classification what is the stage?
CREATE TABLE table_28298471_14 (stage VARCHAR, mountains_classification VARCHAR)
SELECT stage FROM table_28298471_14 WHERE mountains_classification = "Michael Reihs"
What's the site of the recap at qualcomm stadium?
CREATE TABLE table_name_81 (nflcom_recap VARCHAR, game_site VARCHAR)
SELECT nflcom_recap FROM table_name_81 WHERE game_site = "qualcomm stadium"
What is the area with decile of 8, and a 25 roll?
CREATE TABLE table_name_67 (area VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT area FROM table_name_67 WHERE decile = 8 AND roll = 25
Name the No. 8 which has a No. 4 of benjamin, and a No. 3 of liam?
CREATE TABLE table_name_23 (no_8 VARCHAR, no_4 VARCHAR, no_3 VARCHAR)
SELECT no_8 FROM table_name_23 WHERE no_4 = "benjamin" AND no_3 = "liam"
Name the district for first elected 1810
CREATE TABLE table_2668352_14 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_2668352_14 WHERE first_elected = "1810"
What is Date, when Set 1 is "20:22"?
CREATE TABLE table_name_49 (date VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_49 WHERE set_1 = "20:22"
Find the number of members of club "Pen and Paper Gaming".
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming"
What is the total crowd size that saw Geelong play as the away team?
CREATE TABLE table_name_17 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_17 WHERE away_team = "geelong"
What Lanier has a Cardwell of 20%?
CREATE TABLE table_name_60 (lanier VARCHAR, cardwell VARCHAR)
SELECT lanier FROM table_name_60 WHERE cardwell = "20%"
Which City has a Club of suntracs f.c.?
CREATE TABLE table_name_38 (city VARCHAR, club VARCHAR)
SELECT city FROM table_name_38 WHERE club = "suntracs f.c."
Count the number of trips that did not end in San Francisco city.
CREATE TABLE trip (end_station_id VARCHAR); CREATE TABLE station (id VARCHAR, city VARCHAR)
SELECT COUNT(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city <> "San Francisco"
Which Region served has of 1176 m 1190 m HAAT (Analog/ Digital) 1?
CREATE TABLE table_name_43 (region_served VARCHAR, haat__analog__digital__1 VARCHAR)
SELECT region_served FROM table_name_43 WHERE haat__analog__digital__1 = "1176 m 1190 m"
What is the original name of the film that used the title Olympics 40 in nomination?
CREATE TABLE table_name_91 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_name FROM table_name_91 WHERE film_title_used_in_nomination = "olympics 40"
Name the number of high rebounds for united center 19,335
CREATE TABLE table_22669044_9 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT COUNT(high_rebounds) FROM table_22669044_9 WHERE location_attendance = "United Center 19,335"
Who is the rookie goalkeeper Mike Gabel?
CREATE TABLE table_name_70 (rookie VARCHAR, goalkeeper VARCHAR)
SELECT rookie FROM table_name_70 WHERE goalkeeper = "mike gabel"
How many current clubs have the player Aigars Vitols?
CREATE TABLE table_23670057_7 (current_club VARCHAR, player VARCHAR)
SELECT COUNT(current_club) FROM table_23670057_7 WHERE player = "Aigars Vitols"
What is the original artist when the vocal percussionist is Alexei Kalveks?
CREATE TABLE table_28715942_5 (original_artist VARCHAR, vocal_percussionist VARCHAR)
SELECT original_artist FROM table_28715942_5 WHERE vocal_percussionist = "Alexei Kalveks"
How many weeks has the opponent been san francisco 49ers?
CREATE TABLE table_name_65 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_65 WHERE opponent = "san francisco 49ers"
What is the date of birth and age of Gabriel Quak Jun Yi with 3 caps?
CREATE TABLE table_name_57 (date_of_birth__age_ VARCHAR, caps VARCHAR, name VARCHAR)
SELECT date_of_birth__age_ FROM table_name_57 WHERE caps = "3" AND name = "gabriel quak jun yi"
Which Previous conference has a Year joined smaller than 1976, and an IHSAA Class of A?
CREATE TABLE table_name_23 (previous_conference VARCHAR, year_joined VARCHAR, ihsaa_class VARCHAR)
SELECT previous_conference FROM table_name_23 WHERE year_joined < 1976 AND ihsaa_class = "a"
How many people attended on July 5?
CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_10 WHERE date = "july 5"
What district was incumbent Jerry Kleczka in?
CREATE TABLE table_1341472_51 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341472_51 WHERE incumbent = "Jerry Kleczka"
Name the ERP W for frequency of 92.7
CREATE TABLE table_name_66 (erp_w VARCHAR, frequency_mhz VARCHAR)
SELECT erp_w FROM table_name_66 WHERE frequency_mhz = 92.7
On which episode number is event 4 The Wall and event 1 the Pendulum?
CREATE TABLE table_17257687_1 (episode_number VARCHAR, event_4 VARCHAR, event_1 VARCHAR)
SELECT COUNT(episode_number) FROM table_17257687_1 WHERE event_4 = "The Wall" AND event_1 = "Pendulum"
When the year is later than 1939 and the Runner-up is Tanunda, who is the Captain?
CREATE TABLE table_name_57 (captain VARCHAR, runner_up VARCHAR, year VARCHAR)
SELECT captain FROM table_name_57 WHERE runner_up = "tanunda" AND year > 1939
How many Points have a Team of rusport, and Laps of 45?
CREATE TABLE table_name_7 (points VARCHAR, team VARCHAR, laps VARCHAR)
SELECT COUNT(points) FROM table_name_7 WHERE team = "rusport" AND laps = 45
Name the date for loss of ruffin (3-5)
CREATE TABLE table_name_44 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_44 WHERE loss = "ruffin (3-5)"
Which city has tasmania as the state/territory and a ICAO of ymhb?
CREATE TABLE table_name_24 (city VARCHAR, state_territory VARCHAR, icao VARCHAR)
SELECT city FROM table_name_24 WHERE state_territory = "tasmania" AND icao = "ymhb"
Which Entrepreneur(s) have mixalbum?
CREATE TABLE table_name_69 (entrepreneur_s_ VARCHAR, company_or_product_name VARCHAR)
SELECT entrepreneur_s_ FROM table_name_69 WHERE company_or_product_name = "mixalbum"
What are the staff roles of the staff who
CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR, date_to VARCHAR)
SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18'
How many points were scored in the Detroit Home?
CREATE TABLE table_name_21 (points VARCHAR, home VARCHAR)
SELECT points FROM table_name_21 WHERE home = "detroit"
What year was the university that is located in Ellensburg, Washington established?
CREATE TABLE table_16078390_2 (founded INTEGER, location VARCHAR)
SELECT MIN(founded) FROM table_16078390_2 WHERE location = "Ellensburg, Washington"
Ram Vaswani was a winner on what date?
CREATE TABLE table_name_91 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_91 WHERE winner = "ram vaswani"
What clubs had 608 points against?
CREATE TABLE table_1676073_12 (club VARCHAR, points_against VARCHAR)
SELECT club FROM table_1676073_12 WHERE points_against = "608"
What is the guardian mātṛkā for the guardian whose consort is Svāhā?
CREATE TABLE table_100518_1 (guardian_mātṛkā VARCHAR, consort VARCHAR)
SELECT guardian_mātṛkā FROM table_100518_1 WHERE consort = "Svāhā"
What finals have grant brebner as the name?
CREATE TABLE table_name_40 (finals VARCHAR, name VARCHAR)
SELECT finals FROM table_name_40 WHERE name = "grant brebner"
What was the score on 3 may 2009?
CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_82 WHERE date = "3 may 2009"
What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?
CREATE TABLE table_name_16 (long INTEGER, gp_gs VARCHAR, gain VARCHAR)
SELECT MIN(long) FROM table_name_16 WHERE gp_gs = "11-8" AND gain < 228
Which team has the most ties with fewer than 4 losses and GA smaller than 20?
CREATE TABLE table_name_56 (ties INTEGER, losses VARCHAR, goals_against VARCHAR)
SELECT MAX(ties) FROM table_name_56 WHERE losses < 4 AND goals_against < 20
what is the earliest first elected with the results re-elected in the district south carolina 3?
CREATE TABLE table_1341423_40 (first_elected INTEGER, results VARCHAR, district VARCHAR)
SELECT MAX(first_elected) FROM table_1341423_40 WHERE results = "Re-elected" AND district = "South Carolina 3"
What is the boston celtics' record?
CREATE TABLE table_name_39 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_39 WHERE team = "boston celtics"
What is the total GNIS Feature ID with a County of idaho?
CREATE TABLE table_name_64 (gnis_feature_id INTEGER, county VARCHAR)
SELECT SUM(gnis_feature_id) FROM table_name_64 WHERE county = "idaho"
What's the total number of picks for the player Matt Murton?
CREATE TABLE table_name_25 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_25 WHERE player = "matt murton"
What club has less than 60 goals against, a goal difference smaller than 1, and a position of 8?
CREATE TABLE table_name_73 (club VARCHAR, position VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
SELECT club FROM table_name_73 WHERE goals_against < 60 AND goal_difference < 1 AND position = 8
how many country with currency name being republika srpska dinar
CREATE TABLE table_13681_2 (country VARCHAR, currency_name VARCHAR)
SELECT COUNT(country) FROM table_13681_2 WHERE currency_name = "Republika Srpska dinar"
What team played the Jazz at game 68?
CREATE TABLE table_name_50 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_50 WHERE game = 68
When 3 is the rr1 points what is won score?
CREATE TABLE table_21489362_2 (won VARCHAR, rr1_pts VARCHAR)
SELECT won FROM table_21489362_2 WHERE rr1_pts = 3
Who was the Home Captain at Sabina Park?
CREATE TABLE table_name_65 (home_captain VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_65 WHERE venue = "sabina park"
What shows for sat 20 aug when fri 26 aug is 19' 30.70 116.023mph?
CREATE TABLE table_30058355_2 (sat_20_aug VARCHAR, fri_26_aug VARCHAR)
SELECT sat_20_aug FROM table_30058355_2 WHERE fri_26_aug = "19' 30.70 116.023mph"
What was the winning score for the tournament where Garth Mulroy was the runner-up, and the margin of victory was 1 stroke?
CREATE TABLE table_name_98 (winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT winning_score FROM table_name_98 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "garth mulroy"
Tell me the total number of points with chassis of tf103
CREATE TABLE table_name_2 (points VARCHAR, chassis VARCHAR)
SELECT COUNT(points) FROM table_name_2 WHERE chassis = "tf103"
Find the number of voting records in total.
CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT COUNT(*) FROM VOTING_RECORD