answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(score_final) FROM table_name_42 WHERE rank_final = 2 AND year < 2008
Which Score-Final has a Rank-Final of 2, and a Year smaller than 2008?
CREATE TABLE table_name_42 (score_final INTEGER, rank_final VARCHAR, year VARCHAR)
SELECT COUNT(s_no) FROM table_name_88 WHERE margin = "16 runs"
What is the total number of S No(s), when the Margin is 16 runs?
CREATE TABLE table_name_88 (s_no VARCHAR, margin VARCHAR)
SELECT round FROM table_name_18 WHERE record = "5-0"
Which round has the record of 5-0?
CREATE TABLE table_name_18 (round VARCHAR, record VARCHAR)
SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Viadana"
What was the aggregate score for the match won by Viadana?
CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR)
SELECT MAX(market_value__billion_) AS $_ FROM table_name_99 WHERE rank = "02 2" AND sales__billion_$_ > 113.1
What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?
CREATE TABLE table_name_99 (market_value__billion_ INTEGER, rank VARCHAR, sales__billion_$_ 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 ryuji_hijikata FROM table_name_72 WHERE block_a = "ryuji hijikata"
Tell me the Ryuji Hijikata for Block A of Ryuji Hijikata
CREATE TABLE table_name_72 (ryuji_hijikata VARCHAR, block_a VARCHAR)
SELECT venue FROM table_name_95 WHERE city = "durham"
What venue is in the city of Durham?
CREATE TABLE table_name_95 (venue VARCHAR, city VARCHAR)
SELECT SUM(points) FROM table_name_57 WHERE played = 114 AND average = 0.982
Total points with 114 played and average of 0.982?
CREATE TABLE table_name_57 (points INTEGER, played VARCHAR, average VARCHAR)
SELECT location_attendance FROM table_name_4 WHERE record = "35-28"
What is the location/ attendance for a 35-28 record?
CREATE TABLE table_name_4 (location_attendance VARCHAR, record VARCHAR)
SELECT district FROM table_1342149_38 WHERE incumbent = "Paul B. Dague"
Which district had Paul B. Dague as the incumbent?
CREATE TABLE table_1342149_38 (district VARCHAR, incumbent VARCHAR)
SELECT singer_s_ FROM table_29135051_2 WHERE ratings = "1.45m"
Name the singer for 1.45m
CREATE TABLE table_29135051_2 (singer_s_ VARCHAR, ratings VARCHAR)
SELECT score FROM table_name_38 WHERE attendance < 848 AND home_team = "crowborough athletic"
The game with home team Crowborough Athletic, with an attendance less than 848 had what as the score?
CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR, home_team VARCHAR)
SELECT director FROM table_25800134_12 WHERE airdate = "September 25, 1967"
Who directed the episode that aired on September 25, 1967?
CREATE TABLE table_25800134_12 (director VARCHAR, airdate VARCHAR)
SELECT outcome FROM table_name_51 WHERE opponent = "juan ignacio chela"
What was the outcome of the match against Juan Ignacio Chela?
CREATE TABLE table_name_51 (outcome VARCHAR, opponent VARCHAR)
SELECT record FROM table_23248940_6 WHERE game = 11
What is every record for game 11?
CREATE TABLE table_23248940_6 (record VARCHAR, game VARCHAR)
SELECT result FROM table_name_4 WHERE week = 1
What was the result of the game on week 1?
CREATE TABLE table_name_4 (result VARCHAR, week VARCHAR)
SELECT school_club_team FROM table_name_15 WHERE round > 3 AND player = "sammy okpro"
Which School/Club Team has a Round larger than 3, and a Player of sammy okpro?
CREATE TABLE table_name_15 (school_club_team VARCHAR, round VARCHAR, player VARCHAR)
SELECT AVG(2002) FROM table_name_88 WHERE country = "peru" AND 2007 > 1 OFFSET 200
What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200?
CREATE TABLE table_name_88 (country VARCHAR)
SELECT incumbent FROM table_19753079_4 WHERE result = "Lost renomination Republican hold"
Name the incumbent for lost renomination republican hold
CREATE TABLE table_19753079_4 (incumbent VARCHAR, result VARCHAR)
SELECT player FROM table_name_68 WHERE position = "defence" AND round < 5 AND nationality = "united states"
Which player from the United States plays defence and was chosen before round 5?
CREATE TABLE table_name_68 (player VARCHAR, nationality VARCHAR, position VARCHAR, round VARCHAR)
SELECT hanyu FROM table_name_59 WHERE area__km²_ = 19.3888
Which Hanya has an area of 19.3888?
CREATE TABLE table_name_59 (hanyu VARCHAR, area__km²_ VARCHAR)
SELECT country FROM table_name_78 WHERE year_s__won = "1962"
What is Country, when Year(s) Won is "1962"?
CREATE TABLE table_name_78 (country VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_247955_2 WHERE no = 7
What was the date for no. 7?
CREATE TABLE table_247955_2 (date VARCHAR, no VARCHAR)
SELECT COUNT(yards) FROM table_1037590_1 WHERE attempts = 348
How many years were there with 348 attempts?
CREATE TABLE table_1037590_1 (yards VARCHAR, attempts VARCHAR)
SELECT MIN(goals) FROM table_name_63 WHERE league = "major league soccer" AND season = "2005"
Which Major League Soccer team for the 2005 season has the lowest goals?
CREATE TABLE table_name_63 (goals INTEGER, league VARCHAR, season VARCHAR)
SELECT date FROM table_name_21 WHERE race_title = "lakeside"
Name the date for race title lakeside
CREATE TABLE table_name_21 (date VARCHAR, race_title VARCHAR)
SELECT Name FROM member WHERE Country = "United States" OR Country = "Canada"
Show the names of members whose country is "United States" or "Canada".
CREATE TABLE member (Name VARCHAR, Country VARCHAR)
SELECT result FROM table_name_74 WHERE date = "november 27, 1994"
What was the score of the Chiefs November 27, 1994 game?
CREATE TABLE table_name_74 (result VARCHAR, date VARCHAR)
SELECT MAX(season) FROM table_name_65 WHERE podiums = 0 AND races = 1 AND wins > 0
What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?
CREATE TABLE table_name_65 (season INTEGER, wins VARCHAR, podiums VARCHAR, races VARCHAR)
SELECT title FROM table_name_83 WHERE track = 7
What is the title of track 7?
CREATE TABLE table_name_83 (title VARCHAR, track VARCHAR)
SELECT date FROM table_name_93 WHERE record = "44-37"
What was the date when the Twins had a record of 44-37?
CREATE TABLE table_name_93 (date VARCHAR, record VARCHAR)
SELECT position FROM table_2508633_6 WHERE college = "Delaware"
Name the position for delaware
CREATE TABLE table_2508633_6 (position VARCHAR, college VARCHAR)
SELECT administration FROM table_name_21 WHERE division = "ykkönen (first division)" AND position = "1st" AND season = 1996
What is the administration when the division was Ykkönen (first division), and they were in the 1st position in 1996?
CREATE TABLE table_name_21 (administration VARCHAR, season VARCHAR, division VARCHAR, position VARCHAR)
SELECT english_title FROM table_name_17 WHERE director = "jean-pierre jeunet"
Name the title of jean-pierre jeunet
CREATE TABLE table_name_17 (english_title VARCHAR, director VARCHAR)
SELECT status FROM table_name_40 WHERE name = "cathayopterus"
What is the status of the pterosaur named Cathayopterus?
CREATE TABLE table_name_40 (status VARCHAR, name VARCHAR)
SELECT AVG(s_no) FROM table_name_10 WHERE opponent = "sri lanka"
what is the number of people in sri lanka
CREATE TABLE table_name_10 (s_no INTEGER, opponent VARCHAR)
SELECT minister FROM table_name_46 WHERE term_in_office = "307 days"
Who was the Minister that served for 307 days?
CREATE TABLE table_name_46 (minister VARCHAR, term_in_office VARCHAR)
SELECT rated_power FROM table_name_52 WHERE finish_construction = "may 10, 1978"
What is the rated power for the reactor that ended construction on May 10, 1978?
CREATE TABLE table_name_52 (rated_power VARCHAR, finish_construction VARCHAR)
SELECT year_s__of_manufacture FROM table_name_26 WHERE type = "1b n2" AND quantity = 10
Which Year(s) of manufacture has a Type of 1b n2, and a Quantity of 10?
CREATE TABLE table_name_26 (year_s__of_manufacture VARCHAR, type VARCHAR, quantity VARCHAR)
SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION HAVING COUNT(*) >= 2
Show all the locations with at least two cinemas with capacity above 300.
CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
SELECT MIN(year) FROM table_name_99 WHERE play_by_play = "al michaels" AND sideline_reporter_s_ = "lesley visser and dan fouts"
What's the earliest year that Al Michaels was the play-by-play commentator, in which Lesley Visser and Dan Fouts were also sideline reporters?
CREATE TABLE table_name_99 (year INTEGER, play_by_play VARCHAR, sideline_reporter_s_ VARCHAR)
SELECT player FROM table_name_50 WHERE position = "centre"
Which player is a centre?
CREATE TABLE table_name_50 (player VARCHAR, position VARCHAR)
SELECT MAX(bronze) FROM table_name_69 WHERE silver > 0 AND rank > 3
What is the highest number of bronze when silver is larger than 0, rank is larger than 3?
CREATE TABLE table_name_69 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT COUNT(*) FROM Ref_colors WHERE NOT color_code IN (SELECT color_code FROM products)
How many colors are never used by any product?
CREATE TABLE products (color_code VARCHAR); CREATE TABLE Ref_colors (color_code VARCHAR)
SELECT to_par FROM table_name_74 WHERE place = "t10" AND score = 67 - 73 = 140
What To par has a Place of t10, and a Score of 67-73=140?
CREATE TABLE table_name_74 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT SUM(swimsuit) FROM table_name_77 WHERE evening_gown < 8.77 AND state = "missouri" AND average < 8.823
What is the sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823?
CREATE TABLE table_name_77 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR)
SELECT result FROM table_name_97 WHERE attendance = "63,443"
Which stadium can hold 63,443 people?
CREATE TABLE table_name_97 (result VARCHAR, attendance VARCHAR)
SELECT party FROM table_1341423_40 WHERE district = "South Carolina 4"
what is the party for the district south carolina 4?
CREATE TABLE table_1341423_40 (party VARCHAR, district VARCHAR)
SELECT born_died FROM table_name_8 WHERE entered_office = "13 september 1229"
What is the born-died that has office of 13 September 1229 as the entered?
CREATE TABLE table_name_8 (born_died VARCHAR, entered_office 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 round FROM table_name_23 WHERE winning_driver = "jonathan bomarito"
Which round did jonathan bomarito win?
CREATE TABLE table_name_23 (round VARCHAR, winning_driver VARCHAR)
SELECT home_team AS score FROM table_name_98 WHERE home_team = "melbourne"
What is the Home team score for the Home team of Melbourne?
CREATE TABLE table_name_98 (home_team VARCHAR)
SELECT MAX(viewers__millions_) FROM table_name_78 WHERE episode_number > 10 AND rating < 2
WHAT IS THE NUMBER OF VIEWERS WITH EPISODE LARGER THAN 10, RATING SMALLER THAN 2?
CREATE TABLE table_name_78 (viewers__millions_ INTEGER, episode_number VARCHAR, rating VARCHAR)
SELECT g_name, rating FROM genre ORDER BY g_name
List the names of all genres in alphabetical oder, together with its ratings.
CREATE TABLE genre (g_name VARCHAR, rating VARCHAR)
SELECT SUM(Last) AS runners_up FROM table_name_63 WHERE club = "dempo sc"
What is the number of Last Runners-up that has the club name of dempo sc?
CREATE TABLE table_name_63 (Last INTEGER, club VARCHAR)
SELECT conmebol_1995 FROM table_name_61 WHERE team = "river plate"
Which CONMEBOL 1995 has river plate team?
CREATE TABLE table_name_61 (conmebol_1995 VARCHAR, team VARCHAR)
SELECT COUNT(tournament) FROM table_name_89 WHERE total > 0 AND team = "texas"
How many tournament titles for texas with over 0 total?
CREATE TABLE table_name_89 (tournament VARCHAR, total VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_17 WHERE site = "homewood field" AND score = "5-8"
Who was the Opponent at Homewood Field with a Score of 5-8?
CREATE TABLE table_name_17 (opponent VARCHAR, site VARCHAR, score VARCHAR)
SELECT system FROM table_name_15 WHERE actual_version = "9.0"
Which System has an Actual Version 9.0?
CREATE TABLE table_name_15 (system VARCHAR, actual_version VARCHAR)
SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = "155"
How many datas were recorded on January 15-16 if August 21-22 is 155?
CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, august_21_22 VARCHAR)
SELECT MIN(tied) FROM table_15829930_5
Name the least tied
CREATE TABLE table_15829930_5 (tied INTEGER)
SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r"
What is the 2007 value with a 2r in 2012 and 1r in 2002?
CREATE TABLE table_name_53 (Id VARCHAR)
SELECT AVG(match) FROM table_name_65 WHERE home_away = "away" AND opponent_team = "perak fa (malaysia)"
What is the average match when the singapore armed forces played away against perak fa (malaysia)?
CREATE TABLE table_name_65 (match INTEGER, home_away VARCHAR, opponent_team VARCHAR)
SELECT 2008 FROM table_name_31 WHERE 2009 = "14.2%"
What 2008 has 14.2% as the 2009?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT district FROM table_name_89 WHERE result = "retired republican hold" AND incumbent = "rufus p. spalding"
wWhich district has a retired republican hold with an incumbent of rufus p. spalding?
CREATE TABLE table_name_89 (district VARCHAR, result VARCHAR, incumbent VARCHAR)
SELECT player FROM table_name_16 WHERE years_in_orlando = "2005"
Who was the Player that spent the Year 2005 in Orlando?
CREATE TABLE table_name_16 (player VARCHAR, years_in_orlando VARCHAR)
SELECT MIN(total) FROM table_name_71 WHERE silver < 1 AND rank > 5 AND bronze > 1
What is the lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze?
CREATE TABLE table_name_71 (total INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT MAX(extra_points) FROM table_14342480_6 WHERE position = "Right tackle"
Name the most extra points for right tackle
CREATE TABLE table_14342480_6 (extra_points INTEGER, position VARCHAR)
SELECT first_aired FROM table_191105_3 WHERE subject = "Skeletal system"
If skeletal system is the subject when was it first aired?
CREATE TABLE table_191105_3 (first_aired VARCHAR, subject VARCHAR)
SELECT rpm FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "88"
when standard speed (6th gear) is 88, what is the rpm?
CREATE TABLE table_19704392_1 (rpm VARCHAR, standard_speed__6th_gear_ VARCHAR)
SELECT team FROM table_17102076_9 WHERE date = "March 20"
What team played on March 20?
CREATE TABLE table_17102076_9 (team VARCHAR, date VARCHAR)
SELECT Name FROM phone ORDER BY Price
List the names of phones in ascending order of price.
CREATE TABLE phone (Name VARCHAR, Price VARCHAR)
SELECT award FROM table_name_84 WHERE result = "#100"
What's the award for #100?
CREATE TABLE table_name_84 (award VARCHAR, result VARCHAR)
SELECT team FROM table_name_44 WHERE pick > 2 AND position = "running back"
What team has a position of running back and picked after 2?
CREATE TABLE table_name_44 (team VARCHAR, pick VARCHAR, position VARCHAR)
SELECT SUM(rank) FROM table_name_24 WHERE time = "1:41.40.55"
What is the rank of the rider with time of 1:41.40.55?
CREATE TABLE table_name_24 (rank INTEGER, time VARCHAR)
SELECT MIN(goals) FROM table_name_24 WHERE name = "kenny miller" AND average < 0.261
What is the low goal for kenny miller with an average smaller than 0.261?
CREATE TABLE table_name_24 (goals INTEGER, name VARCHAR, average VARCHAR)
SELECT MAX(extra_points) FROM table_name_97 WHERE player = "herman everhardus" AND field_goals > 0
Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?
CREATE TABLE table_name_97 (extra_points INTEGER, player VARCHAR, field_goals VARCHAR)
SELECT SUM(place) FROM table_name_58 WHERE ties > 0 AND points = "7 qc" AND losses > 2
Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than 2
CREATE TABLE table_name_58 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR)
SELECT time FROM table_name_29 WHERE song_title = "treat me nice"
What is the time from the song called Treat Me Nice?
CREATE TABLE table_name_29 (time VARCHAR, song_title VARCHAR)
SELECT country FROM table_name_56 WHERE athlete = "fabiana beltrame"
what is the country for fabiana beltrame?
CREATE TABLE table_name_56 (country VARCHAR, athlete VARCHAR)
SELECT competition FROM table_name_31 WHERE date = "16/4/01"
Which competition has a Date of 16/4/01?
CREATE TABLE table_name_31 (competition VARCHAR, date VARCHAR)
SELECT seats_in_hamburgische_bürgerschaft FROM table_name_83 WHERE ideology = "green politics"
WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?
CREATE TABLE table_name_83 (seats_in_hamburgische_bürgerschaft VARCHAR, ideology VARCHAR)
SELECT remarks FROM table_name_38 WHERE country_of_origin = "norway"
What is the remark for Norway?
CREATE TABLE table_name_38 (remarks VARCHAR, country_of_origin 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 rank FROM table_name_69 WHERE scorer = "lee sang-cheol"
Which Rank has a Scorer of lee sang-cheol?
CREATE TABLE table_name_69 (rank VARCHAR, scorer VARCHAR)
SELECT COUNT(outcome) FROM table_27877656_7 WHERE score = "7–6 (7–3) , 6–4"
For score 7–6 (7–3) , 6–4 please mention total number of outcome
CREATE TABLE table_27877656_7 (outcome VARCHAR, score VARCHAR)
SELECT country FROM table_14752049_6 WHERE change__2011_to_2012_ = "-0.1%"
When the change (2011 to 2012) is -0.1% what is the country?
CREATE TABLE table_14752049_6 (country VARCHAR, change__2011_to_2012_ VARCHAR)
SELECT award FROM table_name_39 WHERE group = "césar awards" AND result = "nominated" AND year > 2001 AND film = "8 women (8 femmes)"
Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?
CREATE TABLE table_name_39 (award VARCHAR, film VARCHAR, year VARCHAR, group VARCHAR, result VARCHAR)
SELECT tournament FROM table_name_26 WHERE 2007 = "wta premier 5 tournaments"
What is the tournament when 2007 is WTA Premier 5 tournaments?
CREATE TABLE table_name_26 (tournament VARCHAR)
SELECT COUNT(attendance) FROM table_name_11 WHERE decision = "mclean" AND home = "calgary"
How many people attended the game when Calgary was the home team and the decision was McLean?
CREATE TABLE table_name_11 (attendance VARCHAR, decision VARCHAR, home VARCHAR)
SELECT MAX(barrier) FROM table_13498403_1 WHERE trainer = "Daniel Morton"
How old is Daniel Morton
CREATE TABLE table_13498403_1 (barrier INTEGER, trainer VARCHAR)
SELECT time FROM table_name_55 WHERE owner = "maine chance farm"
What time contains the owner of maine chance farm?
CREATE TABLE table_name_55 (time VARCHAR, owner VARCHAR)
SELECT to_par FROM table_name_9 WHERE player = "bart bryant"
What is the to par for Bart Bryant?
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR)
SELECT MAX(rank) FROM table_name_77 WHERE lane < 1
What's the top rank that's lane is smaller than 1?
CREATE TABLE table_name_77 (rank INTEGER, lane INTEGER)
SELECT nationality FROM table_name_33 WHERE player = "claude periard"
What is the nationality when Claude Periard is the player?
CREATE TABLE table_name_33 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(district) FROM table_1342338_5 WHERE incumbent = "David Delano Glover"
In how many districts was the incumbent David Delano Glover?
CREATE TABLE table_1342338_5 (district VARCHAR, incumbent VARCHAR)
SELECT record FROM table_name_14 WHERE location = "montreal, qc" AND visitor = "boston bruins"
What record has montreal, qc as the location, with boston bruins as the visitor?
CREATE TABLE table_name_14 (record VARCHAR, location VARCHAR, visitor VARCHAR)
SELECT length FROM table_1773707_2 WHERE body_style = "500 E"
What's the length of the model with 500 E body style?
CREATE TABLE table_1773707_2 (length VARCHAR, body_style VARCHAR)
SELECT club FROM table_27771406_1 WHERE tests = 2
The player for what club had 2 tests?
CREATE TABLE table_27771406_1 (club VARCHAR, tests VARCHAR)