question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the team's record on November 12?
CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_38 WHERE date = "november 12"
Name the average total for years won of 1975
CREATE TABLE table_name_47 (total INTEGER, year_s__won VARCHAR)
SELECT AVG(total) FROM table_name_47 WHERE year_s__won = "1975"
On what Date of the race was Nesta Carter the Athlete?
CREATE TABLE table_name_46 (date VARCHAR, athlete VARCHAR)
SELECT date FROM table_name_46 WHERE athlete = "nesta carter"
Which grid is lower for thierry boutsen which laps less than 44?
CREATE TABLE table_name_90 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_90 WHERE driver = "thierry boutsen" AND laps < 44
Which Position has Draws smaller than 7 and a Played larger than 22?
CREATE TABLE table_name_16 (position INTEGER, draws VARCHAR, played VARCHAR)
SELECT AVG(position) FROM table_name_16 WHERE draws < 7 AND played > 22
Name the outcome for opponent of michaëlla krajicek eleni daniilidou
CREATE TABLE table_name_98 (outcome VARCHAR, opponent VARCHAR)
SELECT outcome FROM table_name_98 WHERE opponent = "michaëlla krajicek eleni daniilidou"
What is the number of ranking when the nationalits is England with more than 53 goals?
CREATE TABLE table_name_2 (ranking INTEGER, nationality VARCHAR, goals VARCHAR)
SELECT SUM(ranking) FROM table_name_2 WHERE nationality = "england" AND goals > 53
Name the young rider classification with laudelino cubino
CREATE TABLE table_12261806_2 (young_rider_classification VARCHAR, winner VARCHAR)
SELECT young_rider_classification FROM table_12261806_2 WHERE winner = "Laudelino Cubino"
What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?
CREATE TABLE table_1008653_9 (country___exonym__ VARCHAR, official_or_native_language_s___alphabet_script_ VARCHAR)
SELECT country___exonym__ FROM table_1008653_9 WHERE official_or_native_language_s___alphabet_script_ = "Icelandic"
What is the high goal against associated with 18 wins, a Goal Difference of 43, and under 6 draws?
CREATE TABLE table_name_57 (goals_against INTEGER, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR)
SELECT MAX(goals_against) FROM table_name_57 WHERE wins = 18 AND goal_difference = 43 AND draws < 6
What is the year joined with a Conference championships of 5, and a Nickname of wolfpack?
CREATE TABLE table_name_15 (joined VARCHAR, conference_championships VARCHAR, nickname VARCHAR)
SELECT joined FROM table_name_15 WHERE conference_championships = 5 AND nickname = "wolfpack"
What is the Political affiliation of deputy john dallat?
CREATE TABLE table_name_39 (political_affiliation VARCHAR, deputy VARCHAR)
SELECT political_affiliation FROM table_name_39 WHERE deputy = "john dallat"
What is Population in Millions, when GDP 2012 Millions of Euro is 600,638?
CREATE TABLE table_name_73 (population_in_millions VARCHAR, gdp_2012_millions_of_euro VARCHAR)
SELECT population_in_millions FROM table_name_73 WHERE gdp_2012_millions_of_euro = "600,638"
What is the name of the player that has a To par of –1?
CREATE TABLE table_name_27 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_27 WHERE to_par = "–1"
Which album awarded Paul McGuinness a Lifetime Achievement Award?
CREATE TABLE table_name_20 (album VARCHAR, lifetime_achievement_award VARCHAR)
SELECT album FROM table_name_20 WHERE lifetime_achievement_award = "paul mcguinness"
What is the date of birth of the person who started their reign in 1986?
CREATE TABLE table_name_61 (Birth VARCHAR, start_of_reign VARCHAR)
SELECT Birth AS name FROM table_name_61 WHERE start_of_reign = 1986
Which name has a Decile of 5, and an Area of tauranga?
CREATE TABLE table_name_96 (name VARCHAR, decile VARCHAR, area VARCHAR)
SELECT name FROM table_name_96 WHERE decile = 5 AND area = "tauranga"
what is the meet when the date is 3 august 2012?
CREATE TABLE table_name_67 (meet VARCHAR, date VARCHAR)
SELECT meet FROM table_name_67 WHERE date = "3 august 2012"
What college did the player from Fort Lauderdale, FL attend?
CREATE TABLE table_name_79 (college VARCHAR, hometown VARCHAR)
SELECT college FROM table_name_79 WHERE hometown = "fort lauderdale, fl"
What is the status when the rank is 2?
CREATE TABLE table_29572583_19 (status VARCHAR, rank VARCHAR)
SELECT status FROM table_29572583_19 WHERE rank = 2
What is the average land area with a density of 815.48, and a Population larger than 411?
CREATE TABLE table_name_29 (land_area__hectares_ INTEGER, density__inh_km²_ VARCHAR, population VARCHAR)
SELECT AVG(land_area__hectares_) FROM table_name_29 WHERE density__inh_km²_ = 815.48 AND population > 411
What was the signed year for the Chinese name 蘇永康 who separated in 1987?
CREATE TABLE table_name_82 (year_signed VARCHAR, year_separated VARCHAR, chinese_name VARCHAR)
SELECT year_signed FROM table_name_82 WHERE year_separated = "1987" AND chinese_name = "蘇永康"
Which had an attendance of larger than 33,435?
CREATE TABLE table_name_26 (result VARCHAR, attendance INTEGER)
SELECT result FROM table_name_26 WHERE attendance > 33 OFFSET 435
How many reg GP for rick vaive in round 1?
CREATE TABLE table_name_40 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR)
SELECT SUM(reg_gp) FROM table_name_40 WHERE player = "rick vaive" AND rd__number > 1
What is the population density in Buffalo Lake?
CREATE TABLE table_2500440_1 (population_density__per_km_2__ VARCHAR, name VARCHAR)
SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE name = "Buffalo Lake"
Name the number of year for june 30
CREATE TABLE table_23015396_1 (year VARCHAR, date VARCHAR)
SELECT COUNT(year) FROM table_23015396_1 WHERE date = "June 30"
What is 1998, when 1997 is "3R", and when 1992 is "A"?
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT 1998 FROM table_name_26 WHERE 1997 = "3r" AND 1992 = "a"
Who was the home team in the game where North Melbourne was the away team?
CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE away_team = "north melbourne"
If the median income is $57,407, what is the per capita income?
CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR)
SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407"
What was the Position of Pick #23 in a Round less than 5 with 23 Overall?
CREATE TABLE table_name_53 (position VARCHAR, overall VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_53 WHERE round < 5 AND pick__number = 23 AND overall = 23
Who was the opponent with the 20-12 record?
CREATE TABLE table_name_45 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_45 WHERE record = "20-12"
Which allergy type has most number of allergies?
CREATE TABLE Allergy_type (allergytype VARCHAR)
SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY COUNT(*) DESC LIMIT 1
What is the score in 1929?
CREATE TABLE table_name_46 (score VARCHAR, year VARCHAR)
SELECT score FROM table_name_46 WHERE year = "1929"
What were the co-drivers in 2008?
CREATE TABLE table_name_76 (co_drivers VARCHAR, year VARCHAR)
SELECT co_drivers FROM table_name_76 WHERE year = 2008
Which Thumb stick has a Basic shape of curved, a Backlit of yes, and a Supplier of genius?
CREATE TABLE table_name_37 (thumb_stick VARCHAR, supplier VARCHAR, basic_shape VARCHAR, backlit VARCHAR)
SELECT thumb_stick FROM table_name_37 WHERE basic_shape = "curved" AND backlit = "yes" AND supplier = "genius"
What is the name of the person from series bb1 with a hometown of Bolton?
CREATE TABLE table_name_69 (name VARCHAR, series VARCHAR, hometown VARCHAR)
SELECT name FROM table_name_69 WHERE series = "bb1" AND hometown = "bolton"
What is the highest production code of an episode written by Tim Loane?
CREATE TABLE table_18335117_2 (production_code INTEGER, writer VARCHAR)
SELECT MAX(production_code) FROM table_18335117_2 WHERE writer = "Tim Loane"
What displacement & configuration does the car model Panamera 4s have?
CREATE TABLE table_name_68 (displacement_ VARCHAR, _configuration VARCHAR, car_model VARCHAR)
SELECT displacement_ & _configuration FROM table_name_68 WHERE car_model = "panamera 4s"
Which team had fewer than 167 points in the 250cc class?
CREATE TABLE table_name_72 (team VARCHAR, points VARCHAR, class VARCHAR)
SELECT team FROM table_name_72 WHERE points < 167 AND class = "250cc"
What are the countries that have at least two perpetrators?
CREATE TABLE perpetrator (Country VARCHAR)
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2
List the names and birth dates of people in ascending alphabetical order of name.
CREATE TABLE people (Name VARCHAR, Birth_Date VARCHAR)
SELECT Name, Birth_Date FROM people ORDER BY Name
What is the Score with a Winning team that is san antonio spurs?
CREATE TABLE table_name_48 (score VARCHAR, winning_team VARCHAR)
SELECT score FROM table_name_48 WHERE winning_team = "san antonio spurs"
What is the sitalsasthi carnival with hirakud as sambalpuri saree?
CREATE TABLE table_name_92 (sitalsasthi_carnival VARCHAR, sambalpuri_saree VARCHAR)
SELECT sitalsasthi_carnival FROM table_name_92 WHERE sambalpuri_saree = "hirakud"
Which Round has the Winning Driver of brendon hartley, and a Date of 27 april?
CREATE TABLE table_name_56 (round INTEGER, winning_driver VARCHAR, date VARCHAR)
SELECT MIN(round) FROM table_name_56 WHERE winning_driver = "brendon hartley" AND date = "27 april"
What is the latest year listed with the Alabama 4 voting district?
CREATE TABLE table_1341973_3 (first_elected INTEGER, district VARCHAR)
SELECT MAX(first_elected) FROM table_1341973_3 WHERE district = "Alabama 4"
What's the least amount of laps that George Eaton completed that has a time/retired engine and a grid larger than 8?
CREATE TABLE table_name_20 (laps INTEGER, driver VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_20 WHERE time_retired = "engine" AND grid > 8 AND driver = "george eaton"
What is the highest round of Ian Cole, who played position d from the United States?
CREATE TABLE table_name_35 (round INTEGER, player VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT MAX(round) FROM table_name_35 WHERE position = "d" AND nationality = "united states" AND player = "ian cole"
What is the date of enrollment of the course named "Spanish"?
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR)
SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish"
What is the Staffel B that has Hallescher Fc Chemie as Staffel C?
CREATE TABLE table_name_97 (staffel_b VARCHAR, staffel_c VARCHAR)
SELECT staffel_b FROM table_name_97 WHERE staffel_c = "hallescher fc chemie"
What was the away team when the home was st kilda?
CREATE TABLE table_name_34 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_34 WHERE home_team = "st kilda"
Name the most fa cup apps for league apps being 27
CREATE TABLE table_2979789_1 (fa_cup_apps INTEGER, league_apps VARCHAR)
SELECT MAX(fa_cup_apps) FROM table_2979789_1 WHERE league_apps = 27
What are the total lanes that have a rank larger than 22?
CREATE TABLE table_name_11 (lane INTEGER, rank INTEGER)
SELECT SUM(lane) FROM table_name_11 WHERE rank > 22
What is the lowest episode # with an air date of October 31, 2001?
CREATE TABLE table_name_42 (episode__number INTEGER, airdate VARCHAR)
SELECT MIN(episode__number) FROM table_name_42 WHERE airdate = "october 31, 2001"
Which Rank has a Scorer of lee sang-cheol?
CREATE TABLE table_name_69 (rank VARCHAR, scorer VARCHAR)
SELECT rank FROM table_name_69 WHERE scorer = "lee sang-cheol"
What is the smallest district that had 33.25 in animals
CREATE TABLE table_20403667_2 (district INTEGER, animal__in_lakh__ VARCHAR)
SELECT MIN(district) FROM table_20403667_2 WHERE animal__in_lakh__ = "33.25"
Can you tell me the highest Lost that has the Pool/Round of pool 2, and the Played smaller than 6?
CREATE TABLE table_name_43 (lost INTEGER, pool_round VARCHAR, played VARCHAR)
SELECT MAX(lost) FROM table_name_43 WHERE pool_round = "pool 2" AND played < 6
What was the Lok Sabha in Karakat (Vidhan Sabha Constituency)?
CREATE TABLE table_29785324_5 (lok_sabha VARCHAR, vidhan_sabha_constituency VARCHAR)
SELECT lok_sabha FROM table_29785324_5 WHERE vidhan_sabha_constituency = "Karakat (Vidhan Sabha constituency)"
Which opponent was a runner-up on 2 march 1998?
CREATE TABLE table_name_6 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_6 WHERE outcome = "runner-up" AND date = "2 march 1998"
When did this wind farm started service with a capacity of 135 MW?
CREATE TABLE table_24837750_1 (date_in_service VARCHAR, installed_capacity__mw_ VARCHAR)
SELECT date_in_service FROM table_24837750_1 WHERE installed_capacity__mw_ = "135"
What date was the ensemble in North East England closed?
CREATE TABLE table_name_70 (closure_date VARCHAR, region VARCHAR)
SELECT closure_date FROM table_name_70 WHERE region = "north east england"
What is Player, when Country is "United States", and when To Par is "WD"?
CREATE TABLE table_name_79 (player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_79 WHERE country = "united states" AND to_par = "wd"
How much does the player from Southern California weight?
CREATE TABLE table_20861261_4 (weight VARCHAR, college VARCHAR)
SELECT weight FROM table_20861261_4 WHERE college = "Southern California"
What is the lane total when rank is 2?
CREATE TABLE table_name_89 (lane INTEGER, rank VARCHAR)
SELECT SUM(lane) FROM table_name_89 WHERE rank = 2
When western carolina university is the school what is the control?
CREATE TABLE table_2076516_1 (control VARCHAR, school VARCHAR)
SELECT control FROM table_2076516_1 WHERE school = "Western Carolina University"
What is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20?
CREATE TABLE table_name_60 (rank INTEGER, name VARCHAR, games VARCHAR)
SELECT MIN(rank) FROM table_name_60 WHERE name = "jeremiah massey" AND games < 20
What is the total number of years in which Eiza González had a nominated work in the category of solista favorito?
CREATE TABLE table_name_51 (year INTEGER, nominated_work VARCHAR, category VARCHAR)
SELECT SUM(year) FROM table_name_51 WHERE nominated_work = "eiza gonzález" AND category = "solista favorito"
Name the city with Feb of 66 °f / 18.9 °c
CREATE TABLE table_name_63 (city VARCHAR, feb VARCHAR)
SELECT city FROM table_name_63 WHERE feb = "66 °f / 18.9 °c"
What is the Catalog of the RCA release?
CREATE TABLE table_name_58 (catalog VARCHAR, label VARCHAR)
SELECT catalog FROM table_name_58 WHERE label = "rca"
What was the nationality of the swimmer in the semifinal with a time of 29.51?
CREATE TABLE table_name_62 (nationality VARCHAR, round VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_62 WHERE round = "semifinal" AND time = "29.51"
Name the total number of pitcher for 9 overall rank
CREATE TABLE table_242813_2 (pitcher VARCHAR, overall_rank VARCHAR)
SELECT COUNT(pitcher) FROM table_242813_2 WHERE overall_rank = 9
What is the average Game where there were 65,666 in attendance?
CREATE TABLE table_name_24 (game INTEGER, attendance VARCHAR)
SELECT AVG(game) FROM table_name_24 WHERE attendance = "65,666"
What is the primary conference of the school that has the lowest acc percent score in the competition?
CREATE TABLE basketball_match (school_id VARCHAR, acc_percent VARCHAR); CREATE TABLE university (Primary_conference VARCHAR, school_id VARCHAR)
SELECT t1.Primary_conference FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t2.acc_percent LIMIT 1
Name the club when tries for is 83
CREATE TABLE table_13564702_3 (club VARCHAR, tries_for VARCHAR)
SELECT club FROM table_13564702_3 WHERE tries_for = "83"
What is the date of the match with west bromwich albion as the home team?
CREATE TABLE table_name_90 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_90 WHERE home_team = "west bromwich albion"
WHICH Regular Season has a League of npsl, and a Year of 2008?
CREATE TABLE table_name_64 (regular_season VARCHAR, league VARCHAR, year VARCHAR)
SELECT regular_season FROM table_name_64 WHERE league = "npsl" AND year = "2008"
Name the date with outcome of winner and score of 4–6 6–2 7–6 (7–4)
CREATE TABLE table_name_25 (date VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT date FROM table_name_25 WHERE outcome = "winner" AND score = "4–6 6–2 7–6 (7–4)"
when the vacator was Henry Latimer (f), what were the causes for modification?
CREATE TABLE table_224840_3 (reason_for_change VARCHAR, vacator VARCHAR)
SELECT reason_for_change FROM table_224840_3 WHERE vacator = "Henry Latimer (F)"
Who had the most poinst in game 72?
CREATE TABLE table_17288825_9 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_17288825_9 WHERE game = 72
What is the v-core for a stepping of G1 and frequency of 1900MHz?
CREATE TABLE table_name_29 (v_core VARCHAR, stepping VARCHAR, frequency VARCHAR)
SELECT v_core FROM table_name_29 WHERE stepping = "g1" AND frequency = "1900mhz"
What's the rank when the laps are fewer than 137 and the qual is 116.470?
CREATE TABLE table_name_99 (rank VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT rank FROM table_name_99 WHERE laps < 137 AND qual = "116.470"
What are the moving parts of lead-acid?
CREATE TABLE table_name_74 (moving_parts VARCHAR, technology VARCHAR)
SELECT moving_parts FROM table_name_74 WHERE technology = "lead-acid"
Which Lost has a Tries for of 75?
CREATE TABLE table_name_78 (lost VARCHAR, tries_for VARCHAR)
SELECT lost FROM table_name_78 WHERE tries_for = "75"
What award was won in the best sound category for the exorcist before 1998?
CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR)
SELECT award FROM table_name_85 WHERE year < 1998 AND type = "won" AND category = "best sound" AND title = "the exorcist"
what the most lost for Alianza with a draw less than 6?
CREATE TABLE table_name_26 (lost INTEGER, team VARCHAR, draw VARCHAR)
SELECT MAX(lost) FROM table_name_26 WHERE team = "alianza" AND draw < 6
Which Game has an Opponent of @ washington wizards?
CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR)
SELECT game FROM table_name_13 WHERE opponent = "@ washington wizards"
What are all the AAAA classes in the schools years 2004-05?
CREATE TABLE table_14603212_5 (class_aAAA VARCHAR, school_year VARCHAR)
SELECT class_aAAA FROM table_14603212_5 WHERE school_year = "2004-05"
When godstone is in division five who is in division four?
CREATE TABLE table_24575253_4 (division_four VARCHAR, division_five VARCHAR)
SELECT division_four FROM table_24575253_4 WHERE division_five = "Godstone"
What are the average laps driven in the GT class?
CREATE TABLE table_name_45 (laps INTEGER, class VARCHAR)
SELECT AVG(laps) FROM table_name_45 WHERE class = "gt"
What is the ab ripper x when the length is 92:24?
CREATE TABLE table_27512025_1 (ab_ripper_x VARCHAR, length VARCHAR)
SELECT ab_ripper_x FROM table_27512025_1 WHERE length = "92:24"
Who played as the away team when Essendon was the home team?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_85 WHERE home_team = "essendon"
What is the highest wins a tournament with 3 cuts and more than 4 events has?
CREATE TABLE table_name_27 (wins INTEGER, cuts_made VARCHAR, events VARCHAR)
SELECT MAX(wins) FROM table_name_27 WHERE cuts_made = 3 AND events > 4
Who constructed the car that won the Canadian Grand Prix?
CREATE TABLE table_name_97 (constructor VARCHAR, grand_prix VARCHAR)
SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian grand prix"
What language has viaggi as the content?
CREATE TABLE table_name_65 (language VARCHAR, content VARCHAR)
SELECT language FROM table_name_65 WHERE content = "viaggi"
What record has chicago black hawks as the visitor and march 23 as the date?
CREATE TABLE table_name_15 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_15 WHERE visitor = "chicago black hawks" AND date = "march 23"
What is the gold medal count for the country with a total greater than 32 and more than 128 silvers?
CREATE TABLE table_name_53 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT AVG(gold) FROM table_name_53 WHERE total > 32 AND silver > 128
What was Michael Shaver's position?
CREATE TABLE table_23619005_3 (position VARCHAR, player VARCHAR)
SELECT position FROM table_23619005_3 WHERE player = "Michael Shaver"
What is the fewest number of top-5s for events with more than 1 win?
CREATE TABLE table_name_90 (top_5 INTEGER, wins INTEGER)
SELECT MIN(top_5) FROM table_name_90 WHERE wins > 1
How many kinds of roles are there for the staff?
CREATE TABLE Project_Staff (role_code VARCHAR)
SELECT COUNT(DISTINCT role_code) FROM Project_Staff
How many total reason for change are listed corresponding to the successor Leonard B. Jordan (r)?
CREATE TABLE table_1802522_3 (reason_for_change VARCHAR, successor VARCHAR)
SELECT COUNT(reason_for_change) FROM table_1802522_3 WHERE successor = "Leonard B. Jordan (R)"
Who is the arranger for Ana Rouh?
CREATE TABLE table_name_29 (arranger VARCHAR, title VARCHAR)
SELECT arranger FROM table_name_29 WHERE title = "ana rouh"