answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(tonnage__grt_) FROM table_name_8 WHERE nationality = "united kingdom" AND date = "27 june 1941"
How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941?
CREATE TABLE table_name_8 (tonnage__grt_ VARCHAR, nationality VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT LOCATION) FROM perpetrator
How many distinct locations of perpetrators are there?
CREATE TABLE perpetrator (LOCATION VARCHAR)
SELECT lead FROM table_name_59 WHERE second = "nkeiruka ezekh"
Who is the lead for the team with Nkeiruka Ezekh as second?
CREATE TABLE table_name_59 (lead VARCHAR, second VARCHAR)
SELECT COUNT(bronze) FROM table_name_62 WHERE gold > 1 AND rank = 2 AND silver < 12
What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller than 12?
CREATE TABLE table_name_62 (bronze VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT attendance FROM table_name_12 WHERE loss = "koch (0-1)"
When the game had a loss of Koch (0-1) what was the attendance?
CREATE TABLE table_name_12 (attendance VARCHAR, loss VARCHAR)
SELECT track FROM table_name_55 WHERE year = "1926"
What track was used in 1926?
CREATE TABLE table_name_55 (track VARCHAR, year VARCHAR)
SELECT prod_code FROM table_20967430_4 WHERE written_by = "Jack Carrerrow"
What is the production code of the episode written by Jack Carrerrow?
CREATE TABLE table_20967430_4 (prod_code VARCHAR, written_by VARCHAR)
SELECT MAX(rank) FROM table_name_90 WHERE location = "kinshasa, dr congo" AND current_seating_capacity < 80 OFFSET 000
What is the highest Rank, when Location is Kinshasa, DR Congo, and when Current Seating Capacity is less than 80,000?
CREATE TABLE table_name_90 (rank INTEGER, location VARCHAR, current_seating_capacity VARCHAR)
SELECT gothic_letter FROM table_name_4 WHERE proto_germanic_origin = "/ɸ/; /b/"
Which Gothic Letter has Proto-Germanic origin of /ɸ/; /b/?
CREATE TABLE table_name_4 (gothic_letter VARCHAR, proto_germanic_origin VARCHAR)
SELECT MAX(attendance) FROM table_name_4 WHERE date = "november 9, 1958"
What was the higest attendance on November 9, 1958?
CREATE TABLE table_name_4 (attendance INTEGER, date VARCHAR)
SELECT language FROM table_name_27 WHERE film_name = "seethaiah"
what language is seethaiah in
CREATE TABLE table_name_27 (language VARCHAR, film_name VARCHAR)
SELECT school_club_team FROM table_name_57 WHERE round < 5 AND pick = 2
What school or team is in a round below 5 with a pick of 2?
CREATE TABLE table_name_57 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR)
SELECT competition FROM table_name_96 WHERE venue = "zurich"
What was the competition that was played in Zurich?
CREATE TABLE table_name_96 (competition VARCHAR, venue VARCHAR)
SELECT MAX(goals_against) FROM table_name_32 WHERE position > 19 AND goals_for < 36
What were the highest goals against when the position was larger than 19 and the goals smaller than 36?
CREATE TABLE table_name_32 (goals_against INTEGER, position VARCHAR, goals_for VARCHAR)
SELECT COUNT(laps) FROM table_name_62 WHERE time_retired = "+ 1:25.475"
How many laps associated with a Time/Retired of + 1:25.475?
CREATE TABLE table_name_62 (laps VARCHAR, time_retired VARCHAR)
SELECT location_attendance FROM table_17103729_8 WHERE score = "64-74"
Name the location of 64-74
CREATE TABLE table_17103729_8 (location_attendance VARCHAR, score VARCHAR)
SELECT record FROM table_name_33 WHERE loss = "stottlemyre (10-12)"
What was the record of the game that had a loss of Stottlemyre (10-12)?
CREATE TABLE table_name_33 (record VARCHAR, loss VARCHAR)
SELECT date FROM table_name_66 WHERE country = "japan"
Which date was for Japan?
CREATE TABLE table_name_66 (date VARCHAR, country VARCHAR)
SELECT director FROM table_22073745_1 WHERE original_title = "Perl oder Pica"
Who is the director of the original title perl oder pica?
CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)
SELECT AVG(pos) FROM table_name_1 WHERE dutch_cup = "winner" AND tier > 1
Which Pos has a Dutch Cup of winner, and a Tier larger than 1?
CREATE TABLE table_name_1 (pos INTEGER, dutch_cup VARCHAR, tier VARCHAR)
SELECT MIN(goals_scored) FROM table_name_36 WHERE place > 8 AND lost < 8
Name the least goals scored with place more than 8 and lost less than 8
CREATE TABLE table_name_36 (goals_scored INTEGER, place VARCHAR, lost VARCHAR)
SELECT loss FROM table_name_79 WHERE date = "june 2"
What was the loss for June 2?
CREATE TABLE table_name_79 (loss VARCHAR, date VARCHAR)
SELECT english_title FROM table_26555737_1 WHERE arabic_title = "ملح هذا البحر"
When ملح هذا البحر is the arabic title what is the english title?
CREATE TABLE table_26555737_1 (english_title VARCHAR, arabic_title VARCHAR)
SELECT points FROM table_25646820_2 WHERE player = "Donald Boor"
Name the points for donald boor
CREATE TABLE table_25646820_2 (points VARCHAR, player VARCHAR)
SELECT MIN(laps) FROM table_name_10 WHERE rider = "andrew pitt" AND grid < 18
What is the lowest laps for rider andrew pitt, with a grid smaller than 18? Wha
CREATE TABLE table_name_10 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT 2006 FROM table_name_56 WHERE 2011 = "1r"
What is the 2006 value with a 1r in 2011?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT MIN(erp_w) FROM table_name_21 WHERE frequency_mhz < 103.1
Name the lowest ERP W with a frequency mhz less than 103.1
CREATE TABLE table_name_21 (erp_w INTEGER, frequency_mhz INTEGER)
SELECT COUNT(average) FROM table_19662262_6 WHERE economy_rate = "2.26"
How many averages are there when the economy rate is 2.26?
CREATE TABLE table_19662262_6 (average VARCHAR, economy_rate VARCHAR)
SELECT written_by FROM table_13477468_3 WHERE us_viewers__millions_ = "1.83"
Who wrote the episode that received 1.83 million U.S. viewers?
CREATE TABLE table_13477468_3 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(year) FROM table_name_85 WHERE points < 1
What was the earliest year that had less than 1 point?
CREATE TABLE table_name_85 (year INTEGER, points INTEGER)
SELECT free_fare_zone FROM table_name_65 WHERE station_name = "arena"
Where is the free fare zone for the Arena station?
CREATE TABLE table_name_65 (free_fare_zone VARCHAR, station_name VARCHAR)
SELECT MIN(losses) FROM table_19451173_1 WHERE team = "Kansas City Chiefs"
What is the minimum losses for the Kansas City Chiefs?
CREATE TABLE table_19451173_1 (losses INTEGER, team VARCHAR)
SELECT competition FROM table_name_16 WHERE score = "5-0" AND date = "august 3, 2005"
What Competition on August 3, 2005 had a Score of 5-0?
CREATE TABLE table_name_16 (competition VARCHAR, score VARCHAR, date VARCHAR)
SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants"
Who won the series when the San Francisco Giants lost?
CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR)
SELECT points FROM table_name_14 WHERE club = "maesteg rfc"
What is Points, when Club is Maesteg RFC?
CREATE TABLE table_name_14 (points VARCHAR, club VARCHAR)
SELECT manufacturer FROM table_2266976_1 WHERE race_time = "2:30:28"
Who was the manufacturer in the year when the race lasted 2:30:28?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, race_time VARCHAR)
SELECT tournament FROM table_name_37 WHERE winning_score = −5(69 - 69 - 73 = 211)
Which tournament had a winning score of −5 (69-69-73=211)?
CREATE TABLE table_name_37 (tournament VARCHAR, winning_score VARCHAR)
SELECT _number FROM table_20745746_1 WHERE record = "Loss"
How many games resulted in a loss?
CREATE TABLE table_20745746_1 (_number VARCHAR, record VARCHAR)
SELECT frequency FROM table_name_21 WHERE call_letters = "wmad"
What is the frequency of WMAD?
CREATE TABLE table_name_21 (frequency VARCHAR, call_letters VARCHAR)
SELECT AVG(year) FROM table_name_49 WHERE quantity = 10 AND gwr_numbers = "409, 290, 315, 317–321, 324, 333"
What is the average Year that has a Quantity of 10, and a GWR Numbers of 409, 290, 315, 317–321, 324, 333?
CREATE TABLE table_name_49 (year INTEGER, quantity VARCHAR, gwr_numbers VARCHAR)
SELECT T1.student_id, T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1
What are the id and first name of the student whose addresses have the highest average monthly rental?
CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR)
SELECT MIN(year_started) FROM table_name_30 WHERE number_of_cars > 7 AND car__number = "100"
Which Year started is the lowest one that has a Number of cars larger than 7, and a Car # of 100?
CREATE TABLE table_name_30 (year_started INTEGER, number_of_cars VARCHAR, car__number VARCHAR)
SELECT opponent FROM table_name_6 WHERE result = "w48-0"
What is the name of the Opponent when the Result was w48-0?
CREATE TABLE table_name_6 (opponent VARCHAR, result VARCHAR)
SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the most common genre in all tracks?
CREATE TABLE GENRE (Name VARCHAR, GenreId VARCHAR); CREATE TABLE TRACK (GenreId VARCHAR)
SELECT SUM(lane) FROM table_name_75 WHERE heat < 7 AND name = "elizabeth simmonds"
What is the sum of the lanes before heat 7 that elizabeth simmonds swam?
CREATE TABLE table_name_75 (lane INTEGER, heat VARCHAR, name VARCHAR)
SELECT name, Assets_billion FROM Companies ORDER BY name
What are the name and assets of each company, sorted in ascending order of company name?
CREATE TABLE Companies (name VARCHAR, Assets_billion VARCHAR)
SELECT final_score FROM table_25331766_3 WHERE attendance = 7523
What was the final score of the game with 7523 in attendance?
CREATE TABLE table_25331766_3 (final_score VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_58 WHERE crowd > 30 OFFSET 495
What was the date when the crowd was larger than 30,495?
CREATE TABLE table_name_58 (date VARCHAR, crowd INTEGER)
SELECT race_title FROM table_name_81 WHERE vehicle = "maserati a6gcs"
What's the name of the title for the Maserati A6GCS?
CREATE TABLE table_name_81 (race_title VARCHAR, vehicle VARCHAR)
SELECT playoffs FROM table_1427998_1 WHERE league = "USISL" AND regular_season = "1st, Pacific"
What is the playoff result when the league is USISL and the regular season record is 1st, pacific.
CREATE TABLE table_1427998_1 (playoffs VARCHAR, league VARCHAR, regular_season VARCHAR)
SELECT high_assists FROM table_name_41 WHERE game < 13 AND score = "w 75-66"
who had the high assists when the game was less than 13 and the score was w 75-66?
CREATE TABLE table_name_41 (high_assists VARCHAR, game VARCHAR, score VARCHAR)
SELECT MAX(games) FROM table_name_75 WHERE team = "ciudad de la laguna" AND points > 357
What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357?
CREATE TABLE table_name_75 (games INTEGER, team VARCHAR, points VARCHAR)
SELECT date FROM table_27713583_2 WHERE high_assists = "Raymond Felton (4)"
what is the date of the game that the high assists is raymond felton (4)?
CREATE TABLE table_27713583_2 (date VARCHAR, high_assists VARCHAR)
SELECT race_name FROM table_name_90 WHERE round = 1
What is the name of the race from round 1?
CREATE TABLE table_name_90 (race_name VARCHAR, round VARCHAR)
SELECT manufacturer FROM table_name_5 WHERE rider = "stefan bradl"
Can you tell me the Manufacturer that has the Rider of stefan bradl?
CREATE TABLE table_name_5 (manufacturer VARCHAR, rider VARCHAR)
SELECT team_2 FROM table_name_82 WHERE team_1 = "harbour view"
What team 2 has a team 1 of harbour view?
CREATE TABLE table_name_82 (team_2 VARCHAR, team_1 VARCHAR)
SELECT place FROM table_name_92 WHERE date = "22 august 2004"
What is the Place that has a Date of 22 august 2004?
CREATE TABLE table_name_92 (place VARCHAR, date VARCHAR)
SELECT MAX(money__) AS ¥_ FROM table_name_65 WHERE round_2 = 65 AND round_4 < 67
What is the maximum ¥ for a round 2 score of 65 and a round 4 score smaller than 67?
CREATE TABLE table_name_65 (money__ INTEGER, round_2 VARCHAR, round_4 VARCHAR)
SELECT away_team FROM table_name_36 WHERE home_team = "new zealand breakers"
Who was the away team during the game when the home team was the new zealand breakers?
CREATE TABLE table_name_36 (away_team VARCHAR, home_team VARCHAR)
SELECT position FROM table_2850912_7 WHERE nhl_team = "Los Angeles Kings"
What is the postion when the nhl team is los angeles kings?
CREATE TABLE table_2850912_7 (position VARCHAR, nhl_team VARCHAR)
SELECT birthplace FROM table_1557974_1 WHERE debut = "2002-7"
Where were the wrestlers born who debuted in 2002-7?
CREATE TABLE table_1557974_1 (birthplace VARCHAR, debut VARCHAR)
SELECT coverage__transmitter_site_ FROM table_12379297_1 WHERE station_type = "Relay" AND ch__number = "TV-37"
What is the coverage for relay tv-37?
CREATE TABLE table_12379297_1 (coverage__transmitter_site_ VARCHAR, station_type VARCHAR, ch__number VARCHAR)
SELECT MAX(inhabitants_per_mep) FROM table_name_26 WHERE meps > 50 AND member_state = "germany" AND population_millions < 82.43
What is the highest number of inhabitants per MEP that has MEPs larger than 50, a member of Germany, and a population less than 82.43 million?
CREATE TABLE table_name_26 (inhabitants_per_mep INTEGER, population_millions VARCHAR, meps VARCHAR, member_state VARCHAR)
SELECT total_time FROM table_name_79 WHERE navigator = "vandenberg"
What is the total time of the vehicle having a navigator of Vandenberg?
CREATE TABLE table_name_79 (total_time VARCHAR, navigator VARCHAR)
SELECT SUM(year) FROM table_name_65 WHERE publication = "vh1" AND rank > 11
What is the sum of Year, when Publication is "VH1", and when Rank is greater than 11?
CREATE TABLE table_name_65 (year INTEGER, publication VARCHAR, rank VARCHAR)
SELECT country FROM table_name_93 WHERE year = 1994
What is Country, when Year is "1994"?
CREATE TABLE table_name_93 (country VARCHAR, year VARCHAR)
SELECT total_itv1_viewers__millions_ FROM table_27319183_5 WHERE share___percentage_ = "28.9"
What was the total ITV1 viewers in millions for the episode with a share (%) of 28.9?
CREATE TABLE table_27319183_5 (total_itv1_viewers__millions_ VARCHAR, share___percentage_ VARCHAR)
SELECT original_air_date FROM table_15026994_3 WHERE director = "Paul Marcus"
What is the original air date of the episode directed by Paul Marcus?
CREATE TABLE table_15026994_3 (original_air_date VARCHAR, director VARCHAR)
SELECT height FROM table_name_2 WHERE floor_count < 25
What height has a floor count less than 25?
CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER)
SELECT nationality FROM table_11303072_9 WHERE player = "David Bairstow"
What is the nationality of David Bairstow?
CREATE TABLE table_11303072_9 (nationality VARCHAR, player VARCHAR)
SELECT AVG(cuts_made) FROM table_name_54 WHERE top_25 < 2
For top-25 values under 2, what is the average number of cuts made?
CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 INTEGER)
SELECT SUM(area_km_2) FROM table_name_10 WHERE official_name = "allardville" AND population < 2 OFFSET 151
What is the Area of the Allardville Parish with a Population smaller than 2,151?
CREATE TABLE table_name_10 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
SELECT nat FROM table_name_9 WHERE name = "acquafresca"
What is the nationality of Acquafresca?
CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR)
SELECT rank FROM table_name_45 WHERE third_quarter = "china mobile 195,680.4"
When the third quarter is China Mobile 195,680.4, what is the rank?
CREATE TABLE table_name_45 (rank VARCHAR, third_quarter VARCHAR)
SELECT college FROM table_name_18 WHERE pick = 20
What is College, when Pick is 20?
CREATE TABLE table_name_18 (college VARCHAR, pick VARCHAR)
SELECT away_team FROM table_name_4 WHERE score = "1 – 0" AND attendance = "1,791"
What is the Away team at the game with a Score of 1 – 0 and Attendance of 1,791?
CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT district FROM table_name_48 WHERE result = "lost re-election republican gain"
result is lost re-election republican gain, what is the district?
CREATE TABLE table_name_48 (district VARCHAR, result VARCHAR)
SELECT language FROM table_name_65 WHERE content = "viaggi"
What language has viaggi as the content?
CREATE TABLE table_name_65 (language VARCHAR, content VARCHAR)
SELECT name_of_mill FROM table_name_73 WHERE built = "1802"
What is the Name of the Mill Built in 1802?
CREATE TABLE table_name_73 (name_of_mill VARCHAR, built VARCHAR)
SELECT 1 AS st_leg FROM table_name_57 WHERE home__2nd_leg_ = "gimnasia de mendoza"
What was the score on the first leg when gimnasia de mendoza played at home for the second leg?
CREATE TABLE table_name_57 (home__2nd_leg_ VARCHAR)
SELECT week_2 FROM table_name_81 WHERE week_1 = "mackenzie ryan"
What Week 2 that has a Week 1 of mackenzie ryan?
CREATE TABLE table_name_81 (week_2 VARCHAR, week_1 VARCHAR)
SELECT COUNT(total) FROM table_name_12 WHERE nation = "netherlands" AND silver > 0
What is the total number for a total when the nation is netherlands and silver is larger than 0?
CREATE TABLE table_name_12 (total VARCHAR, nation VARCHAR, silver VARCHAR)
SELECT MAX(played) FROM table_name_40 WHERE club = "atlético ceuta" AND losses < 11
Which Played has a Club of atlético ceuta, and less than 11 Losses?
CREATE TABLE table_name_40 (played INTEGER, club VARCHAR, losses VARCHAR)
SELECT SUM(week) FROM table_name_15 WHERE result = "l 24–21"
Tell me the sum of week for result of l 24–21
CREATE TABLE table_name_15 (week INTEGER, result VARCHAR)
SELECT COUNT(year) FROM table_23015396_1 WHERE date = "June 30"
Name the number of year for june 30
CREATE TABLE table_23015396_1 (year VARCHAR, date VARCHAR)
SELECT no_1 FROM table_name_25 WHERE region__year_ = "mississippi (2010)"
What is No. 1, when Region (Year) is Mississippi (2010)?
CREATE TABLE table_name_25 (no_1 VARCHAR, region__year_ VARCHAR)
SELECT COUNT(wchmp) FROM table_name_35 WHERE race > 42 AND pole > 11
What's the WChmp of the race greater than 42 and pole greater than 11?
CREATE TABLE table_name_35 (wchmp VARCHAR, race VARCHAR, pole VARCHAR)
SELECT no FROM table_28005100_1 WHERE lyricist = "Ahmed Metwally"
Which number was the lyricist ahmed metwally?
CREATE TABLE table_28005100_1 (no VARCHAR, lyricist VARCHAR)
SELECT chart_peak FROM table_name_46 WHERE release_date = "6/17/61" AND track > 20 AND writer_s_ = "woody harris"
On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?
CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR)
SELECT SUM(rating) FROM table_name_69 WHERE viewers__m_ = 13.47 AND overall_rank > 6
What is the rating of the episode with 13.47 million viewers and overall rank larger than 6?
CREATE TABLE table_name_69 (rating INTEGER, viewers__m_ VARCHAR, overall_rank VARCHAR)
SELECT no FROM table_22824297_1 WHERE hometown = "Canton, Illinois"
What is every number for the hometown of Canton, Illinois?
CREATE TABLE table_22824297_1 (no VARCHAR, hometown VARCHAR)
SELECT result FROM table_name_98 WHERE date = "2007-09-29"
Tell me the result for 2007-09-29
CREATE TABLE table_name_98 (result VARCHAR, date VARCHAR)
SELECT unit FROM table_18933037_3 WHERE mission_target = "Same target; Linebacker II Offensive"
When same target; linebacker ii offensive is the same target what is the unit?
CREATE TABLE table_18933037_3 (unit VARCHAR, mission_target VARCHAR)
SELECT MIN(cuts_made) FROM table_14853156_2 WHERE best_finish = "T4"
What is the lowest number of cuts made when her best finish is t4?
CREATE TABLE table_14853156_2 (cuts_made INTEGER, best_finish VARCHAR)
SELECT DISTINCT Publisher FROM publication WHERE Price > 5000000
What are the distinct publishers of publications with price higher than 5000000?
CREATE TABLE publication (Publisher VARCHAR, Price INTEGER)
SELECT MAX(assists) FROM table_24913533_4 WHERE player = "Anastasia Kostaki"
What is the maximum number of assists for players named Anastasia Kostaki?
CREATE TABLE table_24913533_4 (assists INTEGER, player VARCHAR)
SELECT AVG(lane) FROM table_name_21 WHERE name = "elizabeth simmonds"
What is Elizabeth Simmonds' average lane number?
CREATE TABLE table_name_21 (lane INTEGER, name VARCHAR)
SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision"
How many laps had a grid of greater than 17 and retired due to collision?
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT DISTINCT blockcode FROM room WHERE unavailable = 0
What are the unique block codes that have available rooms?
CREATE TABLE room (blockcode VARCHAR, unavailable VARCHAR)
SELECT AVG(total) FROM table_name_98 WHERE a_score < 6.9
What's the total when A Score was less than 6.9?
CREATE TABLE table_name_98 (total INTEGER, a_score INTEGER)