answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT senator FROM table_20803065_1 WHERE religion = "Presbyterian"
List the presbyterian members of the senate.
CREATE TABLE table_20803065_1 (senator VARCHAR, religion VARCHAR)
SELECT to_par FROM table_name_47 WHERE player = "steve elkington"
What did Steve Elkington par?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR)
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra"
What is the moving from with a transfer and the nationality of Bra?
CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)
SELECT 2005 FROM table_name_46 WHERE cargo = "all product carriers"
What was the cargo value in 2005 for all product carriers?
CREATE TABLE table_name_46 (cargo VARCHAR)
SELECT title FROM table_27832075_2 WHERE episode__number = "9-10"
What is the title of episode number 9-10?
CREATE TABLE table_27832075_2 (title VARCHAR, episode__number VARCHAR)
SELECT opponent_in_the_final FROM table_name_6 WHERE outcome = "runner-up" AND date = "2 march 1998"
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 order_id FROM shipments WHERE shipment_tracking_number = "3452"
Find the id of the order whose shipment tracking number is "3452".
CREATE TABLE shipments (order_id VARCHAR, shipment_tracking_number VARCHAR)
SELECT score FROM table_name_15 WHERE game > 4 AND time = "2:26"
Game larger than 4, and a Time of 2:26 resulted in what score?
CREATE TABLE table_name_15 (score VARCHAR, game VARCHAR, time VARCHAR)
SELECT third FROM table_25563779_4 WHERE second = "Sergey Sirotkin"
If second is Sergey Sirotkin, what is the third name?
CREATE TABLE table_25563779_4 (third VARCHAR, second VARCHAR)
SELECT years FROM table_name_62 WHERE character = "joyce couwenberg"
What years have joyce couwenberg as the character?
CREATE TABLE table_name_62 (years VARCHAR, character VARCHAR)
SELECT MAX(position) FROM table_name_69 WHERE best_3_year_period = "petrosian"
Which Position has a best 3-year period of petrosian?
CREATE TABLE table_name_69 (position INTEGER, best_3_year_period VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "south dragons" AND score = "94-81"
Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR, score VARCHAR)
SELECT episode FROM table_name_71 WHERE rank = 1
Which Episode has a Rank of 1?
CREATE TABLE table_name_71 (episode VARCHAR, rank VARCHAR)
SELECT 1987 AS _88 FROM table_14460085_3 WHERE team = "Racing de Córdoba"
How many points in 87/88 for racing de córdoba?
CREATE TABLE table_14460085_3 (team VARCHAR)
SELECT record FROM table_name_46 WHERE date = "february 24"
What was their record on February 24?
CREATE TABLE table_name_46 (record VARCHAR, date VARCHAR)
SELECT transfer_fee FROM table_name_68 WHERE transfer_window = "winter" AND moving_to = "madureira"
What transfer fee has both winter as the transfer window, and Madureira as the moving to?
CREATE TABLE table_name_68 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR)
SELECT position FROM table_name_83 WHERE player = "jesse boulerice"
Which position does Jesse Boulerice play?
CREATE TABLE table_name_83 (position VARCHAR, player VARCHAR)
SELECT tournament FROM table_name_21 WHERE 2010 = "2r" AND 2011 = "1r"
Which Tournament has a 2010 of 2r, and a 2011 of 1r?
CREATE TABLE table_name_21 (tournament VARCHAR)
SELECT time FROM table_name_75 WHERE release_date = "8/26/69" AND track < 19
What was the time for tracks before 19 on 8/26/69?
CREATE TABLE table_name_75 (time VARCHAR, release_date VARCHAR, track VARCHAR)
SELECT wheel_arrangement FROM table_name_8 WHERE quantity_made = "44"
What is Wheel Arrangement, when Quantity Made is 44?
CREATE TABLE table_name_8 (wheel_arrangement VARCHAR, quantity_made VARCHAR)
SELECT eliminated FROM table_name_83 WHERE week__number > 4
Tell me the eliminated for week # larger than 4
CREATE TABLE table_name_83 (eliminated VARCHAR, week__number INTEGER)
SELECT team_name FROM table_22319599_1 WHERE school = "Rend Lake College"
If the school is Rend Lake College, what is the team name?
CREATE TABLE table_22319599_1 (team_name VARCHAR, school VARCHAR)
SELECT usual_translation FROM table_name_80 WHERE date_³ = "sep 23"
WHich Usual translation is on sep 23?
CREATE TABLE table_name_80 (usual_translation VARCHAR, date_³ VARCHAR)
SELECT team FROM table_name_38 WHERE make = "lexus" AND drivers = "yuji tachikawa"
When driver yuji tachikawa had a make of lexus, what team did he represent?
CREATE TABLE table_name_38 (team VARCHAR, make VARCHAR, drivers VARCHAR)
SELECT COUNT(number_of_caps) FROM table_11585313_1 WHERE name = "Hans Blume"
What is the toatl number of caps where the name is Hans Blume?
CREATE TABLE table_11585313_1 (number_of_caps VARCHAR, name VARCHAR)
SELECT POSITION, COUNT(*) FROM match_season GROUP BY POSITION
Show the position of players and the corresponding number of players.
CREATE TABLE match_season (POSITION VARCHAR)
SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1
Find the first name and country code of the oldest player.
CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR)
SELECT tie_no FROM table_name_34 WHERE attendance = "4,658"
What is the Tie no of the game with an Attendance of 4,658?
CREATE TABLE table_name_34 (tie_no VARCHAR, attendance VARCHAR)
SELECT visiting_team FROM table_name_24 WHERE week < 12 AND stadium = "sports authority field at mile high"
Who was the visiting team on weeks under 12 and at Sports Authority Field at Mile High?
CREATE TABLE table_name_24 (visiting_team VARCHAR, week VARCHAR, stadium VARCHAR)
SELECT COUNT(grid) FROM table_17271495_1 WHERE points = "30"
Name the total number of grid for 30
CREATE TABLE table_17271495_1 (grid VARCHAR, points VARCHAR)
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "CHRISSY" AND T1.lastname = "NABOZNY"
How many teachers does the student named CHRISSY NABOZNY have?
CREATE TABLE teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT position FROM table_23619005_3 WHERE cfl_team = "Saskatchewan Roughriders"
What was the position of the player from Saskatchewan Roughriders?
CREATE TABLE table_23619005_3 (position VARCHAR, cfl_team VARCHAR)
SELECT result FROM table_22736523_1 WHERE song_choice = "Coba"
What is the result if Coba is the song choice?
CREATE TABLE table_22736523_1 (result VARCHAR, song_choice VARCHAR)
SELECT second FROM table_name_58 WHERE team = "north america" AND country = "canada" AND home = "edmonton"
Who is the second of the North America team from Edmonton, Canada?
CREATE TABLE table_name_58 (second VARCHAR, home VARCHAR, team VARCHAR, country VARCHAR)
SELECT venue FROM table_name_41 WHERE date = "1 march 2006"
Which Venue has a Date of 1 march 2006?
CREATE TABLE table_name_41 (venue VARCHAR, date VARCHAR)
SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4
Show the facility codes of apartments with more than 4 bedrooms.
CREATE TABLE Apartment_Facilities (facility_code VARCHAR, apt_id VARCHAR); CREATE TABLE Apartments (apt_id VARCHAR, bedroom_count INTEGER)
SELECT vale_royal FROM table_name_20 WHERE religion = "jewish"
WHAT IS THE VALE ROYAL WITH THE JEWISH RELIGION?
CREATE TABLE table_name_20 (vale_royal VARCHAR, religion VARCHAR)
SELECT COUNT(pick__number) FROM table_name_67 WHERE college = "usc"
How many picks did the College of USC wind up getting?
CREATE TABLE table_name_67 (pick__number VARCHAR, college VARCHAR)
SELECT team FROM table_11959669_6 WHERE location_attendance = "US Airways Center 18,422"
What is the team when location attendance is us airways center 18,422?
CREATE TABLE table_11959669_6 (team VARCHAR, location_attendance VARCHAR)
SELECT opponent FROM table_name_24 WHERE week < 8 AND date = "october 9, 1960"
Who was the opponent in a week less than 8 on October 9, 1960?
CREATE TABLE table_name_24 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT directx FROM table_19161046_1 WHERE code_name = "RV770 PRO" AND core___mhz__ > 650.0
What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz?
CREATE TABLE table_19161046_1 (directx VARCHAR, code_name VARCHAR, core___mhz__ VARCHAR)
SELECT MIN(bronze) FROM table_name_72 WHERE silver = "13"
What is the lowest bronze total that has a silver total of 13 medals?
CREATE TABLE table_name_72 (bronze INTEGER, silver VARCHAR)
SELECT high_points FROM table_30049462_5 WHERE team = "Detroit"
in the detroit team who made the high points
CREATE TABLE table_30049462_5 (high_points VARCHAR, team VARCHAR)
SELECT geez FROM table_26919_7 WHERE proto_semitic = "*bayt-"
If the proto-semitic is *bayt-, what are the geez?
CREATE TABLE table_26919_7 (geez VARCHAR, proto_semitic VARCHAR)
SELECT 2012 FROM table_name_22 WHERE 2008 = "479"
What is the 2012 value with 479 in 2008?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT course FROM table_name_21 WHERE type = "flat stage" AND date = "4 september"
Which course has a flat stage on 4 September?
CREATE TABLE table_name_21 (course VARCHAR, type VARCHAR, date VARCHAR)
SELECT launch_site FROM table_name_74 WHERE satellite = "gps iiia-2"
What was the launch site for a satellite of GPS IIIA-2?
CREATE TABLE table_name_74 (launch_site VARCHAR, satellite VARCHAR)
SELECT rating FROM table_28283535_4 WHERE episode = "1.04"
What is the rating of episode 1.04?
CREATE TABLE table_28283535_4 (rating VARCHAR, episode VARCHAR)
SELECT city FROM table_name_98 WHERE airport = "newcastle airport"
Which city holds Newcastle Airport?
CREATE TABLE table_name_98 (city VARCHAR, airport VARCHAR)
SELECT date FROM table_name_48 WHERE no_built < 10 AND loco_nos = "31-35"
On what date were less than 10 built with a locomotive number of 31-35?
CREATE TABLE table_name_48 (date VARCHAR, no_built VARCHAR, loco_nos VARCHAR)
SELECT visiting_team FROM table_name_59 WHERE date = "october 4"
Tell me the visiting team for october 4
CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR)
SELECT latin FROM table_name_64 WHERE virtue = "temperance"
What is the Virtue of Temperance in Latin?
CREATE TABLE table_name_64 (latin VARCHAR, virtue VARCHAR)
SELECT winning_song FROM table_name_32 WHERE debut_album = "in progress"
Which winning song had a debut album in progress?
CREATE TABLE table_name_32 (winning_song VARCHAR, debut_album VARCHAR)
SELECT length FROM table_name_41 WHERE stage = "ss6"
Name the length for stage of ss6
CREATE TABLE table_name_41 (length VARCHAR, stage VARCHAR)
SELECT release_title FROM table_27932399_1 WHERE artist = "Heavy Winged"
What was the name of the album released by Heavy Winged?
CREATE TABLE table_27932399_1 (release_title VARCHAR, artist VARCHAR)
SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32
What player has over 1 first apperance and over 32 first team goals?
CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR)
SELECT COUNT(week) FROM table_name_12 WHERE kickoff_time = "cbs 1:00pm" AND attendance = "60,473"
What week number was the kickoff time cbs 1:00pm, with 60,473 people in attendance?
CREATE TABLE table_name_12 (week VARCHAR, kickoff_time VARCHAR, attendance VARCHAR)
SELECT player FROM table_name_88 WHERE place = "t5" AND score = 69 - 72 = 141
What is Player, when Place is "T5", and when Score is "69-72=141"?
CREATE TABLE table_name_88 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT highest_rank FROM table_name_53 WHERE name = "takatōriki"
What rank is Takatōriki?
CREATE TABLE table_name_53 (highest_rank VARCHAR, name VARCHAR)
SELECT AVG(silver) FROM table_name_6 WHERE gold = 2 AND rank > 1
what is the amount of silver when gold is 2 and the rank is more than 1?
CREATE TABLE table_name_6 (silver INTEGER, gold VARCHAR, rank VARCHAR)
SELECT hdtv FROM table_name_77 WHERE television_service = "rai nettuno sat uno"
What is the HDTV for the Rai Nettuno Sat Uno Television service?
CREATE TABLE table_name_77 (hdtv VARCHAR, television_service VARCHAR)
SELECT week_2 FROM table_name_99 WHERE week_4 = "miranda jordan"
What was the week 2 prior to the when Miranda Jordan was the week 4?
CREATE TABLE table_name_99 (week_2 VARCHAR, week_4 VARCHAR)
SELECT SUM(total) FROM table_name_81 WHERE year_s__won = "1966 , 1970 , 1978" AND to_par < 4
What is the sum of Total, when Year(s) Won is "1966 , 1970 , 1978", and when To par is less than 4?
CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR)
SELECT MAX(game) FROM table_name_83 WHERE record = "4-3-6"
Which Game is the highest one that has a Record of 4-3-6?
CREATE TABLE table_name_83 (game INTEGER, record VARCHAR)
SELECT place FROM table_name_28 WHERE player = "mark o'meara"
What is the place of Mark O'Meara?
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)
SELECT MIN(valves) FROM table_21021796_1
What is the greatest number of valves?
CREATE TABLE table_21021796_1 (valves INTEGER)
SELECT constructor FROM table_name_19 WHERE laps < 62 AND time_retired = "gearbox" AND grid > 1 AND driver = "pedro diniz"
What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?
CREATE TABLE table_name_19 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT winner FROM table_name_21 WHERE trainer = "no race"
What horse won with a trainer of "no race"?
CREATE TABLE table_name_21 (winner VARCHAR, trainer VARCHAR)
SELECT partner FROM table_name_23 WHERE surface = "hard" AND date = "18 april 2011"
What is the name of a partner that played on a hard surface on 18 April 2011?
CREATE TABLE table_name_23 (partner VARCHAR, surface VARCHAR, date VARCHAR)
SELECT MIN(laid_down) FROM table_12592074_1
What is the minimum laid down?
CREATE TABLE table_12592074_1 (laid_down INTEGER)
SELECT players FROM table_27533947_1 WHERE grand_average = "12.76-202"
If the grand average is 12.76-202, who is the player?
CREATE TABLE table_27533947_1 (players VARCHAR, grand_average VARCHAR)
SELECT d_43 FROM table_name_45 WHERE d_48 = "r 28"
Name the D 43 and D 48 of r 28
CREATE TABLE table_name_45 (d_43 VARCHAR, d_48 VARCHAR)
SELECT score FROM table_name_7 WHERE to_par = "–1" AND player = "mick soli"
Which Score has a To par of –1, and a Player of mick soli?
CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT MAX(rebounds) FROM table_22824319_3 WHERE player = "Larry Smith"
Name the most rebounds for larry smith
CREATE TABLE table_22824319_3 (rebounds INTEGER, player VARCHAR)
SELECT tie_no FROM table_name_13 WHERE away_team = "barnet"
What is the Tie no listed for the Away team of Barnet?
CREATE TABLE table_name_13 (tie_no VARCHAR, away_team VARCHAR)
SELECT game_site FROM table_25380472_2 WHERE team_record = "1–6"
What game sites are where the team record is 1–6?
CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR)
SELECT catalog FROM table_name_34 WHERE region = "world"
Which catalog value has a region of world?
CREATE TABLE table_name_34 (catalog VARCHAR, region VARCHAR)
SELECT SUM(swimsuit) FROM table_name_25 WHERE evening_gown > 9.257 AND interview = 9.357
What is the number for swimsuit when the evening gown number is larger than 9.257 and the interview number is 9.357?
CREATE TABLE table_name_25 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR)
SELECT AVG(crimean_war) FROM table_name_49 WHERE second_afghan_war = "1" AND school = "hamblin and porter's school, cork"
What is the average Crimean War with a Second Afghan War totaling 1, and a School of hamblin and porter's school, cork?
CREATE TABLE table_name_49 (crimean_war INTEGER, second_afghan_war VARCHAR, school VARCHAR)
SELECT nhl_team FROM table_1213511_7 WHERE college_junior_club_team = "University of Notre Dame (NCAA)"
Which nhl team has a college/junior/club team named university of notre dame (ncaa)
CREATE TABLE table_1213511_7 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT broadcast_date FROM table_29135051_3 WHERE guest_s_ = "Michael McIntyre and Alex James"
when was the episode guest starring michael mcintyre and alex james broadcasted
CREATE TABLE table_29135051_3 (broadcast_date VARCHAR, guest_s_ VARCHAR)
SELECT home_ground FROM table_2522473_1 WHERE seasons = 27 AND home_city = "Trondheim"
What is the home ground for the team whose home city is Trondheim with 27 seasons?
CREATE TABLE table_2522473_1 (home_ground VARCHAR, seasons VARCHAR, home_city VARCHAR)
SELECT round FROM table_name_38 WHERE club = "bečej"
What is the round of club bečej?
CREATE TABLE table_name_38 (round VARCHAR, club VARCHAR)
SELECT details FROM table_name_71 WHERE name = "john buchanan"
What are the details for John Buchanan?
CREATE TABLE table_name_71 (details VARCHAR, name VARCHAR)
SELECT AVG(crowd) FROM table_name_33 WHERE away_team = "north melbourne"
What is the average crowd size when North Melbourne is the away team?
CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR)
SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled"
Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?
CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT party FROM table_name_57 WHERE incumbent = "virginia foxx"
What is the party affiliation of Virginia Foxx?
CREATE TABLE table_name_57 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(withdrawn) FROM table_name_93 WHERE number > 5
How many items withdrawn had numbers over 5?
CREATE TABLE table_name_93 (withdrawn VARCHAR, number INTEGER)
SELECT class_aA FROM table_14747043_1 WHERE class_a = "Graford"
Which is the class AA when graford was the class A
CREATE TABLE table_14747043_1 (class_aA VARCHAR, class_a VARCHAR)
SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = "tyler haws" AND year = 2009
Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school?
CREATE TABLE table_name_89 (high_school VARCHAR, utah_mr_basketball VARCHAR, year VARCHAR)
SELECT COUNT(touchdowns) FROM table_20938922_2 WHERE yards = 145
The player who had 145 yards had how many touchdowns?
CREATE TABLE table_20938922_2 (touchdowns VARCHAR, yards VARCHAR)
SELECT score FROM table_name_84 WHERE partner = "tathiana garbin"
what score is it with tathiana garbin as partner?
CREATE TABLE table_name_84 (score VARCHAR, partner VARCHAR)
SELECT time_retired FROM table_name_30 WHERE grid = 9
What is the time/retired for grid 9?
CREATE TABLE table_name_30 (time_retired VARCHAR, grid VARCHAR)
SELECT company FROM table_name_62 WHERE sales__billion_$_ > 195.34 AND rank > 7 AND profits__billion_$_ > 11.29 AND market_value__billion_$_ > 198.14
What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?
CREATE TABLE table_name_62 (company VARCHAR, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR, sales__billion_$_ VARCHAR, rank VARCHAR)
SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:articles with hcards"
Which game is named tsegay kebede category:articles with hcards?
CREATE TABLE table_name_70 (games VARCHAR, name VARCHAR)
SELECT MIN(10), 000 + _places FROM table_22916979_5 WHERE principal_city = "Louisville"
Name the least 10,000+ places for louisville
CREATE TABLE table_22916979_5 (_places VARCHAR, principal_city VARCHAR)
SELECT crew_chief FROM table_name_36 WHERE team = "tristar motorsports" AND driver_s_ = "eric mcclure"
Who is Eric McClure's and Tristar Motorsports' crew chief?
CREATE TABLE table_name_36 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR)
SELECT language FROM table_14160327_4 WHERE genre = "Glam"
What language for the glam genre?
CREATE TABLE table_14160327_4 (language VARCHAR, genre VARCHAR)
SELECT debut FROM table_1557974_1 WHERE birthplace = "Nara"
What are the debut year for wrestlers born in Nara?
CREATE TABLE table_1557974_1 (debut VARCHAR, birthplace VARCHAR)
SELECT conserved_in_mus_musculus FROM table_26708105_2 WHERE sequence = "aAGTAct"
What is the conserved in mus musculus listing for sequence aagtact?
CREATE TABLE table_26708105_2 (conserved_in_mus_musculus VARCHAR, sequence VARCHAR)