question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what is the number of people in sri lanka
CREATE TABLE table_name_10 (s_no INTEGER, opponent VARCHAR)
SELECT AVG(s_no) FROM table_name_10 WHERE opponent = "sri lanka"
What year did actor Richard Farnsworth get nominated for an award?
CREATE TABLE table_name_73 (year VARCHAR, actor VARCHAR)
SELECT year FROM table_name_73 WHERE actor = "richard farnsworth"
What is the Sweet Potato amount when the soybean amount is 1.65?
CREATE TABLE table_name_92 (sweet_potato_ VARCHAR, g_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR)
SELECT sweet_potato_[g_] FROM table_name_92 WHERE soybean__green__[f_] = "1.65"
What is the average number of ties for years with more than 19 wins?
CREATE TABLE table_name_33 (tied INTEGER, wins INTEGER)
SELECT AVG(tied) FROM table_name_33 WHERE wins > 19
What did the home team at Brunswick Street Oval score?
CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_89 WHERE venue = "brunswick street oval"
Who has the status of jr synonym of protosialis casca?
CREATE TABLE table_name_75 (novelty VARCHAR, status VARCHAR)
SELECT novelty FROM table_name_75 WHERE status = "jr synonym of protosialis casca"
What location is farmer city speedway?
CREATE TABLE table_16275828_4 (location VARCHAR, track_name VARCHAR)
SELECT location FROM table_16275828_4 WHERE track_name = "Farmer City Speedway"
What is Ludo Peeters' team classification?
CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR)
SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters"
Which race has a winning team of Penske Racing, and a winning driver of Bobby Unser?
CREATE TABLE table_name_62 (name VARCHAR, winning_team VARCHAR, winning_driver VARCHAR)
SELECT name FROM table_name_62 WHERE winning_team = "penske racing" AND winning_driver = "bobby unser"
What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters?
CREATE TABLE table_name_65 (tournament VARCHAR)
SELECT 2006 FROM table_name_65 WHERE 2000 = "1r" AND 1996 = "a" AND tournament = "cincinnati masters"
What is the score for set 1 when the score for set 3 is 22–25?
CREATE TABLE table_name_10 (set_1 VARCHAR, set_3 VARCHAR)
SELECT set_1 FROM table_name_10 WHERE set_3 = "22–25"
Name the loss for record of 71-81
CREATE TABLE table_name_23 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_23 WHERE record = "71-81"
On what date was Adelaide 36ers the home team?
CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_64 WHERE home_team = "adelaide 36ers"
How did michelle do in archery?
CREATE TABLE table_name_39 (michelle INTEGER, discipline VARCHAR)
SELECT AVG(michelle) FROM table_name_39 WHERE discipline = "archery"
Who wrote the episodes watched by 1.575 million people in Canada?
CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR)
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.575"
What is the total Decile that has a state authority, fairlie area and roll smarter than 206?
CREATE TABLE table_name_49 (decile VARCHAR, roll VARCHAR, authority VARCHAR, area VARCHAR)
SELECT COUNT(decile) FROM table_name_49 WHERE authority = "state" AND area = "fairlie" AND roll < 206
Which Season has a Game of fcs midwest region, and a Score of 40-33?
CREATE TABLE table_name_29 (season INTEGER, game VARCHAR, score VARCHAR)
SELECT MAX(season) FROM table_name_29 WHERE game = "fcs midwest region" AND score = "40-33"
What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%?
CREATE TABLE table_171748_3 (change_over_previous_year_as_a_whole VARCHAR, change_over_same_quarter_the_previous_year VARCHAR)
SELECT change_over_previous_year_as_a_whole FROM table_171748_3 WHERE change_over_same_quarter_the_previous_year = "Up 2.8%"
What is the Label that shows on april 7, 1967?
CREATE TABLE table_name_77 (label VARCHAR, date VARCHAR)
SELECT label FROM table_name_77 WHERE date = "april 7, 1967"
Name the current club for player sacha giffa
CREATE TABLE table_12962773_13 (current_club VARCHAR, player VARCHAR)
SELECT current_club FROM table_12962773_13 WHERE player = "Sacha Giffa"
On what date does Yuji Tachikawa have the fastest lap in round 1?
CREATE TABLE table_name_24 (date VARCHAR, fastest_lap VARCHAR, round VARCHAR)
SELECT date FROM table_name_24 WHERE fastest_lap = "yuji tachikawa" AND round = 1
How many weeks ended in a result of L 20-10?
CREATE TABLE table_name_85 (week VARCHAR, result VARCHAR)
SELECT COUNT(week) FROM table_name_85 WHERE result = "l 20-10"
What was the nickname of the team in the Geelong West Cricket & Football Club?
CREATE TABLE table_name_59 (nickname VARCHAR, club VARCHAR)
SELECT nickname FROM table_name_59 WHERE club = "geelong west cricket & football club"
For the attribute of onpointerout, what is the cancelable?
CREATE TABLE table_name_75 (cancelable VARCHAR, attribute VARCHAR)
SELECT cancelable FROM table_name_75 WHERE attribute = "onpointerout"
What is the week with a date of October 9, 1983, and attendance smaller than 40,492?
CREATE TABLE table_name_27 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_27 WHERE date = "october 9, 1983" AND attendance < 40 OFFSET 492
Which Home has an Opponent of brøndby?
CREATE TABLE table_name_15 (home VARCHAR, opponent VARCHAR)
SELECT home FROM table_name_15 WHERE opponent = "brøndby"
On broadcast date is 28march1970, how many people tuned in?
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
SELECT viewers__in_millions_ FROM table_2102898_1 WHERE broadcast_date = "28March1970"
In which tournament did he place 20th?
CREATE TABLE table_name_55 (tournament VARCHAR, result VARCHAR)
SELECT tournament FROM table_name_55 WHERE result = "20th"
What is the russian title of the ugly swans?
CREATE TABLE table_207795_1 (russian_title VARCHAR, english_title VARCHAR)
SELECT russian_title FROM table_207795_1 WHERE english_title = "The Ugly Swans"
What is the D48 when the D 50 O is d 31?
CREATE TABLE table_name_67 (d_48_√ VARCHAR, d_50_o VARCHAR)
SELECT d_48_√ FROM table_name_67 WHERE d_50_o = "d 31"
What is the gender of the Roman Catholic school is AL4?
CREATE TABLE table_28523_3 (gender VARCHAR, religious_affiliation VARCHAR, location VARCHAR)
SELECT gender FROM table_28523_3 WHERE religious_affiliation = "Roman Catholic" AND location = "AL4"
Which Draw has a Performer of jenny newman, and Points smaller than 77?
CREATE TABLE table_name_67 (draw INTEGER, performer VARCHAR, points VARCHAR)
SELECT AVG(draw) FROM table_name_67 WHERE performer = "jenny newman" AND points < 77
what is the most weeks on chart when the peak position is less than 5 and from Sweden?
CREATE TABLE table_name_49 (weeks_on_chart INTEGER, peak_position VARCHAR, country VARCHAR)
SELECT MAX(weeks_on_chart) FROM table_name_49 WHERE peak_position < 5 AND country = "sweden"
What Partner has a Construction Start of 2008 january?
CREATE TABLE table_name_2 (partner VARCHAR, construction_start VARCHAR)
SELECT partner FROM table_name_2 WHERE construction_start = "2008 january"
Name the most official number for tf1 # being 42
CREATE TABLE table_16425614_4 (official__number INTEGER, tf1__number VARCHAR)
SELECT MAX(official__number) FROM table_16425614_4 WHERE tf1__number = 42
What type of ship was the HMSST George?
CREATE TABLE table_name_66 (ship_type VARCHAR, name VARCHAR)
SELECT ship_type FROM table_name_66 WHERE name = "hmsst george"
Who tied in the highest point scorer when playing against Phoenix?
CREATE TABLE table_23274514_4 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_23274514_4 WHERE team = "Phoenix"
What are the swimsuit scores of participants with score 9.366 in interview
CREATE TABLE table_17088705_2 (swimsuit VARCHAR, interview VARCHAR)
SELECT swimsuit FROM table_17088705_2 WHERE interview = "9.366"
What is Tony O'Sullivan's county?
CREATE TABLE table_name_67 (county VARCHAR, player VARCHAR)
SELECT county FROM table_name_67 WHERE player = "tony o'sullivan"
What is Score, when Attendance is "349"?
CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_66 WHERE attendance = "349"
When is the date of appointment when the position in table is 16?
CREATE TABLE table_27383390_4 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT date_of_appointment FROM table_27383390_4 WHERE position_in_table = 16
What is the mean year number where there are more than 0 wins, the class is 250cc, and the points are 95?
CREATE TABLE table_name_66 (year INTEGER, points VARCHAR, wins VARCHAR, class VARCHAR)
SELECT AVG(year) FROM table_name_66 WHERE wins > 0 AND class = "250cc" AND points = 95
Namr the total number of played for 5 losses
CREATE TABLE table_18703133_1 (played VARCHAR, losses VARCHAR)
SELECT COUNT(played) FROM table_18703133_1 WHERE losses = 5
How many air dates where directed by jim donovan?
CREATE TABLE table_18424435_5 (us_air_date VARCHAR, directed_by VARCHAR)
SELECT COUNT(us_air_date) FROM table_18424435_5 WHERE directed_by = "Jim Donovan"
Which player has 68 as the score and canada as the country?
CREATE TABLE table_name_35 (player VARCHAR, score VARCHAR, country VARCHAR)
SELECT player FROM table_name_35 WHERE score = 68 AND country = "canada"
With a Losing BP of 8, what is the drawn?
CREATE TABLE table_name_34 (drawn VARCHAR, losing_bp VARCHAR)
SELECT drawn FROM table_name_34 WHERE losing_bp = "8"
What is the production code of the episode directed by Stacie Lipp?
CREATE TABLE table_2226817_9 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_2226817_9 WHERE written_by = "Stacie Lipp"
Who had the fastest lap when Al Unser won?
CREATE TABLE table_name_40 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT fastest_lap FROM table_name_40 WHERE winning_driver = "al unser"
What is the height of the Tides with less than 34 floors?
CREATE TABLE table_name_68 (height_feet___m VARCHAR, floors VARCHAR, name VARCHAR)
SELECT height_feet___m FROM table_name_68 WHERE floors < 34 AND name = "the tides"
What is the total number of population in the land with an area of 149.32 km2?
CREATE TABLE table_170958_2 (population VARCHAR, area_km_2 VARCHAR)
SELECT COUNT(population) FROM table_170958_2 WHERE area_km_2 = "149.32"
What team lost a game by a score of 6-0?
CREATE TABLE table_name_37 (runner_up VARCHAR, score VARCHAR)
SELECT runner_up FROM table_name_37 WHERE score = "6-0"
What is the smallest number of goals against when 8 games were lost, and the goals for are 60?
CREATE TABLE table_name_86 (goals_against INTEGER, lost VARCHAR, goals_for VARCHAR)
SELECT MIN(goals_against) FROM table_name_86 WHERE lost = 8 AND goals_for = 60
What is the highest points of the club with less than 9 draws, 11 wins, and more than 40 goals?
CREATE TABLE table_name_28 (points INTEGER, goals_for VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT MAX(points) FROM table_name_28 WHERE draws < 9 AND wins = 11 AND goals_for > 40
List the total number of years that have a score of 3–6, 4–6, 2–6.
CREATE TABLE table_2201724_1 (year VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(year) FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
What was the date of the game when the record was 27-14?
CREATE TABLE table_23285849_7 (date VARCHAR, record VARCHAR)
SELECT date FROM table_23285849_7 WHERE record = "27-14"
How many laps resulted from a Qual of 165.229?
CREATE TABLE table_name_17 (laps INTEGER, qual VARCHAR)
SELECT MAX(laps) FROM table_name_17 WHERE qual = "165.229"
What is the name of the jockey for Pink Gin?
CREATE TABLE table_28750142_1 (jockey VARCHAR, name VARCHAR)
SELECT jockey FROM table_28750142_1 WHERE name = "Pink Gin"
What is the team score of the away team at Junction Oval?
CREATE TABLE table_name_35 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_35 WHERE venue = "junction oval"
If the special weapon is glass egg, what is the close ranged weapon?
CREATE TABLE table_27704991_1 (close_ranged_weapons VARCHAR, special_weapon VARCHAR)
SELECT close_ranged_weapons FROM table_27704991_1 WHERE special_weapon = "Glass egg"
What was the attendance at the game played on December 10, 1972?
CREATE TABLE table_14959246_2 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_14959246_2 WHERE date = "December 10, 1972"
What date did episode 115 in the series originally air?
CREATE TABLE table_24425976_7 (original_air_date VARCHAR, series VARCHAR)
SELECT original_air_date FROM table_24425976_7 WHERE series = 115
What is the record for the Utah Jazz?
CREATE TABLE table_name_4 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_4 WHERE team = "utah jazz"
What was the loss for June 2?
CREATE TABLE table_name_79 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_79 WHERE date = "june 2"
I want the average Laps for grid of 9
CREATE TABLE table_name_74 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_74 WHERE grid = 9
Which Vertices have a Dual Archimedean solid of truncated dodecahedron?
CREATE TABLE table_name_28 (vertices INTEGER, dual_archimedean_solid VARCHAR)
SELECT MAX(vertices) FROM table_name_28 WHERE dual_archimedean_solid = "truncated dodecahedron"
What is Kent Patterson's nationality?
CREATE TABLE table_name_60 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_60 WHERE player = "kent patterson"
Which Score has a Date of 13 april 1997?
CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_50 WHERE date = "13 april 1997"
What is the district where Steve Carriker is the Democratic Senator and he took office later than 1988?
CREATE TABLE table_name_72 (district INTEGER, took_office VARCHAR, party VARCHAR, senator VARCHAR)
SELECT MAX(district) FROM table_name_72 WHERE party = "democratic" AND senator = "steve carriker" AND took_office > 1988
What is the highest Week with the Opponent Buffalo Bills?
CREATE TABLE table_name_67 (week INTEGER, opponent VARCHAR)
SELECT MAX(week) FROM table_name_67 WHERE opponent = "buffalo bills"
What is Longitude, when Name is Raskova Paterae?
CREATE TABLE table_name_61 (longitude VARCHAR, name VARCHAR)
SELECT longitude FROM table_name_61 WHERE name = "raskova paterae"
When was the Austrian Grand Prix?
CREATE TABLE table_name_7 (date VARCHAR, grand_prix VARCHAR)
SELECT date FROM table_name_7 WHERE grand_prix = "austrian grand prix"
What score has a to par greater than 15, money ($) greater than 116, with billy burke as the player?
CREATE TABLE table_name_81 (score VARCHAR, player VARCHAR, to_par VARCHAR, money___$__ VARCHAR)
SELECT score FROM table_name_81 WHERE to_par > 15 AND money___$__ > 116 AND player = "billy burke"
Which party is Madeleine Plamondon a member of?
CREATE TABLE table_name_94 (party VARCHAR, name VARCHAR)
SELECT party FROM table_name_94 WHERE name = "madeleine plamondon"
Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?
CREATE TABLE table_name_47 (republican VARCHAR, margin_of_error VARCHAR, sample_size VARCHAR, democrat VARCHAR)
SELECT republican FROM table_name_47 WHERE sample_size > 1087 AND democrat = "hillary clinton" AND margin_of_error = 2.6
What was # of the first game played on August 20?
CREATE TABLE table_18904831_7 (game INTEGER, date VARCHAR)
SELECT MIN(game) FROM table_18904831_7 WHERE date = "August 20"
What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?
CREATE TABLE table_name_22 (winning_score VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_22 WHERE tournament = "joburg open 1" AND date = "17 jan 2010"
How big in metric terms is the unit that has a ratio of 1/20?
CREATE TABLE table_name_54 (metric_value VARCHAR, ratio VARCHAR)
SELECT metric_value FROM table_name_54 WHERE ratio = "1/20"
Name the sum of year for olimpija ljubljana with height less than 2.04
CREATE TABLE table_name_14 (year_born INTEGER, current_club VARCHAR, height VARCHAR)
SELECT SUM(year_born) FROM table_name_14 WHERE current_club = "olimpija ljubljana" AND height < 2.04
What is every growth rate in 1991-2001 when sex ratio in 2001 is 937?
CREATE TABLE table_19589113_5 (growth_rate_1991_01 VARCHAR, sex_ratio_‡_2001 VARCHAR)
SELECT growth_rate_1991_01 FROM table_19589113_5 WHERE sex_ratio_‡_2001 = 937
What is the earliest year a song with a position less than 1 has?
CREATE TABLE table_name_5 (year INTEGER, position INTEGER)
SELECT MIN(year) FROM table_name_5 WHERE position < 1
What is the maximum goals score with less than 13 wins, greater than 86 goals were conceded, and more than 32 games lost?
CREATE TABLE table_name_87 (goals_scored INTEGER, loses VARCHAR, wins VARCHAR, goals_conceded VARCHAR)
SELECT MAX(goals_scored) FROM table_name_87 WHERE wins < 13 AND goals_conceded > 86 AND loses > 32
Who has a date of october 11, 2008?
CREATE TABLE table_name_41 (wrestler VARCHAR, date VARCHAR)
SELECT wrestler FROM table_name_41 WHERE date = "october 11, 2008"
Darren Manning finished in what position?
CREATE TABLE table_17244483_1 (fin_pos INTEGER, driver VARCHAR)
SELECT MIN(fin_pos) FROM table_17244483_1 WHERE driver = "Darren Manning"
What year was there a category of Best Supporting Actress?
CREATE TABLE table_name_8 (year INTEGER, category VARCHAR)
SELECT SUM(year) FROM table_name_8 WHERE category = "best supporting actress"
Which Current car has a Number of cars of 1, and a Year started of 1999?
CREATE TABLE table_name_54 (current_car VARCHAR, number_of_cars VARCHAR, year_started VARCHAR)
SELECT current_car FROM table_name_54 WHERE number_of_cars = 1 AND year_started = 1999
On what date did the team play againt the New Orleans Saints?
CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_6 WHERE opponent = "new orleans saints"
What is the location for the game with a score of w 106-81?
CREATE TABLE table_name_44 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_44 WHERE score = "w 106-81"
What is the Spanish word for cas [ˈkas]?
CREATE TABLE table_26614365_1 (spanish VARCHAR, central VARCHAR)
SELECT spanish FROM table_26614365_1 WHERE central = "cas [ˈkas]"
What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?
CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR)
SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast"
What Semimajor axis (AU) has a Companion (in order from star) of g?
CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR)
SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g"
what year was the memphis event?
CREATE TABLE table_name_97 (year INTEGER, event VARCHAR)
SELECT SUM(year) FROM table_name_97 WHERE event = "memphis"
What is the location/attendance for the w 95-93 score?
CREATE TABLE table_name_33 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_33 WHERE score = "w 95-93"
how many local title with televbeingion network being tv nova website
CREATE TABLE table_13779832_1 (local_title VARCHAR, television_network VARCHAR)
SELECT COUNT(local_title) FROM table_13779832_1 WHERE television_network = "TV Nova Website"
What was the result of the game against Luxembourg?
CREATE TABLE table_name_13 (results¹ VARCHAR, opponent VARCHAR)
SELECT results¹ FROM table_name_13 WHERE opponent = "luxembourg"
how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060
CREATE TABLE table_11214212_1 (numer_of_jamaicans_granted_british_citizenship VARCHAR, naturalisation_by_marriage VARCHAR)
SELECT COUNT(numer_of_jamaicans_granted_british_citizenship) FROM table_11214212_1 WHERE naturalisation_by_marriage = 1060
Which studio did The Oregon Trail?
CREATE TABLE table_name_13 (studio VARCHAR, title VARCHAR)
SELECT studio FROM table_name_13 WHERE title = "the oregon trail"
What is the party in Ohio 6 District?
CREATE TABLE table_name_68 (party VARCHAR, district VARCHAR)
SELECT party FROM table_name_68 WHERE district = "ohio 6"
What candidates ran in the election that included john shelley?
CREATE TABLE table_1341973_6 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341973_6 WHERE incumbent = "John Shelley"
What background does the person from New york, New york, have?
CREATE TABLE table_1289860_2 (background VARCHAR, hometown VARCHAR)
SELECT background FROM table_1289860_2 WHERE hometown = "New York, New York"
Who is the vocal percussionist for Sex Bomb?
CREATE TABLE table_28715942_6 (vocal_percussionist VARCHAR, track VARCHAR)
SELECT vocal_percussionist FROM table_28715942_6 WHERE track = "Sex Bomb"