answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT parallel_bars FROM table_18662026_1 WHERE rings = "60.500"
If the rings are 60.500, what is the parallel bars number?
CREATE TABLE table_18662026_1 (parallel_bars VARCHAR, rings VARCHAR)
SELECT AVG(third) FROM table_name_4 WHERE runners_up = 0 AND winners = 0 AND club = "far rabat"
Which Third has Runners-up of 0, and Winners of 0, and a Club of far rabat?
CREATE TABLE table_name_4 (third INTEGER, club VARCHAR, runners_up VARCHAR, winners VARCHAR)
SELECT quarterback FROM table_14389782_2 WHERE winning_pct = ".792"
Who is the quarter back for a winning pct of .792
CREATE TABLE table_14389782_2 (quarterback VARCHAR, winning_pct VARCHAR)
SELECT MIN(left_st_louis) FROM table_21564794_3 WHERE venue = "Scottrade Center"
What year did the team who played at the Scottrade Center leave the city?
CREATE TABLE table_21564794_3 (left_st_louis INTEGER, venue VARCHAR)
SELECT DISTINCT grade FROM list WHERE classroom = 105
Find the grade studying in room 105.
CREATE TABLE list (grade VARCHAR, classroom VARCHAR)
SELECT MAX(first_elected) FROM table_name_56 WHERE district = "pennsylvania 10"
What is the greatest first elected for Pennsylvania 10?
CREATE TABLE table_name_56 (first_elected INTEGER, district VARCHAR)
SELECT COUNT(losses) FROM table_name_62 WHERE points = 11
How many losses have 11 points?
CREATE TABLE table_name_62 (losses VARCHAR, points VARCHAR)
SELECT district FROM table_name_71 WHERE former_local_authority = "south cambridgeshire rural district"
What district is the parish who had the South Cambridgeshire rural district as the former local authority?
CREATE TABLE table_name_71 (district VARCHAR, former_local_authority VARCHAR)
SELECT date FROM table_name_55 WHERE name = "vanderbilt cup"
When is vanderbilt cup in?
CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR)
SELECT open_source_movie FROM table_name_90 WHERE cc_license = "by-nc-sa 1.0"
What open source movie has a CC License of by-nc-sa 1.0?
CREATE TABLE table_name_90 (open_source_movie VARCHAR, cc_license VARCHAR)
SELECT original_name FROM table_name_42 WHERE singer_s_ = "brad kavanagh"
What was the original name for the song performed by Brad Kavanagh?
CREATE TABLE table_name_42 (original_name VARCHAR, singer_s_ VARCHAR)
SELECT description FROM table_28652521_1 WHERE storage_case = "cardboard box" AND for_shank_type = "low"
What are all the different descriptions for the buttonholer with cardboard box for storage and a low shank type?
CREATE TABLE table_28652521_1 (description VARCHAR, storage_case VARCHAR, for_shank_type VARCHAR)
SELECT AVG(year_won) FROM table_name_6 WHERE finish = "t24" AND country = "england"
Which year won has a Finish of t24, and a Country of england?
CREATE TABLE table_name_6 (year_won INTEGER, finish VARCHAR, country VARCHAR)
SELECT name, job FROM Person ORDER BY name
list the name, job title of all people ordered by their names.
CREATE TABLE Person (name VARCHAR, job VARCHAR)
SELECT event FROM table_name_88 WHERE quarterfinal = "zhamash l 1–2"
What event had zhamash l 1–2 in the quarterfinal?
CREATE TABLE table_name_88 (event VARCHAR, quarterfinal VARCHAR)
SELECT MAX(season) FROM table_29471472_1 WHERE team = "Autosport Academy"
What season was the team autosport academy?
CREATE TABLE table_29471472_1 (season INTEGER, team VARCHAR)
SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6
Which Byes have an Against smaller than 1466, and Losses smaller than 6?
CREATE TABLE table_name_91 (byes VARCHAR, against VARCHAR, losses VARCHAR)
SELECT main_cast_seasons FROM table_12441518_1 WHERE portrayed_by = "Kevin Jonas"
What seasons does Kevin Jonas appear?
CREATE TABLE table_12441518_1 (main_cast_seasons VARCHAR, portrayed_by VARCHAR)
SELECT MAX(took_office) FROM table_name_22 WHERE left_office = "1998"
What was the greatest Took Office dates that Left Office in 1998?
CREATE TABLE table_name_22 (took_office INTEGER, left_office VARCHAR)
SELECT MAX(capacity) FROM table_name_93 WHERE head_coach = "ali asghar modir roosta"
What is the Capacity of the Venue of Head Coach Ali Asghar Modir Roosta?
CREATE TABLE table_name_93 (capacity INTEGER, head_coach VARCHAR)
SELECT sanskrt FROM table_name_76 WHERE chinese = "摩拏羅 / mónáluó"
Which SANSKRT has a CHINESE of 摩拏羅 / mónáluó?
CREATE TABLE table_name_76 (sanskrt VARCHAR, chinese VARCHAR)
SELECT competition FROM table_name_12 WHERE date = "may 2, 1993"
Which Competition has a Date of may 2, 1993?
CREATE TABLE table_name_12 (competition VARCHAR, date VARCHAR)
SELECT english_name FROM table_name_31 WHERE provider_national_government_ = "ministry of defense" AND abbreviation = "nda bōei-dai(防衛大)"
What is the english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)?
CREATE TABLE table_name_31 (english_name VARCHAR, provider_national_government_ VARCHAR, abbreviation VARCHAR)
SELECT opponent FROM table_name_12 WHERE week > 13
Who is the opponent for the game that occurred after week 13?
CREATE TABLE table_name_12 (opponent VARCHAR, week INTEGER)
SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY COUNT(*) DESC LIMIT 1
Which month has the most happy hours?
CREATE TABLE happy_hour (MONTH VARCHAR)
SELECT house_1950 FROM table_name_19 WHERE general_1950 = "general 1986"
What shows for House 1950 when the General 1950 is general 1986?
CREATE TABLE table_name_19 (house_1950 VARCHAR, general_1950 VARCHAR)
SELECT venue FROM table_name_78 WHERE result = "88–87"
What is the Venue when the result was 88–87?
CREATE TABLE table_name_78 (venue VARCHAR, result VARCHAR)
SELECT starter FROM table_14342592_7 WHERE touchdowns = 3
Was there a starter when 3 touchdowns were scored?
CREATE TABLE table_14342592_7 (starter VARCHAR, touchdowns VARCHAR)
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
What is the zip code of staff with first name as Janessa and last name as Sawayn lived?
CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT pole_position FROM table_26137666_3 WHERE circuit = "Castle Combe" AND winning_driver = "Robbie Kerr"
What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver?
CREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR)
SELECT constructor FROM table_name_21 WHERE time_retired = "+1.027"
What Constructor has a +1.027 Time/Retired?
CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR)
SELECT software FROM table_name_87 WHERE latest_stable_date__version_ = "0.6.1"
Name the software with the latest stable date of 0.6.1
CREATE TABLE table_name_87 (software VARCHAR, latest_stable_date__version_ VARCHAR)
SELECT class FROM table_name_36 WHERE quantity_made = "1" AND fleet_number_s_ = "406"
What class had 1 made and fleet number of 406?
CREATE TABLE table_name_36 (class VARCHAR, quantity_made VARCHAR, fleet_number_s_ VARCHAR)
SELECT MIN(height__m_) FROM table_22705586_1 WHERE date_of_birth = "17/08/75"
Name the height for date of birth being 17/08/75
CREATE TABLE table_22705586_1 (height__m_ INTEGER, date_of_birth VARCHAR)
SELECT AVG(attendance) FROM table_name_63 WHERE week = 15
What was average attendance during week 15?
CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR)
SELECT COUNT(grid) FROM table_name_24 WHERE time_retired = "+27.347"
Which grid has a time/retired of +27.347?
CREATE TABLE table_name_24 (grid VARCHAR, time_retired VARCHAR)
SELECT weekly_rank___number_ FROM table_name_53 WHERE share = 9 AND viewers__m_ = 9.42
What is the weekly rank for a share of 9 and 9.42 million viewers?
CREATE TABLE table_name_53 (weekly_rank___number_ VARCHAR, share VARCHAR, viewers__m_ VARCHAR)
SELECT original_west_end_performer FROM table_1901751_1 WHERE character = "Neville Craven"
Who is the original west end performer for the character Neville Craven?
CREATE TABLE table_1901751_1 (original_west_end_performer VARCHAR, character VARCHAR)
SELECT date FROM table_name_88 WHERE tournament = "greater greensboro chrysler classic"
What is the date of the Greater Greensboro Chrysler Classic?
CREATE TABLE table_name_88 (date VARCHAR, tournament VARCHAR)
SELECT COUNT(gold) FROM table_name_59 WHERE bronze > 27 AND total < 305
What is the total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?
CREATE TABLE table_name_59 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT SUM(term_expiration) FROM table_name_22 WHERE appointing_governor = "george pataki, republican" AND appointed > 2004
Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed larger than 2004?
CREATE TABLE table_name_22 (term_expiration INTEGER, appointing_governor VARCHAR, appointed VARCHAR)
SELECT drawn FROM table_name_34 WHERE points_against = "686"
What is Drawn, when Points Against is "686"?
CREATE TABLE table_name_34 (drawn VARCHAR, points_against VARCHAR)
SELECT roomName FROM Rooms WHERE basePrice > (SELECT AVG(basePrice) FROM Rooms)
Find the name of rooms whose price is higher than the average price.
CREATE TABLE Rooms (roomName VARCHAR, basePrice INTEGER)
SELECT date FROM table_name_51 WHERE away_team = "north melbourne"
What day is north melbourne the away side?
CREATE TABLE table_name_51 (date VARCHAR, away_team VARCHAR)
SELECT net_profit__us_$m_ FROM table_18077713_1 WHERE revenue__us_$million_ = "150.6"
How much is the net profit when the revenue is 150.6 million dollars?
CREATE TABLE table_18077713_1 (net_profit__us_$m_ VARCHAR, revenue__us_$million_ VARCHAR)
SELECT COUNT(result) FROM table_21091127_1 WHERE game = 5
How many results have a game of 5?
CREATE TABLE table_21091127_1 (result VARCHAR, game VARCHAR)
SELECT artist FROM table_name_51 WHERE place > 1 AND points = 229
Which artist had a place larger than 1 with 229 points?
CREATE TABLE table_name_51 (artist VARCHAR, place VARCHAR, points VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_43 WHERE population__2011_ = 200
What is the largest ethnic group in 2002 when the population is 200?
CREATE TABLE table_2562572_43 (largest_ethnic_group__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT declination___j2000__ FROM table_name_90 WHERE ngc_number > 3593
what is the declination (j2000) when the ngc number is higher than 3593?
CREATE TABLE table_name_90 (declination___j2000__ VARCHAR, ngc_number INTEGER)
SELECT nfl_team FROM table_name_91 WHERE overall > 118 AND pick > 9 AND round > 5 AND position = "de"
Which NFL team chose a position of DE when the pick was larger than 9, after round 5, and the overal was larger than 118?
CREATE TABLE table_name_91 (nfl_team VARCHAR, position VARCHAR, round VARCHAR, overall VARCHAR, pick VARCHAR)
SELECT original_air_date FROM table_23403578_3 WHERE prod_code = "213"
When did the episode with production code 213 air for the first time?
CREATE TABLE table_23403578_3 (original_air_date VARCHAR, prod_code VARCHAR)
SELECT prefecture FROM table_2518850_4 WHERE city_town = "Susaki"
In what prefecture is Susaki located?
CREATE TABLE table_2518850_4 (prefecture VARCHAR, city_town VARCHAR)
SELECT goals FROM table_name_92 WHERE assists = "5"
What are the goals of the assists of 5?
CREATE TABLE table_name_92 (goals VARCHAR, assists VARCHAR)
SELECT name FROM table_name_71 WHERE event = "men's featherweight" AND sport = "weightlifting"
Tell me the name for men's featherweight and sport of weightlifting
CREATE TABLE table_name_71 (name VARCHAR, event VARCHAR, sport VARCHAR)
SELECT country FROM table_name_38 WHERE score = 72 - 72 - 67 = 211
What was the nationality of the player with a score of 72-72-67=211?
CREATE TABLE table_name_38 (country VARCHAR, score VARCHAR)
SELECT district FROM table_name_26 WHERE member_senator = "ulysses currie"
What district for ulysses currie?
CREATE TABLE table_name_26 (district VARCHAR, member_senator VARCHAR)
SELECT place FROM table_name_78 WHERE player = "mark o'meara"
WHAT IS THE PLACE WITH PLAYER mark o'meara?
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
SELECT versus FROM table_name_37 WHERE player = "ko otieno" AND venue = "bloemfontein"
What is the Versus with a Player with ko otieno, with Venue with bloemfontein?
CREATE TABLE table_name_37 (versus VARCHAR, player VARCHAR, venue VARCHAR)
SELECT ihsaa_class FROM table_name_80 WHERE mascot = "raiders"
Which IHSAA class has a mascot of the Raiders?
CREATE TABLE table_name_80 (ihsaa_class VARCHAR, mascot VARCHAR)
SELECT region FROM table_25042332_16 WHERE below_50_percentage_of_median_income = "18.6%"
In what region do 18.6% of the people make less than 50% of the median income?
CREATE TABLE table_25042332_16 (region VARCHAR, below_50_percentage_of_median_income VARCHAR)
SELECT number FROM table_name_2 WHERE builder = "baldwin locomotive works" AND works_number = 40864
Baldwin Locomotive Works, also with works number 40864, is listed as what number?
CREATE TABLE table_name_2 (number VARCHAR, builder VARCHAR, works_number VARCHAR)
SELECT competition FROM table_name_19 WHERE result = "win" AND score = "3-1"
What is the competition that had a win result and a score of 3-1?
CREATE TABLE table_name_19 (competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT date_in_service FROM table_24837750_1 WHERE county = "Musselshell"
When did the wind farm in Musselshell started service?
CREATE TABLE table_24837750_1 (date_in_service VARCHAR, county VARCHAR)
SELECT COUNT(opponents) FROM table_20745444_1 WHERE opponent = "Duke"
How many times were Duke the opponents?
CREATE TABLE table_20745444_1 (opponents VARCHAR, opponent VARCHAR)
SELECT company FROM table_name_37 WHERE type = "joint venture" AND principal_activities = "cargo airline" AND incorporated_in = "china"
Which company's type is joint venture, and has principle activities listed as Cargo Airline and an incorporation of China?
CREATE TABLE table_name_37 (company VARCHAR, incorporated_in VARCHAR, type VARCHAR, principal_activities VARCHAR)
SELECT COUNT(us_air_date) FROM table_22353769_3 WHERE episode__number = 11
How many episodes have episode #11?
CREATE TABLE table_22353769_3 (us_air_date VARCHAR, episode__number VARCHAR)
SELECT date FROM table_name_17 WHERE record = "43-34"
What date had a record of 43-34?
CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
SELECT MIN(points) FROM table_name_92 WHERE against = 20 AND lost < 1
What is the lowest Points with an against of 20 and less than 1 lost?
CREATE TABLE table_name_92 (points INTEGER, against VARCHAR, lost VARCHAR)
SELECT score FROM table_name_28 WHERE opponent = "algeria" AND location = "porto-novo"
What is the score from the game where Algeria is the opponent at Porto-Novo?
CREATE TABLE table_name_28 (score VARCHAR, opponent VARCHAR, location VARCHAR)
SELECT result FROM table_name_5 WHERE date = "february 22"
What was the result and score of the game on February 22?
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT combativity_award FROM table_name_13 WHERE winner = "luis león sánchez"
Name the combativity award with winner of luis león sánchez
CREATE TABLE table_name_13 (combativity_award VARCHAR, winner VARCHAR)
SELECT document_type_code FROM documents WHERE document_name = "David CV"
What is the type of the document named "David CV"?
CREATE TABLE documents (document_type_code VARCHAR, document_name VARCHAR)
SELECT drawn FROM table_name_79 WHERE try_bp = "1"
What is the number drawn when the try BP is 1?
CREATE TABLE table_name_79 (drawn VARCHAR, try_bp VARCHAR)
SELECT MIN(last_1_4) FROM table_name_30 WHERE time = "1:53.2" AND odds = "*1.30"
What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?
CREATE TABLE table_name_30 (last_1_4 INTEGER, time VARCHAR, odds VARCHAR)
SELECT country FROM table_name_72 WHERE score = 71
From what country did someone score 71?
CREATE TABLE table_name_72 (country VARCHAR, score VARCHAR)
SELECT venue FROM table_name_45 WHERE date = "5 april 2000"
What is the venue of the match on 5 April 2000?
CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR)
SELECT region FROM table_name_23 WHERE label = "eyeball" AND catalogue = "7200222"
Which region has and eyeball label and catalogue 7200222?
CREATE TABLE table_name_23 (region VARCHAR, label VARCHAR, catalogue VARCHAR)
SELECT location FROM table_name_97 WHERE county = "71 st. joseph" AND school = "south bend washington"
Which location is in 71 St. Joseph county with South Bend Washington school?
CREATE TABLE table_name_97 (location VARCHAR, county VARCHAR, school VARCHAR)
SELECT home_team FROM table_name_78 WHERE venue = "kardinia park"
Who was the home team at Kardinia Park?
CREATE TABLE table_name_78 (home_team VARCHAR, venue VARCHAR)
SELECT team FROM table_name_87 WHERE name = "jiang tengyi"
Jiang Tengyi is on which team?
CREATE TABLE table_name_87 (team VARCHAR, name VARCHAR)
SELECT COUNT(round) FROM table_name_25 WHERE event = "200 miles of norisring"
Which Round has an Event of 200 miles of norisring?
CREATE TABLE table_name_25 (round VARCHAR, event VARCHAR)
SELECT won FROM table_1143966_1 WHERE standing = "2nd OHA" AND games = 62
How many games were won with 2nd oha was standing and there were 62 games?
CREATE TABLE table_1143966_1 (won VARCHAR, standing VARCHAR, games VARCHAR)
SELECT hdmi FROM table_name_29 WHERE codename = "trinity (valhalla)"
Does Trinity (valhalla) have HDMI?
CREATE TABLE table_name_29 (hdmi VARCHAR, codename VARCHAR)
SELECT ground FROM table_name_59 WHERE away_team = "sydney"
What was the ground for away team sydney?
CREATE TABLE table_name_59 (ground VARCHAR, away_team VARCHAR)
SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = "sumykhimprom"
What is the 2nd leg when second team is Sumykhimprom?
CREATE TABLE table_name_98 (team__number2 VARCHAR)
SELECT constructor FROM table_name_57 WHERE grid = 8
Tell me the constructor for grid of 8
CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR)
SELECT COUNT(successor) FROM table_1199219_2 WHERE district = "New York 20th"
How many successors were seated in the New York 20th district?
CREATE TABLE table_1199219_2 (successor VARCHAR, district VARCHAR)
SELECT high_assists FROM table_23285805_8 WHERE team = "Oklahoma City"
Who has the high assists when the team is Oklahoma City?
CREATE TABLE table_23285805_8 (high_assists VARCHAR, team VARCHAR)
SELECT tournament FROM table_name_38 WHERE 2011 = "nh"
Which Tournament was played in NH in 2011?
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT COUNT(*) FROM All_documents WHERE document_type_code = "CV" OR document_type_code = "BK"
Show the number of documents with document type code CV or BK.
CREATE TABLE All_documents (document_type_code VARCHAR)
SELECT COUNT(games_played) FROM table_25401874_1 WHERE name = "Lauren McGee"
How many games played catagories are there for Lauren McGee?
CREATE TABLE table_25401874_1 (games_played VARCHAR, name VARCHAR)
SELECT cfl_team FROM table_25085059_3 WHERE college = "McGill"
What team got a draft pick player from McGill?
CREATE TABLE table_25085059_3 (cfl_team VARCHAR, college VARCHAR)
SELECT rank FROM table_24489942_10 WHERE name = "Thomas Morgenstern"
Name the rank for thomas morgenstern
CREATE TABLE table_24489942_10 (rank VARCHAR, name VARCHAR)
SELECT MAX(attendance) FROM table_name_76 WHERE opponent = "phoenix coyotes"
WHAT IS THE HIGHEST ATTENDANCE FOR THE PHOENIX COYOTES?
CREATE TABLE table_name_76 (attendance INTEGER, opponent VARCHAR)
SELECT visitor FROM table_name_54 WHERE home = "philadelphia" AND series = "flyers lead 1–0"
WHo has a Home of philadelphia and a Series of flyers lead 1–0?
CREATE TABLE table_name_54 (visitor VARCHAR, home VARCHAR, series VARCHAR)
SELECT date_of_successors_formal_installation FROM table_2417330_3 WHERE successor = "Orville H. Browning (R)"
When did Orville H. Browning (r) succeed?
CREATE TABLE table_2417330_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)
SELECT population__percentage_of_eu FROM table_1606824_1 WHERE member_state = "Greece"
Name the population % of eu for greece
CREATE TABLE table_1606824_1 (population__percentage_of_eu VARCHAR, member_state VARCHAR)
SELECT driver_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "Superchips"
Name the drivers for superchips
CREATE TABLE table_2187178_1 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT specifically_stains FROM table_13570_1 WHERE cytoplasm = "Pink"
Pink cytoplasm is seen in a test that specifically stains what?
CREATE TABLE table_13570_1 (specifically_stains VARCHAR, cytoplasm VARCHAR)
SELECT MAX(grid) FROM table_name_10 WHERE laps < 44 AND constructor = "renault"
what is the highest grid when the laps is less than 44 and the constructor is renault?
CREATE TABLE table_name_10 (grid INTEGER, laps VARCHAR, constructor VARCHAR)