answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT lost FROM table_name_67 WHERE points = "86"
What lost has 86 points?
CREATE TABLE table_name_67 (lost VARCHAR, points VARCHAR)
SELECT venue FROM table_name_98 WHERE crowd > 30 OFFSET 000
What venue featured a crowd of over 30,000?
CREATE TABLE table_name_98 (venue VARCHAR, crowd INTEGER)
SELECT opponent FROM table_name_52 WHERE result = "w 31-21"
Tell mem the opponent for result of w 31-21
CREATE TABLE table_name_52 (opponent VARCHAR, result VARCHAR)
SELECT competition FROM table_name_26 WHERE location = "addis ababa"
Which competition was held at Addis Ababa?
CREATE TABLE table_name_26 (competition VARCHAR, location VARCHAR)
SELECT females FROM table_name_71 WHERE language = "romanian"
What females speak Romanian?
CREATE TABLE table_name_71 (females VARCHAR, language VARCHAR)
SELECT MAX(losses) FROM table_16512618_1 WHERE manager = "Leslie Mann"
Name the most losses for leslie mann
CREATE TABLE table_16512618_1 (losses INTEGER, manager VARCHAR)
SELECT results FROM table_name_36 WHERE seed = "#12" AND year < 1996
What Results has a Seed #12 and a Year that's smaller than 1996
CREATE TABLE table_name_36 (results VARCHAR, seed VARCHAR, year VARCHAR)
SELECT qual FROM table_name_75 WHERE finish = "9"
Which qual also has a finish total of 9?
CREATE TABLE table_name_75 (qual VARCHAR, finish VARCHAR)
SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1
Show the company of the tallest entrepreneur.
CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR, Height VARCHAR)
SELECT date FROM table_name_62 WHERE round = "1r" AND result = "2–6, 5–7, 2–6"
On what date did the match take place in a round of 1r and have a result 2–6, 5–7, 2–6?
CREATE TABLE table_name_62 (date VARCHAR, round VARCHAR, result VARCHAR)
SELECT host_team FROM table_name_48 WHERE date = "november 17"
Who was the host team on November 17?
CREATE TABLE table_name_48 (host_team VARCHAR, date VARCHAR)
SELECT range FROM table_name_7 WHERE name = "mount fukushima" AND rank = 38
Which range includes Mount Fukushima, and is ranked 38?
CREATE TABLE table_name_7 (range VARCHAR, name VARCHAR, rank VARCHAR)
SELECT record FROM table_name_95 WHERE attendance = "43,502"
What was the record when the attendance was 43,502?
CREATE TABLE table_name_95 (record VARCHAR, attendance VARCHAR)
SELECT stage FROM table_21326205_2 WHERE rally_leader = "Sébastien Loeb" AND name = "Tempo 2"
In which special stage named Tempo 2 was Sébastien Loeb the leader?
CREATE TABLE table_21326205_2 (stage VARCHAR, rally_leader VARCHAR, name VARCHAR)
SELECT position FROM table_name_81 WHERE round > 3
What position is the player selected that has a round value over 3?
CREATE TABLE table_name_81 (position VARCHAR, round INTEGER)
SELECT MIN(assists) FROM table_name_71 WHERE pims = 70 AND goals < 19
What is the smallest number of assists with 70 Pims and less than 19 goals?
CREATE TABLE table_name_71 (assists INTEGER, pims VARCHAR, goals VARCHAR)
SELECT SUM(points) FROM table_name_28 WHERE assists = 41
How many points have 41 assists?
CREATE TABLE table_name_28 (points INTEGER, assists VARCHAR)
SELECT championship FROM table_name_41 WHERE surface = "clay" AND score_in_the_final = "6–2, 5–7, 6–4, 6–2"
What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface?
CREATE TABLE table_name_41 (championship VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
SELECT score FROM table_name_14 WHERE home = "olimpia"
What is the score of the home team olimpia?
CREATE TABLE table_name_14 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_27 WHERE set_2 = "25-20" AND total = "75 - 49"
What is the Score when Set 2 shows 25-20, and a Total of 75 - 49?
CREATE TABLE table_name_27 (score VARCHAR, set_2 VARCHAR, total VARCHAR)
SELECT brand, name FROM camera_lens ORDER BY max_aperture DESC
Find the brand and name for each camera lens, and sort in descending order of maximum aperture.
CREATE TABLE camera_lens (brand VARCHAR, name VARCHAR, max_aperture VARCHAR)
SELECT company FROM table_name_14 WHERE director = "simon stone" AND year < 2011
What company does Simon Stone direct earlier than 2011?
CREATE TABLE table_name_14 (company VARCHAR, director VARCHAR, year VARCHAR)
SELECT regular_season_results FROM table_21756039_1 WHERE year = "2011-2012"
What is the regular season results for the year 2011-2012?
CREATE TABLE table_21756039_1 (regular_season_results VARCHAR, year VARCHAR)
SELECT cause_of_destruction FROM table_19342760_1 WHERE name = "Mausoleum at Halicarnassus"
What caused the collapse of the Mausoleum at Halicarnassus?
CREATE TABLE table_19342760_1 (cause_of_destruction VARCHAR, name VARCHAR)
SELECT league FROM table_15056103_1 WHERE year = 2009
What league were they in in 2009?
CREATE TABLE table_15056103_1 (league VARCHAR, year VARCHAR)
SELECT last_school_college FROM table_29598261_1 WHERE name = "Chris McNamara"
what is the school for chris mcnamara?
CREATE TABLE table_29598261_1 (last_school_college VARCHAR, name VARCHAR)
SELECT location FROM table_name_31 WHERE score = "3–2" AND record = "3–2–3"
Which location has a Score of 3–2, and a Record of 3–2–3?
CREATE TABLE table_name_31 (location VARCHAR, score VARCHAR, record VARCHAR)
SELECT COUNT(directed_by) FROM table_22835602_1 WHERE production_code = "1ARK08"
How many directors were there for the production code 1ark08?
CREATE TABLE table_22835602_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT away_team FROM table_name_85 WHERE home_team = "essendon"
Who played as the away team when Essendon was the home team?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(judges) FROM table_19744915_22 WHERE rank = 5
How many judges points did the couple ranked at number 5 have?
CREATE TABLE table_19744915_22 (judges INTEGER, rank VARCHAR)
SELECT no_in_season FROM table_27491610_2 WHERE us_viewers__millions_ = "10.18"
What number in season had 10.18 million US viewers?
CREATE TABLE table_27491610_2 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MAX(ministries) FROM table_21422977_1
What is the most amount of ministries?
CREATE TABLE table_21422977_1 (ministries INTEGER)
SELECT launched FROM table_name_97 WHERE name = "minerva"
what builder launched the name minerva
CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR)
SELECT MAX(rank) FROM table_22355_62 WHERE gold = 4
What is the maximum rank of the nation that won 4 gold medals?
CREATE TABLE table_22355_62 (rank INTEGER, gold VARCHAR)
SELECT 1 AS st_leg FROM table_name_8 WHERE team_1 = "water corporation"
What's the score of the 1st leg when Water Corporation was Team 1?
CREATE TABLE table_name_8 (team_1 VARCHAR)
SELECT bore_ & _stroke FROM table_name_28 WHERE carburetor = "4-barrel" AND vin_code = "a"
What are the bore & stroke specifications for an engine with 4-barrel carburetor and VIN code of A?
CREATE TABLE table_name_28 (bore_ VARCHAR, _stroke VARCHAR, carburetor VARCHAR, vin_code VARCHAR)
SELECT AVG(rank) FROM table_name_60 WHERE silver < 0
Which mean rank had a silver number smaller than 0?
CREATE TABLE table_name_60 (rank INTEGER, silver INTEGER)
SELECT first_elected FROM table_2668378_5 WHERE district = "Kentucky 1"
Name the first elected for kentucky 1
CREATE TABLE table_2668378_5 (first_elected VARCHAR, district VARCHAR)
SELECT MAX(games) FROM table_name_21 WHERE rank = 3
What is the number of Games for the player in Rank 3?
CREATE TABLE table_name_21 (games INTEGER, rank VARCHAR)
SELECT gold FROM table_name_68 WHERE year = 1994
What Gold has the Year of 1994?
CREATE TABLE table_name_68 (gold VARCHAR, year VARCHAR)
SELECT airport FROM table_name_82 WHERE country = "france" AND city = "montpellier"
What is the Airport when France was the country, and Montpellier was the city?
CREATE TABLE table_name_82 (airport VARCHAR, country VARCHAR, city VARCHAR)
SELECT opponent FROM table_name_89 WHERE result = "40-20"
Who was the opponent with a score of 40-20?
CREATE TABLE table_name_89 (opponent VARCHAR, result VARCHAR)
SELECT STRUCT(low) FROM table_1942366_9 WHERE STRUCT(high) = "12.0"
What's the C_{low} value when C_{high} is 12.0?
CREATE TABLE table_1942366_9 (low VARCHAR, high VARCHAR)
SELECT COUNT(high_assists) FROM table_27902171_5 WHERE location_attendance = "Seattle Center Coliseum 14,180"
How many people are high assists when location attendance is Seattle Center Coliseum 14,180?
CREATE TABLE table_27902171_5 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT colours FROM table_19624708_1 WHERE owner = "David Langdon"
What colors does David Langdon use?
CREATE TABLE table_19624708_1 (colours VARCHAR, owner VARCHAR)
SELECT name FROM table_name_46 WHERE time = "01:56:52"
What Name has a Time of 01:56:52?
CREATE TABLE table_name_46 (name VARCHAR, time VARCHAR)
SELECT genre FROM table_name_92 WHERE english_title__chinese_title_ = "the romance of the white hair maiden 白髮魔女傳"
Which Genre has an English title (Chinese title) of the romance of the white hair maiden 白髮魔女傳?
CREATE TABLE table_name_92 (genre VARCHAR, english_title__chinese_title_ VARCHAR)
SELECT sport FROM table_name_22 WHERE event = "94kg men's weightlifting"
Which sport has 94kg men's weightlifting as one of its events?
CREATE TABLE table_name_22 (sport VARCHAR, event VARCHAR)
SELECT name FROM table_name_31 WHERE number < 5 AND type = "bo-bodh"
What is the name of the bo-bodh train with a number less than 5?
CREATE TABLE table_name_31 (name VARCHAR, number VARCHAR, type VARCHAR)
SELECT deputy_prime_minister FROM table_name_8 WHERE term = "7th legislature" AND left_office = "2004"
Which deputy prime minister left office in 2004 and was in the 7th legislature?
CREATE TABLE table_name_8 (deputy_prime_minister VARCHAR, term VARCHAR, left_office VARCHAR)
SELECT result FROM table_name_76 WHERE week = 11
What was the result of week 11?
CREATE TABLE table_name_76 (result VARCHAR, week VARCHAR)
SELECT to_par FROM table_name_57 WHERE place = "t5" AND score = 70 - 68 = 138
What is To par, when Place is "T5", and when Score is "70-68=138"?
CREATE TABLE table_name_57 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT SUM(grid) FROM table_name_22 WHERE driver = "kazuyoshi hoshino" AND laps < 71
What is the grid total for kazuyoshi hoshino with under 71 laps?
CREATE TABLE table_name_22 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT championship FROM table_22597626_6 WHERE opponent_in_the_final = "Peter McNamara"
Name the championship for peter mcnamara
CREATE TABLE table_22597626_6 (championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_55 WHERE erp_w > 250
What is the frequency MHz of the ERP W's greater than 250?
CREATE TABLE table_name_55 (frequency_mhz INTEGER, erp_w INTEGER)
SELECT date FROM table_name_54 WHERE location_attendance = "seattle center coliseum"
When was the game played that was at the Seattle Center Coliseum?
CREATE TABLE table_name_54 (date VARCHAR, location_attendance VARCHAR)
SELECT hometown FROM table_11677691_4 WHERE school = "Shanley High school"
Where was the hometown for the player that attended Shanley High School?
CREATE TABLE table_11677691_4 (hometown VARCHAR, school VARCHAR)
SELECT COUNT(winning__percentage) FROM table_name_92 WHERE seasons = 2 AND coach = "guy lowman"
how many times is the seasons 2 and the coach guy lowman?
CREATE TABLE table_name_92 (winning__percentage VARCHAR, seasons VARCHAR, coach VARCHAR)
SELECT arena__capacity_ FROM table_name_19 WHERE town = "kazan"
What is the Arena o Kazan?
CREATE TABLE table_name_19 (arena__capacity_ VARCHAR, town VARCHAR)
SELECT SUM(engine_capacity) FROM table_name_53 WHERE mpg_uk_urban__cold_ < 12.2 AND mpg_uk_extra_urban < 18.8 AND mpg_us_urban < 7.2
What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2?
CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)
SELECT opponent FROM table_name_53 WHERE kickoff_[a_] = "1:00" AND record = "3-7"
Which game had a kickoff at 1:00 and a record of 3-7?
CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT COUNT(votes) FROM table_name_4 WHERE artist = "sahlene" AND place > 1
What is the total number of votes Sahlene with a place below 1 has?
CREATE TABLE table_name_4 (votes VARCHAR, artist VARCHAR, place VARCHAR)
SELECT high_assists FROM table_27744844_7 WHERE game = 35
Who had the most assists and how many did they have in game 35?
CREATE TABLE table_27744844_7 (high_assists VARCHAR, game VARCHAR)
SELECT MAX(total) FROM table_name_4 WHERE nation = "united states" AND bronze > 3
Which Total has a Nation of united states, and a Bronze larger than 3?
CREATE TABLE table_name_4 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT COUNT(attendance) FROM table_name_28 WHERE date = "april 14"
How many attended the game on april 14?
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
SELECT date FROM table_name_40 WHERE competition = "2006 fifa world cup qualification" AND venue = "alamodome, san antonio, united states"
What date has 2006 fifa world cup qualification as the competition, and alamodome, san antonio, united States as the venue?
CREATE TABLE table_name_40 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT MAX(established) FROM table_1414702_3 WHERE high_school = "Mount Tahoma"
When was Mount Tahoma established?
CREATE TABLE table_1414702_3 (established INTEGER, high_school VARCHAR)
SELECT torque FROM table_name_49 WHERE name = "1.6 petrol" AND power = "daewoo"
What is the torque of the 1.6 petrol with daewoo power?
CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR, power VARCHAR)
SELECT player FROM table_name_24 WHERE to_par = "+1" AND score = 73 - 71 - 71 = 217
What Player has a To par of +1 and a Score of 73-71-71=217?
CREATE TABLE table_name_24 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT week_4 FROM table_name_26 WHERE week_3 = "35.40"
What is week 4 if week 3 is 35.40?
CREATE TABLE table_name_26 (week_4 VARCHAR, week_3 VARCHAR)
SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id
For each trip, return its ending station's installation date.
CREATE TABLE station (installation_date VARCHAR, id VARCHAR); CREATE TABLE trip (id VARCHAR, end_station_id VARCHAR)
SELECT money___£__ FROM table_name_54 WHERE score = 72 - 70 - 71 - 72 = 285
How much money does the player with a 72-70-71-72=285 score have?
CREATE TABLE table_name_54 (money___£__ VARCHAR, score VARCHAR)
SELECT name FROM table_name_51 WHERE winning_constructor = "bugatti" AND circuit = "monza"
What is the name for the Monza circuit race were Bugatti was the winning constructor?
CREATE TABLE table_name_51 (name VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
SELECT attendance FROM table_name_7 WHERE date = "november 6, 1966"
What is the Attendance of the game on November 6, 1966?
CREATE TABLE table_name_7 (attendance VARCHAR, date VARCHAR)
SELECT country FROM table_name_92 WHERE name = "dmitriy karpov"
What country did Dmitriy Karpov represent?
CREATE TABLE table_name_92 (country VARCHAR, name VARCHAR)
SELECT japanese_title FROM table_name_13 WHERE romaji_title = "ryūsei no kizuna"
What's the Japanese Title when the Romaji title was Ryūsei No Kizuna?
CREATE TABLE table_name_13 (japanese_title VARCHAR, romaji_title VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "peterborough united"
What date did the home game for peterborough united take place?
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT january_15_16 FROM table_25252080_3 WHERE november_3 = "133"
What number is shown for january 15-16 when november 3 is 133?
CREATE TABLE table_25252080_3 (january_15_16 VARCHAR, november_3 VARCHAR)
SELECT road_team FROM table_name_53 WHERE home_team = "philadelphia" AND result = "105-102"
What is the road team of the game with Philadelphia as the home team with a result of 105-102?
CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT COUNT(overall) FROM table_name_20 WHERE college = "villanova" AND round < 2
Name the total number of overall for villanova and round less than 2
CREATE TABLE table_name_20 (overall VARCHAR, college VARCHAR, round VARCHAR)
SELECT team_2 FROM table_name_86 WHERE score = "2 - 1"
What is Team 2, when Score is 2 - 1?
CREATE TABLE table_name_86 (team_2 VARCHAR, score VARCHAR)
SELECT race AS Winner FROM table_name_48 WHERE pole_position = "niki lauda"
Who was the winner when Niki Lauda held pole position?
CREATE TABLE table_name_48 (race VARCHAR, pole_position VARCHAR)
SELECT country FROM table_name_59 WHERE finish = "t8"
What country had a Finish of t8?
CREATE TABLE table_name_59 (country VARCHAR, finish VARCHAR)
SELECT place FROM table_name_8 WHERE country = "united states" AND score = 68 - 73 - 68 = 209
What place is the United States in that has a score of 68-73-68=209?
CREATE TABLE table_name_8 (place VARCHAR, country VARCHAR, score VARCHAR)
SELECT notes FROM table_name_95 WHERE cardinalatial_order_and_title = "cardinal-deacon of s. maria in portico"
What are the notes of Cardinal-Deacon of S. Maria in Portico?
CREATE TABLE table_name_95 (notes VARCHAR, cardinalatial_order_and_title VARCHAR)
SELECT iata FROM table_name_30 WHERE city = "akureyri"
What is the IATA OF Akureyri?
CREATE TABLE table_name_30 (iata VARCHAR, city VARCHAR)
SELECT MAX(wins) FROM table_name_3 WHERE pos = "2nd" AND poles > 2
Which Wins is the highest one that has a Pos of 2nd, and Poles larger than 2?
CREATE TABLE table_name_3 (wins INTEGER, pos VARCHAR, poles VARCHAR)
SELECT 1977 FROM table_name_65 WHERE 1974 = "a"
What is the 1977 value that has a 1974 a value?
CREATE TABLE table_name_65 (Id VARCHAR)
SELECT COUNT(blackberry_os) FROM table_14260687_3 WHERE other = "0.1" AND quarter = "2012 Q2"
During the quarter of 2012 Q2, how many millions of Blackberry OS phones where shipped when 0.1 million others were shipped?
CREATE TABLE table_14260687_3 (blackberry_os VARCHAR, other VARCHAR, quarter VARCHAR)
SELECT train_number FROM table_29770377_1 WHERE train_name = "Island Express" AND destination = "Kanniyakumari"
What is the train number for the train name island express with a destination of kanniyakumari?
CREATE TABLE table_29770377_1 (train_number VARCHAR, train_name VARCHAR, destination VARCHAR)
SELECT COUNT(player) FROM table_2840500_4 WHERE college_junior_club_team = "Reipas Lahti (Finland)"
How many players came from college team reipas lahti (finland)?
CREATE TABLE table_2840500_4 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT MIN(no) FROM table_16494599_4 WHERE years_for_grizzlies = "1999"
What number does the player who was with the grizzles in 1999 wear?
CREATE TABLE table_16494599_4 (no INTEGER, years_for_grizzlies VARCHAR)
SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING COUNT(*) > 1
Find the name of the students who have more than one advisor?
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE advisor (s_id VARCHAR)
SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"
What is the average unit price of rock tracks?
CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR); CREATE TABLE TRACK (UnitPrice INTEGER, GenreId VARCHAR)
SELECT township FROM table_18600760_7 WHERE ansi_code = 1036632
If the ansi code is 1036632, what is the name of the township?
CREATE TABLE table_18600760_7 (township VARCHAR, ansi_code VARCHAR)
SELECT constructor FROM table_1140105_6 WHERE circuit = "Zeltweg Airfield"
what is the name of the constructor that has the circuit zeltweg airfield?
CREATE TABLE table_1140105_6 (constructor VARCHAR, circuit VARCHAR)
SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "94.4"
What is the 2fm for rnag 94.4?
CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR)
SELECT loss FROM table_name_73 WHERE record = "4-2"
What loss has 4-2 as the record?
CREATE TABLE table_name_73 (loss VARCHAR, record VARCHAR)
SELECT year FROM table_name_60 WHERE ratt = "1" AND comp = "49"
What year has a RAtt of 1 and a comp of 49?
CREATE TABLE table_name_60 (year VARCHAR, ratt VARCHAR, comp VARCHAR)
SELECT percentage FROM table_22825679_1 WHERE team = "Ole Miss"
Name the percentage for ole miss
CREATE TABLE table_22825679_1 (percentage VARCHAR, team VARCHAR)