question
stringlengths 12
243
| answer
stringlengths 18
557
| context
stringlengths 27
489
|
---|---|---|
What Home team played Richmond? | SELECT home_team FROM table_name_22 WHERE away_team = "richmond" | CREATE TABLE table_name_22 (home_team VARCHAR, away_team VARCHAR) |
order all gas station locations by the opening year. | SELECT LOCATION FROM gas_station ORDER BY open_year | CREATE TABLE gas_station (LOCATION VARCHAR, open_year VARCHAR) |
What is the fastest lap for Belgian Grand Prix? | SELECT fastest_lap FROM table_name_16 WHERE grand_prix = "belgian grand prix" | CREATE TABLE table_name_16 (fastest_lap VARCHAR, grand_prix VARCHAR) |
What away is there for the q3 round? | SELECT away FROM table_name_68 WHERE round = "q3" | CREATE TABLE table_name_68 (away VARCHAR, round VARCHAR) |
Who is the Electorate, when the year for First elected is 1974, and when the Party is Country? | SELECT electorate FROM table_name_16 WHERE first_elected = "1974" AND party = "country" | CREATE TABLE table_name_16 (electorate VARCHAR, first_elected VARCHAR, party VARCHAR) |
Tell me the week for pittsburgh steelers opponent | SELECT week FROM table_name_34 WHERE opponent = "pittsburgh steelers" | CREATE TABLE table_name_34 (week VARCHAR, opponent VARCHAR) |
What player was on the Grizzlies from 2009-2013? | SELECT player FROM table_16494599_1 WHERE years_for_grizzlies = "2009-2013" | CREATE TABLE table_16494599_1 (player VARCHAR, years_for_grizzlies VARCHAR) |
What is Daultan Leveille's Position? | SELECT position FROM table_name_68 WHERE player = "daultan leveille" | CREATE TABLE table_name_68 (position VARCHAR, player VARCHAR) |
With a time of 53.33, who ranked the highest? | SELECT MAX(rank) FROM table_name_89 WHERE time = 53.33 | CREATE TABLE table_name_89 (rank INTEGER, time VARCHAR) |
What mechanical has lpm regulation? | SELECT mechanical FROM table_1348246_3 WHERE regulating = "LPM" | CREATE TABLE table_1348246_3 (mechanical VARCHAR, regulating VARCHAR) |
What the win - loss recored for January 7? | SELECT record FROM table_27698941_8 WHERE date = "January 7" | CREATE TABLE table_27698941_8 (record VARCHAR, date VARCHAR) |
What is the Format for the alca-487 catalog? | SELECT format FROM table_name_12 WHERE catalog = "alca-487" | CREATE TABLE table_name_12 (format VARCHAR, catalog VARCHAR) |
What single was written by the artist cap D? | SELECT single FROM table_name_17 WHERE artist = "cap d" | CREATE TABLE table_name_17 (single VARCHAR, artist VARCHAR) |
What is the highest tonnage of the ship from norway? | SELECT MAX(tonnage) FROM table_name_71 WHERE nationality = "norway" | CREATE TABLE table_name_71 (tonnage INTEGER, nationality VARCHAR) |
Which Song Sung has a Status of Eliminated? | SELECT song_sung FROM table_name_14 WHERE status = "eliminated" | CREATE TABLE table_name_14 (song_sung VARCHAR, status VARCHAR) |
What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20? | SELECT COUNT(place) FROM table_name_88 WHERE singer = "mariza ikonomi" AND points > 20 | CREATE TABLE table_name_88 (place VARCHAR, singer VARCHAR, points VARCHAR) |
What is the date where Guatemala is the Away team? | SELECT date FROM table_name_44 WHERE away_team = "guatemala" | CREATE TABLE table_name_44 (date VARCHAR, away_team VARCHAR) |
Tell me the opponent for attendance of 68,264 | SELECT opponent FROM table_name_74 WHERE attendance = "68,264" | CREATE TABLE table_name_74 (opponent VARCHAR, attendance VARCHAR) |
What is the 2011 population of the district of East Godavari? | SELECT population__2011_ FROM table_1610301_1 WHERE district = "East Godavari" | CREATE TABLE table_1610301_1 (population__2011_ VARCHAR, district VARCHAR) |
What is the high lap total for mika salo with a grid greater than 17? | SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 17 | CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
What is the fewest number of draws with more than 9 losts and more than 16 goals scored? | SELECT MIN(draw) FROM table_name_99 WHERE lost > 9 AND goals_scored > 16 | CREATE TABLE table_name_99 (draw INTEGER, lost VARCHAR, goals_scored VARCHAR) |
What score has October 31 as the date? | SELECT score FROM table_name_18 WHERE date = "october 31" | CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR) |
What are all values of CMD.EXE / COMMAND.COM for the unix shell echo? | SELECT cmdexe___commandcom FROM table_14465871_1 WHERE unix_shell = "echo" | CREATE TABLE table_14465871_1 (cmdexe___commandcom VARCHAR, unix_shell VARCHAR) |
Name the most kirdistan list for diyala | SELECT MAX(total_kurdistan_list) FROM table_24440361_1 WHERE governorate = "Diyala" | CREATE TABLE table_24440361_1 (total_kurdistan_list INTEGER, governorate VARCHAR) |
What is IATA, when ICAO is "Hesh"? | SELECT iata FROM table_name_35 WHERE icao = "hesh" | CREATE TABLE table_name_35 (iata VARCHAR, icao VARCHAR) |
How many opponents led to an exactly 7-0 record? | SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = "7-0" | CREATE TABLE table_21034801_1 (opponent VARCHAR, record VARCHAR) |
What is the % identity to C7orf38 of the animal whose common name is rat? | SELECT MIN(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE common_name = "Rat" | CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, common_name VARCHAR) |
In which tournament did he place 20th? | SELECT tournament FROM table_name_55 WHERE result = "20th" | CREATE TABLE table_name_55 (tournament VARCHAR, result VARCHAR) |
What is the finish with 51 laps? | SELECT finish FROM table_name_98 WHERE laps = 51 | CREATE TABLE table_name_98 (finish VARCHAR, laps VARCHAR) |
What is the branding of the callsign DWCI-TV? | SELECT branding FROM table_2610582_2 WHERE callsign = "DWCI-TV" | CREATE TABLE table_2610582_2 (branding VARCHAR, callsign VARCHAR) |
What position did the sheffield eagles finish in? | SELECT MAX(position) FROM table_13018091_1 WHERE club = "Sheffield Eagles" | CREATE TABLE table_13018091_1 (position INTEGER, club VARCHAR) |
How much Overall has a Position of wr, and a College of alberta? | SELECT SUM(overall) FROM table_name_86 WHERE position = "wr" AND college = "alberta" | CREATE TABLE table_name_86 (overall INTEGER, position VARCHAR, college VARCHAR) |
What Winning constructor has a Circuit of lasarte? | SELECT winning_constructor FROM table_name_82 WHERE circuit = "lasarte" | CREATE TABLE table_name_82 (winning_constructor VARCHAR, circuit VARCHAR) |
Name the 2011 when 2010 is 2r | SELECT 2011 FROM table_name_94 WHERE 2010 = "2r" | CREATE TABLE table_name_94 (Id VARCHAR) |
When did the game in whalley range take place? | SELECT date FROM table_name_87 WHERE h___a = "whalley range" | CREATE TABLE table_name_87 (date VARCHAR, h___a VARCHAR) |
What is the total round when DB was the position, and the pick less than 21, and Jeff Welch as the name? | SELECT SUM(round) FROM table_name_95 WHERE position = "db" AND name = "jeff welch" AND pick < 21 | CREATE TABLE table_name_95 (round INTEGER, pick VARCHAR, position VARCHAR, name VARCHAR) |
Name the number of reason for change on may 11, 1939 | SELECT COUNT(reason_for_change) FROM table_2160008_4 WHERE date_successor_seated = "May 11, 1939" | CREATE TABLE table_2160008_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR) |
Which System's Name is Steem, and has a Freeware License? | SELECT system FROM table_name_76 WHERE license = "freeware" AND name = "steem" | CREATE TABLE table_name_76 (system VARCHAR, license VARCHAR, name VARCHAR) |
How many tickets were sold/available when the gross revenue (2011) was $366,916? | SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = "$366,916" | CREATE TABLE table_name_44 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR) |
What is Total, when Player is "Hale Irwin"? | SELECT total FROM table_name_12 WHERE player = "hale irwin" | CREATE TABLE table_name_12 (total VARCHAR, player VARCHAR) |
Which Location has a Method of decision? | SELECT location FROM table_name_40 WHERE method = "decision" | CREATE TABLE table_name_40 (location VARCHAR, method VARCHAR) |
Show all cities and corresponding number of students. | SELECT city_code, COUNT(*) FROM Student GROUP BY city_code | CREATE TABLE Student (city_code VARCHAR) |
How many Attendance in a match which scores 0:0 - 4:1 (pen) | SELECT AVG(attendance) FROM table_name_98 WHERE score = "0:0 - 4:1 (pen)" | CREATE TABLE table_name_98 (attendance INTEGER, score VARCHAR) |
Which Touchdowns is the lowest one that has Extra points smaller than 14, and a Player of white, and Points smaller than 5? | SELECT MIN(touchdowns) FROM table_name_98 WHERE extra_points < 14 AND player = "white" AND points < 5 | CREATE TABLE table_name_98 (touchdowns INTEGER, points VARCHAR, extra_points VARCHAR, player VARCHAR) |
Who Playoffs has a Regular Season of on hiatus.? | SELECT playoffs FROM table_name_99 WHERE regular_season = "on hiatus." | CREATE TABLE table_name_99 (playoffs VARCHAR, regular_season VARCHAR) |
What was the lowest attendance at a game that had a loss of lohse (12β11)? | SELECT MIN(att) FROM table_name_2 WHERE loss = "lohse (12β11)" | CREATE TABLE table_name_2 (att INTEGER, loss VARCHAR) |
What is the highest Indian population? | SELECT MAX(indian) FROM table_10118412_6 | CREATE TABLE table_10118412_6 (indian INTEGER) |
What is the average number of draws for the team that had more than 0 wins? | SELECT AVG(draws) FROM table_name_13 WHERE wins > 0 | CREATE TABLE table_name_13 (draws INTEGER, wins INTEGER) |
Rich round has an H/A of A and the opponent Sheffield United? | SELECT round FROM table_name_83 WHERE h___a = "a" AND opponents = "sheffield united" | CREATE TABLE table_name_83 (round VARCHAR, h___a VARCHAR, opponents VARCHAR) |
How many ships are named Monge? | SELECT COUNT(ordered) FROM table_name_10 WHERE name = "monge" | CREATE TABLE table_name_10 (ordered VARCHAR, name VARCHAR) |
What was the score of the game on 16 december 1987? | SELECT score FROM table_name_36 WHERE date = "16 december 1987" | CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR) |
Name for me the tatsuhito takaiwa for Ryusuke Taguchi of taguchi (14:31) | SELECT tatsuhito_takaiwa FROM table_name_50 WHERE ryusuke_taguchi = "taguchi (14:31)" | CREATE TABLE table_name_50 (tatsuhito_takaiwa VARCHAR, ryusuke_taguchi VARCHAR) |
Where is the company with estimated revenue of 33.3 billion headquartered? | SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "33.3" | CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR) |
What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public School as its school? | SELECT suburb_town FROM table_name_11 WHERE years = "k-6" AND founded < 1875 AND school = "ashfield public school" | CREATE TABLE table_name_11 (suburb_town VARCHAR, school VARCHAR, years VARCHAR, founded VARCHAR) |
If the episode title is Pressures, what are the names of the cast? | SELECT cast FROM table_2570269_2 WHERE episode_title = "Pressures" | CREATE TABLE table_2570269_2 (cast VARCHAR, episode_title VARCHAR) |
What is the party for the incumbent Wyche Fowler? | SELECT party FROM table_1341598_11 WHERE incumbent = "Wyche Fowler" | CREATE TABLE table_1341598_11 (party VARCHAR, incumbent VARCHAR) |
Which titles have 18.73 u.s. viewers. | SELECT title FROM table_1130632_1 WHERE us_viewers__million_ = "18.73" | CREATE TABLE table_1130632_1 (title VARCHAR, us_viewers__million_ VARCHAR) |
What is the skip when the country is finland? | SELECT skip FROM table_name_1 WHERE country = "finland" | CREATE TABLE table_name_1 (skip VARCHAR, country VARCHAR) |
Who in series 9 corresponds to Peter Jones in series 2? | SELECT series_9 FROM table_name_55 WHERE series_2 = "peter jones" | CREATE TABLE table_name_55 (series_9 VARCHAR, series_2 VARCHAR) |
what is the least silver when overall is less than 67, team is saami and gold is less than 5? | SELECT MIN(silver) FROM table_name_2 WHERE overall < 67 AND team = "saami" AND gold < 5 | CREATE TABLE table_name_2 (silver INTEGER, gold VARCHAR, overall VARCHAR, team VARCHAR) |
What is the average opened year of line e, which had their last extension before 2003? | SELECT AVG(opened) FROM table_name_40 WHERE line_name = "line e" AND last_extension < 2003 | CREATE TABLE table_name_40 (opened INTEGER, line_name VARCHAR, last_extension VARCHAR) |
What is Bronze, when Notes is "6.7km, 22controls"? | SELECT bronze FROM table_name_2 WHERE notes = "6.7km, 22controls" | CREATE TABLE table_name_2 (bronze VARCHAR, notes VARCHAR) |
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75? | SELECT MIN(grid) FROM table_name_70 WHERE time_retired = "engine" AND qual < 138.75 | CREATE TABLE table_name_70 (grid INTEGER, time_retired VARCHAR, qual VARCHAR) |
find the names of loser and winner who played in the match with greatest number of minutes. | SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1 | CREATE TABLE matches (winner_name VARCHAR, loser_name VARCHAR, minutes VARCHAR) |
On what Date was the Works Number 12? | SELECT date FROM table_name_99 WHERE works_number = "12" | CREATE TABLE table_name_99 (date VARCHAR, works_number VARCHAR) |
What date is aston villa away? | SELECT date FROM table_name_67 WHERE away_team = "aston villa" | CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR) |
What is the number of guns when the superintendent was Silas Talbot? | SELECT guns FROM table_name_36 WHERE superintendent = "silas talbot" | CREATE TABLE table_name_36 (guns VARCHAR, superintendent VARCHAR) |
Which High rebounds have a Game larger than 4, and a Date of may 27? | SELECT high_rebounds FROM table_name_13 WHERE game > 4 AND date = "may 27" | CREATE TABLE table_name_13 (high_rebounds VARCHAR, game VARCHAR, date VARCHAR) |
What is Record, when High Points is "Ray Allen (27)"? | SELECT record FROM table_name_90 WHERE high_points = "ray allen (27)" | CREATE TABLE table_name_90 (record VARCHAR, high_points VARCHAR) |
What time has a lane less than 5, with Poland as the nationality? | SELECT time FROM table_name_63 WHERE lane < 5 AND nationality = "poland" | CREATE TABLE table_name_63 (time VARCHAR, lane VARCHAR, nationality VARCHAR) |
Who was the opponent in the game in which Hakim Warrick (14) did the most high points? | SELECT team FROM table_22669044_10 WHERE high_points = "Hakim Warrick (14)" | CREATE TABLE table_22669044_10 (team VARCHAR, high_points VARCHAR) |
What is the Series with a High rebounds with gasol (10)? | SELECT series FROM table_name_54 WHERE high_rebounds = "gasol (10)" | CREATE TABLE table_name_54 (series VARCHAR, high_rebounds VARCHAR) |
How much February has a Score of 5β2, and Points of 70? | SELECT COUNT(february) FROM table_name_44 WHERE score = "5β2" AND points = 70 | CREATE TABLE table_name_44 (february VARCHAR, score VARCHAR, points VARCHAR) |
Who had the high assists while Erick Dampier (8) had the high rebounds? | SELECT high_assists FROM table_17288869_7 WHERE high_rebounds = "Erick Dampier (8)" | CREATE TABLE table_17288869_7 (high_assists VARCHAR, high_rebounds VARCHAR) |
Which opponent had round 1? | SELECT opponent FROM table_name_85 WHERE round = "1" | CREATE TABLE table_name_85 (opponent VARCHAR, round VARCHAR) |
What Tries against has a Losing bonus of 7? | SELECT tries_against FROM table_name_43 WHERE losing_bonus = "7" | CREATE TABLE table_name_43 (tries_against VARCHAR, losing_bonus VARCHAR) |
Who is the opponent of Game 1 with a 3-2-0 record? | SELECT opponent FROM table_name_21 WHERE game > 1 AND record = "3-2-0" | CREATE TABLE table_name_21 (opponent VARCHAR, game VARCHAR, record VARCHAR) |
What is the total administrative population of Shanghai? | SELECT COUNT(administrative_population__2010_) FROM table_16489766_2 WHERE city = "Shanghai" | CREATE TABLE table_16489766_2 (administrative_population__2010_ VARCHAR, city VARCHAR) |
What is Place, when Player is "Ben Crenshaw"? | SELECT place FROM table_name_99 WHERE player = "ben crenshaw" | CREATE TABLE table_name_99 (place VARCHAR, player VARCHAR) |
Name the district for reason for change being died july 4, 1939 | SELECT district FROM table_2160008_4 WHERE reason_for_change = "Died July 4, 1939" | CREATE TABLE table_2160008_4 (district VARCHAR, reason_for_change VARCHAR) |
How many speak german? | SELECT number FROM table_name_50 WHERE language = "german" | CREATE TABLE table_name_50 (number VARCHAR, language VARCHAR) |
Tell me the 1968 for 1r | SELECT 1968 FROM table_name_76 WHERE 1967 = "1r" | CREATE TABLE table_name_76 (Id VARCHAR) |
How many tournaments were held in Maryland? | SELECT COUNT(tournament) FROM table_11603006_1 WHERE location = "Maryland" | CREATE TABLE table_11603006_1 (tournament VARCHAR, location VARCHAR) |
who had a last performance of 3 july 2011? | SELECT name FROM table_name_18 WHERE last_performance = "3 july 2011" | CREATE TABLE table_name_18 (name VARCHAR, last_performance VARCHAR) |
Which Goals have a Player of noel carroll? | SELECT MIN(goals) FROM table_name_4 WHERE player = "noel carroll" | CREATE TABLE table_name_4 (goals INTEGER, player VARCHAR) |
Find the details of all the distinct customers who have orders with status "On Road". | SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" | CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR) |
What country had a r3 at 72, by Larry Mize? | SELECT country FROM table_18812411_3 WHERE r3 = 72 AND player = "Larry Mize" | CREATE TABLE table_18812411_3 (country VARCHAR, r3 VARCHAR, player VARCHAR) |
What was the score of the 2001 game held at Network Associates Coliseum? | SELECT result FROM table_name_66 WHERE year = 2001 AND location = "network associates coliseum" | CREATE TABLE table_name_66 (result VARCHAR, year VARCHAR, location VARCHAR) |
what is the title when the writer(s) is jack turley? | SELECT title FROM table_21146729_6 WHERE writer_s_ = "Jack Turley" | CREATE TABLE table_21146729_6 (title VARCHAR, writer_s_ VARCHAR) |
What is the highest pick of scott turner, who has a round greater than 2? | SELECT MAX(pick) FROM table_name_37 WHERE round > 2 AND name = "scott turner" | CREATE TABLE table_name_37 (pick INTEGER, round VARCHAR, name VARCHAR) |
How many laps does the one ranked 16 have? | SELECT laps FROM table_name_1 WHERE rank = "16" | CREATE TABLE table_name_1 (laps VARCHAR, rank VARCHAR) |
Which Area (kmΒ²) is the lowest one that has a Population of 17,089? | SELECT MIN(area__kmΒ²_) FROM table_name_39 WHERE pop = 17 OFFSET 089 | CREATE TABLE table_name_39 (area__kmΒ²_ INTEGER, pop VARCHAR) |
Show the date of the transcript which shows the least number of results, also list the id. | SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1 | CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR) |
Who was the partner at the Australian Open, Melbourne when the score was 2β6, 7β5, 6β2, 4β6, 3β6? | SELECT partner FROM table_name_6 WHERE championship = "australian open, melbourne" AND score = "2β6, 7β5, 6β2, 4β6, 3β6" | CREATE TABLE table_name_6 (partner VARCHAR, championship VARCHAR, score VARCHAR) |
What year did the team who played at the Scottrade Center leave the city? | SELECT MIN(left_st_louis) FROM table_21564794_3 WHERE venue = "Scottrade Center" | CREATE TABLE table_21564794_3 (left_st_louis INTEGER, venue VARCHAR) |
Who was the opponent in a week below 14 on October 10, 1993? | SELECT opponent FROM table_name_18 WHERE week < 14 AND date = "october 10, 1993" | CREATE TABLE table_name_18 (opponent VARCHAR, week VARCHAR, date VARCHAR) |
What is the IATA for Nanjing? | SELECT iata FROM table_name_85 WHERE city = "nanjing" | CREATE TABLE table_name_85 (iata VARCHAR, city VARCHAR) |
What two teams were competing in the match with 103,158 in attendance? | SELECT opponent FROM table_name_50 WHERE attendance = "103,158" | CREATE TABLE table_name_50 (opponent VARCHAR, attendance VARCHAR) |
In 1988, what Metro Champion had a Runner-up of Memphis State? | SELECT metro_champion FROM table_name_73 WHERE runner_up = "memphis state" AND year = 1988 | CREATE TABLE table_name_73 (metro_champion VARCHAR, runner_up VARCHAR, year VARCHAR) |
Which Country has the Director Chen Kaige? | SELECT country FROM table_name_79 WHERE director = "chen kaige" | CREATE TABLE table_name_79 (country VARCHAR, director VARCHAR) |
Subsets and Splits