question
stringlengths 12
244
| context
stringlengths 27
489
| answer
stringlengths 18
557
|
---|---|---|
What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points? | CREATE TABLE table_name_56 (year INTEGER, points VARCHAR, team VARCHAR, wins VARCHAR) | SELECT MAX(year) FROM table_name_56 WHERE team = "repsol honda" AND wins < 4 AND points < 162 |
Which team has a car # before 99, a Toyota, and is driven by Mike Skinner? | CREATE TABLE table_name_1 (team VARCHAR, driver VARCHAR, car__number VARCHAR, make VARCHAR) | SELECT team FROM table_name_1 WHERE car__number < 99 AND make = "toyota" AND driver = "mike skinner" |
On what Date were the Results¹ 5:1? | CREATE TABLE table_name_72 (date VARCHAR, results¹ VARCHAR) | SELECT date FROM table_name_72 WHERE results¹ = "5:1" |
Who was the opponent when the attendance was 80,079? | CREATE TABLE table_name_99 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_99 WHERE attendance = "80,079" |
What are the ids of templates with template type code PP or PPT? | CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR) | SELECT template_id FROM Templates WHERE template_type_code = "PP" OR template_type_code = "PPT" |
how many total population with catholic being smaller than 31370649.1405057 and region being north africa | CREATE TABLE table_1364343_2 (total_population VARCHAR, catholic VARCHAR, region VARCHAR) | SELECT COUNT(total_population) FROM table_1364343_2 WHERE catholic < 31370649.1405057 AND region = "North Africa" |
When melbourne was the home team what was their score? | CREATE TABLE table_name_46 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne" |
Which Series has a Home of 2–0, and an Opponent of panathinaikos? | CREATE TABLE table_name_96 (series VARCHAR, home VARCHAR, opponent VARCHAR) | SELECT series FROM table_name_96 WHERE home = "2–0" AND opponent = "panathinaikos" |
What was the date of the game that had a loss of Geisel (0-1)? | CREATE TABLE table_name_5 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_5 WHERE loss = "geisel (0-1)" |
what is the population of Valencia, Spain? | CREATE TABLE table_name_56 (population INTEGER, country VARCHAR, urban_area VARCHAR) | SELECT AVG(population) FROM table_name_56 WHERE country = "spain" AND urban_area = "valencia" |
What is Release Date, when Format is CD, and when Title is Tsar Wars? | CREATE TABLE table_name_84 (release_date VARCHAR, format VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_84 WHERE format = "cd" AND title = "tsar wars" |
How many times is the theme roadside attractions: wawa goose? | CREATE TABLE table_25468520_1 (quantity VARCHAR, theme VARCHAR) | SELECT COUNT(quantity) FROM table_25468520_1 WHERE theme = "Roadside Attractions: Wawa Goose" |
What rocket has a block i/ii hybrid? | CREATE TABLE table_name_30 (rocket VARCHAR, block VARCHAR) | SELECT rocket FROM table_name_30 WHERE block = "block i/ii hybrid" |
What was the date of the victory when the Axis Unit was 5./jg 3? | CREATE TABLE table_name_45 (date__ddmmyyyy_ VARCHAR, axis_unit VARCHAR) | SELECT date__ddmmyyyy_ FROM table_name_45 WHERE axis_unit = "5./jg 3" |
Show ids of all students who do not have any friends. | CREATE TABLE Highschooler (id VARCHAR, student_id VARCHAR); CREATE TABLE Friend (id VARCHAR, student_id VARCHAR) | SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend |
Name the number of rank for stone park | CREATE TABLE table_22916979_5 (rank VARCHAR, densest_incorporated_place VARCHAR) | SELECT COUNT(rank) FROM table_22916979_5 WHERE densest_incorporated_place = "Stone Park" |
What was d. a. weibring's to par? | CREATE TABLE table_name_39 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_39 WHERE player = "d. a. weibring" |
What was the playoff result when they finished 5th, north in the regular sesason? | CREATE TABLE table_15056103_1 (playoffs VARCHAR, regular_season VARCHAR) | SELECT playoffs FROM table_15056103_1 WHERE regular_season = "5th, North" |
Show first name for all students with major 600. | CREATE TABLE Student (Fname VARCHAR, Major VARCHAR) | SELECT Fname FROM Student WHERE Major = 600 |
Who tied for highest rebounds in game 29? | CREATE TABLE table_23285849_6 (high_rebounds VARCHAR, game VARCHAR) | SELECT high_rebounds FROM table_23285849_6 WHERE game = 29 |
What was the music of the team that was eliminated? | CREATE TABLE table_name_7 (music VARCHAR, result VARCHAR) | SELECT music FROM table_name_7 WHERE result = "eliminated" |
How many teams can still qualify when there are 0 teams that have secured qualification and 52 teams started? | CREATE TABLE table_23995075_2 (teams_that_can_still_qualify VARCHAR, teams_that_have_secured_qualification VARCHAR, teams_started VARCHAR) | SELECT teams_that_can_still_qualify FROM table_23995075_2 WHERE teams_that_have_secured_qualification = "0" AND teams_started = "52" |
In what series did Bobby Labonte drive? | CREATE TABLE table_25146455_1 (series VARCHAR, driver VARCHAR) | SELECT series FROM table_25146455_1 WHERE driver = "Bobby Labonte" |
Can you tell me the Record that has the Date of december 15? | CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_42 WHERE date = "december 15" |
What date did the episode with a production code of 4301085 originally air? | CREATE TABLE table_21172539_1 (original_air_date VARCHAR, production_code VARCHAR) | SELECT original_air_date FROM table_21172539_1 WHERE production_code = 4301085 |
How many people attended the game when the away team was dynamo kyiv, and a Home team of torpedo zaporizhia? | CREATE TABLE table_name_31 (attendance VARCHAR, away_team VARCHAR, home_team VARCHAR) | SELECT attendance FROM table_name_31 WHERE away_team = "dynamo kyiv" AND home_team = "torpedo zaporizhia" |
What is the Game number on March 30? | CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR) | SELECT game FROM table_name_33 WHERE date = "march 30" |
Name of calvin o'neal, and a Round smaller than 6 had what number total overall? | CREATE TABLE table_name_3 (overall VARCHAR, name VARCHAR, round VARCHAR) | SELECT COUNT(overall) FROM table_name_3 WHERE name = "calvin o'neal" AND round < 6 |
What are the completion dates of all the tests that have result "Fail"? | CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_completion VARCHAR, registration_id VARCHAR) | SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" |
what is the least tonnage grt when the nationality is british and the ship is kidalton? | CREATE TABLE table_name_84 (tonnage_grt INTEGER, nationality VARCHAR, ship VARCHAR) | SELECT MIN(tonnage_grt) FROM table_name_84 WHERE nationality = "british" AND ship = "kidalton" |
What is the 2006 figure for Argentina when 2007 is less than 0,15? | CREATE TABLE table_name_47 (country VARCHAR) | SELECT COUNT(2006) FROM table_name_47 WHERE country = "argentina" AND 2007 < 0 OFFSET 15 |
What was the 2nd leg for team #1 River Plate? | CREATE TABLE table_24426072_1 (team__number1 VARCHAR) | SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number1 = "River Plate" |
Who was the home team at Brunswick Street Oval? | CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_65 WHERE venue = "brunswick street oval" |
What was the location for a year later than 2012? | CREATE TABLE table_name_82 (location VARCHAR, year INTEGER) | SELECT location FROM table_name_82 WHERE year > 2012 |
How many hometowns have a height of m (ft 10 1⁄2 in)? | CREATE TABLE table_24192031_2 (hometown VARCHAR, height VARCHAR) | SELECT COUNT(hometown) FROM table_24192031_2 WHERE height = "m (ft 10 1⁄2 in)" |
Find the names of the channels that are broadcast in the morning. | CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR) | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' |
When the away team was Geelong, what was the home team score? | CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_97 WHERE away_team = "geelong" |
Who was the home team when the VFL played Arden Street Oval? | CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_6 WHERE venue = "arden street oval" |
Of the teams that had more than 0 byes, what was the total number of losses? | CREATE TABLE table_name_54 (losses VARCHAR, byes INTEGER) | SELECT COUNT(losses) FROM table_name_54 WHERE byes < 0 |
Name the attendance with result of t 14-14 | CREATE TABLE table_name_92 (attendance VARCHAR, result VARCHAR) | SELECT attendance FROM table_name_92 WHERE result = "t 14-14" |
What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard? | CREATE TABLE table_1926240_1 (informational_cvbs_lines VARCHAR, max_characters__per_page_row_ VARCHAR, standard VARCHAR) | SELECT informational_cvbs_lines FROM table_1926240_1 WHERE max_characters__per_page_row_ = 32 AND standard = "B (global)" |
When the venue was lake oval what did the home team score? | CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_56 WHERE venue = "lake oval" |
Who's captain of the team whose stadium has a capacity of 17800 people? | CREATE TABLE table_23214833_1 (team_captain VARCHAR, capacity VARCHAR) | SELECT team_captain FROM table_23214833_1 WHERE capacity = 17800 |
What is the status for the monarch Mingyinyo? | CREATE TABLE table_26460435_7 (status VARCHAR, monarch VARCHAR) | SELECT status FROM table_26460435_7 WHERE monarch = "Mingyinyo" |
give the 1st leg score against ilisiakos | CREATE TABLE table_21434618_1 (team__number2 VARCHAR) | SELECT 1 AS st_leg FROM table_21434618_1 WHERE team__number2 = "Ilisiakos" |
What is the name of the writer for issue 224? | CREATE TABLE table_name_21 (writer VARCHAR, issue VARCHAR) | SELECT writer FROM table_name_21 WHERE issue = 224 |
Name the most gdp per capita latvian | CREATE TABLE table_21133193_1 (gdp_per_capita__us INTEGER, languages VARCHAR) | SELECT MAX(gdp_per_capita__us) AS $_ FROM table_21133193_1 WHERE languages = "Latvian" |
Who is the home team at brunswick street oval? | CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_17 WHERE venue = "brunswick street oval" |
Which city has the IATA SSG? | CREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR) | SELECT city FROM table_name_40 WHERE iata = "ssg" |
Which region is identified as 38xa-3 in the catalog? | CREATE TABLE table_name_7 (region VARCHAR, catalog VARCHAR) | SELECT region FROM table_name_7 WHERE catalog = "38xa-3" |
What player weight 235? | CREATE TABLE table_name_29 (player VARCHAR, weight VARCHAR) | SELECT player FROM table_name_29 WHERE weight = 235 |
What is the number of points when the played is less than 30? | CREATE TABLE table_name_42 (points VARCHAR, played INTEGER) | SELECT COUNT(points) FROM table_name_42 WHERE played < 30 |
What is the prize (eur) for the 6th division? | CREATE TABLE table_20195922_3 (prize__eur_ VARCHAR, divisions VARCHAR) | SELECT prize__eur_ FROM table_20195922_3 WHERE divisions = "6th" |
Show the account name, id and the number of transactions for each account. | CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR) | SELECT T2.account_name, T1.account_id, COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id |
List the description of all the colors. | CREATE TABLE ref_colors (color_description VARCHAR) | SELECT color_description FROM ref_colors |
What is the number of external links with a coach named Katie Kansas? | CREATE TABLE table_2140071_13 (external_link VARCHAR, coach VARCHAR) | SELECT COUNT(external_link) FROM table_2140071_13 WHERE coach = "Katie Kansas" |
What is the autonomous community with television channels tpa tpa2 rtpa internacional? | CREATE TABLE table_23143607_1 (autonomous_community VARCHAR, television_channels VARCHAR) | SELECT autonomous_community FROM table_23143607_1 WHERE television_channels = "TPA TPA2 RTPA Internacional" |
Which position has a club of Meralomas and a player named David Biddle? | CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR) | SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle" |
which poll source does the highest oppose rate come from? | CREATE TABLE candidate (poll_source VARCHAR, oppose_rate VARCHAR) | SELECT poll_source FROM candidate ORDER BY oppose_rate DESC LIMIT 1 |
Who was the opponent before week 3 and a result of w 28-6? | CREATE TABLE table_name_57 (opponent VARCHAR, week VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_57 WHERE week < 3 AND result = "w 28-6" |
Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005? | CREATE TABLE table_name_87 (pre_race_host VARCHAR, lap_by_lap VARCHAR, year VARCHAR) | SELECT pre_race_host FROM table_name_87 WHERE lap_by_lap = "mike joy" AND year = 2005 |
When 231 is the production code what is the title? | CREATE TABLE table_27657925_1 (title VARCHAR, production_code VARCHAR) | SELECT title FROM table_27657925_1 WHERE production_code = "231" |
In what year did the #14 FitzBradshaw Racing compete? | CREATE TABLE table_1909647_2 (year VARCHAR, team_s_ VARCHAR) | SELECT year FROM table_1909647_2 WHERE team_s_ = "#14 FitzBradshaw Racing" |
What year was the year of the pig theme? | CREATE TABLE table_name_43 (year VARCHAR, theme VARCHAR) | SELECT year FROM table_name_43 WHERE theme = "year of the pig" |
What year was Frank Annunzio elected | CREATE TABLE table_1341663_14 (first_elected INTEGER, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_1341663_14 WHERE incumbent = "Frank Annunzio" |
Which college did the player picked larger than 130 by the New York Jets go to? | CREATE TABLE table_name_95 (college VARCHAR, pick VARCHAR, team VARCHAR) | SELECT college FROM table_name_95 WHERE pick > 130 AND team = "new york jets" |
What is the 2nd leg of the second team in the 2007 uefa intertoto cup? | CREATE TABLE table_name_78 (team__number2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 = "2007 uefa intertoto cup" |
What is the average year for Wallenstein with 1a1 design? | CREATE TABLE table_name_49 (acquired INTEGER, design VARCHAR, name VARCHAR) | SELECT AVG(acquired) FROM table_name_49 WHERE design = "1a1" AND name = "wallenstein" |
Name the total number of stage for lloyd mondory | CREATE TABLE table_22713796_14 (stage VARCHAR, mountains_classification VARCHAR) | SELECT COUNT(stage) FROM table_22713796_14 WHERE mountains_classification = "Lloyd Mondory" |
Which municipality has a population of 24421? | CREATE TABLE table_157826_1 (municipality VARCHAR, population VARCHAR) | SELECT municipality FROM table_157826_1 WHERE population = 24421 |
When was Hon Les Johnson in office? | CREATE TABLE table_name_74 (term_in_office VARCHAR, member VARCHAR) | SELECT term_in_office FROM table_name_74 WHERE member = "hon les johnson" |
Who was the away team when Lincoln City was the home team? | CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_19 WHERE home_team = "lincoln city" |
What is the smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6? | CREATE TABLE table_name_27 (rating INTEGER, episode VARCHAR, rank__night_ VARCHAR, rank__timeslot_ VARCHAR) | SELECT MIN(rating) FROM table_name_27 WHERE rank__night_ < 7 AND rank__timeslot_ < 5 AND episode > 6 |
What Country is Tom Kite from? | CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_95 WHERE player = "tom kite" |
What's the comp in Olympic Stadium Tokyo, Japan? | CREATE TABLE table_name_60 (comp VARCHAR, venue VARCHAR) | SELECT comp FROM table_name_60 WHERE venue = "olympic stadium tokyo, japan" |
What category has a year after 2004? | CREATE TABLE table_name_33 (category VARCHAR, year INTEGER) | SELECT category FROM table_name_33 WHERE year > 2004 |
What is the College with a Position of db, and the CFL Team was Winnipeg Blue Bombers? | CREATE TABLE table_name_59 (college VARCHAR, position VARCHAR, cfl_team VARCHAR) | SELECT college FROM table_name_59 WHERE position = "db" AND cfl_team = "winnipeg blue bombers" |
What did the United States score in the T5? | CREATE TABLE table_name_88 (score VARCHAR, country VARCHAR, place VARCHAR) | SELECT score FROM table_name_88 WHERE country = "united states" AND place = "t5" |
What is the points ranking of Chicago Fire? | CREATE TABLE table_name_73 (pts_rank VARCHAR, club VARCHAR) | SELECT pts_rank FROM table_name_73 WHERE club = "chicago fire" |
What was the tie number for the round against visiting opponent Chelsea? | CREATE TABLE table_name_89 (tie_no INTEGER, away_team VARCHAR) | SELECT SUM(tie_no) FROM table_name_89 WHERE away_team = "chelsea" |
What was the score on october 17, 2007? | CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_33 WHERE date = "october 17, 2007" |
How much gold received by nation of uzbekistan (uzb)? | CREATE TABLE table_name_93 (gold INTEGER, nation VARCHAR) | SELECT MAX(gold) FROM table_name_93 WHERE nation = "uzbekistan (uzb)" |
Who was sent to the third island in week 1? | CREATE TABLE table_11764007_2 (member VARCHAR, week_sent_to_third_island VARCHAR) | SELECT member FROM table_11764007_2 WHERE week_sent_to_third_island = "1" |
Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit? | CREATE TABLE table_name_2 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR) | SELECT "inventor" FROM table_name_2 WHERE habit = "spur" AND pattern = "stripe" AND mutated_from = "redsport type 2" |
What's the authority when the roll is 40? | CREATE TABLE table_name_7 (authority VARCHAR, roll VARCHAR) | SELECT authority FROM table_name_7 WHERE roll = 40 |
What movie has noxialicht as a track? | CREATE TABLE table_name_98 (title VARCHAR, tracks VARCHAR) | SELECT title FROM table_name_98 WHERE tracks = "noxialicht" |
December larger than 21, and a Opponent of Pittsburgh penguins had what average game? | CREATE TABLE table_name_30 (game INTEGER, december VARCHAR, opponent VARCHAR) | SELECT AVG(game) FROM table_name_30 WHERE december > 21 AND opponent = "pittsburgh penguins" |
What is Total, when Set 5 is NA, and when Set 2 is 25-13? | CREATE TABLE table_name_62 (total VARCHAR, set_5 VARCHAR, set_2 VARCHAR) | SELECT total FROM table_name_62 WHERE set_5 = "na" AND set_2 = "25-13" |
What was the score when the home team was Toronto? | CREATE TABLE table_name_89 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_89 WHERE home = "toronto" |
Name the most win % for 13 drawn | CREATE TABLE table_name_91 (win__percentage INTEGER, drawn VARCHAR) | SELECT MAX(win__percentage) FROM table_name_91 WHERE drawn = 13 |
For which constructor does Juan Manuel Fangio drive? | CREATE TABLE table_name_59 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_59 WHERE driver = "juan manuel fangio" |
The match against Valentijn Overeem had what method? | CREATE TABLE table_name_11 (method VARCHAR, opponent VARCHAR) | SELECT method FROM table_name_11 WHERE opponent = "valentijn overeem" |
What is the name of the team with a finish of 19? | CREATE TABLE table_name_48 (team VARCHAR, finish VARCHAR) | SELECT team FROM table_name_48 WHERE finish = "19" |
What is the country of the player with playoff money and a score of 66-67-70-67=270? | CREATE TABLE table_name_73 (country VARCHAR, money___$__ VARCHAR, score VARCHAR) | SELECT country FROM table_name_73 WHERE money___$__ = "playoff" AND score = 66 - 67 - 70 - 67 = 270 |
Name the district for 1994 | CREATE TABLE table_25030512_41 (district VARCHAR, first_elected VARCHAR) | SELECT district FROM table_25030512_41 WHERE first_elected = 1994 |
Which year had a publication of Pazz & Jop? | CREATE TABLE table_name_99 (year VARCHAR, publication VARCHAR) | SELECT year FROM table_name_99 WHERE publication = "pazz & jop" |
What are the maximum and minimum week on top of all volumes? | CREATE TABLE volume (Weeks_on_Top INTEGER) | SELECT MAX(Weeks_on_Top), MIN(Weeks_on_Top) FROM volume |
What is Poles, when Races is less than 16? | CREATE TABLE table_name_99 (poles VARCHAR, races INTEGER) | SELECT poles FROM table_name_99 WHERE races < 16 |
What are goals scored when postition is 17 and tied is 5? | CREATE TABLE table_28848697_4 (goals_scored VARCHAR, position VARCHAR, tied VARCHAR) | SELECT goals_scored FROM table_28848697_4 WHERE position = 17 AND tied = 5 |
What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%? | CREATE TABLE table_name_45 (karen_handel VARCHAR, eric_johnson VARCHAR, undecided VARCHAR) | SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%" |