answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT north_america FROM table_name_74 WHERE title = "phantom brave"
Tell me the north america for phantom brave
CREATE TABLE table_name_74 (north_america VARCHAR, title VARCHAR)
SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0"
Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0?
CREATE TABLE table_name_66 (points_won INTEGER, total_matches VARCHAR, total_w_l_h VARCHAR)
SELECT away_team FROM table_name_30 WHERE venue = "windy hill"
Which away team was at windy hill?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(no_in_season) FROM table_18274425_1 WHERE us_viewers__millions_ = "2.65"
How many episodes had a viewership of 2.65 million?
CREATE TABLE table_18274425_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(season) FROM table_25538763_1
When was the earliest season of Juncadella's career?
CREATE TABLE table_25538763_1 (season INTEGER)
SELECT opponent FROM table_name_83 WHERE method = "submission (rear naked choke) at 4:02 of round 2"
who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2?
CREATE TABLE table_name_83 (opponent VARCHAR, method VARCHAR)
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
Can one access the Jersey territory using a Croatian identity card?
CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
SELECT high_rebounds FROM table_name_55 WHERE game = 12
Who had the high rebounds for game 12?
CREATE TABLE table_name_55 (high_rebounds VARCHAR, game VARCHAR)
SELECT years FROM table_name_15 WHERE distance = "marathon" AND wins = 3
I want the years for marathon distance and wins of 3
CREATE TABLE table_name_15 (years VARCHAR, distance VARCHAR, wins VARCHAR)
SELECT SUM(pick__number) FROM table_name_59 WHERE college = "tennessee" AND overall < 270
How many Picks have a College of tennessee, and an Overall smaller than 270?
CREATE TABLE table_name_59 (pick__number INTEGER, college VARCHAR, overall VARCHAR)
SELECT result FROM table_1341663_44 WHERE incumbent = "George H. Mahon"
Name the result when the incumbent was george h. mahon
CREATE TABLE table_1341663_44 (result VARCHAR, incumbent VARCHAR)
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)"
Which round has a record of 5-3 (1)?
CREATE TABLE table_name_51 (round INTEGER, record VARCHAR)
SELECT result FROM table_name_29 WHERE round < 3 AND location = "auckland, new zealand" AND method = "tko"
What is the result when the round is less than 3, the location is in Auckland, New Zealand, and tko is the method?
CREATE TABLE table_name_29 (result VARCHAR, method VARCHAR, round VARCHAR, location VARCHAR)
SELECT country FROM table_name_67 WHERE icao = "ekch"
What Country has a ICAO of EKCH?
CREATE TABLE table_name_67 (country VARCHAR, icao VARCHAR)
SELECT player FROM table_name_90 WHERE place = "t9" AND score = 73 - 70 = 143
What is Player, when Place is "T9", and when Score is "73-70=143"?
CREATE TABLE table_name_90 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT m60a3_patton FROM table_name_66 WHERE m1a1_abrams = "km (mi)"
What is the M60A3 that has an M1A1 of Km (mi)?
CREATE TABLE table_name_66 (m60a3_patton VARCHAR, m1a1_abrams VARCHAR)
SELECT COUNT(height) FROM table_name_36 WHERE current_club = "alba berlin" AND player = "patrick femerling"
What is the height of Patrick Femerling, of the Alba Berlin club?
CREATE TABLE table_name_36 (height VARCHAR, current_club VARCHAR, player VARCHAR)
SELECT date_of_birth__age_ FROM table_name_85 WHERE caps = 32
What is the birthday of caps of 32?
CREATE TABLE table_name_85 (date_of_birth__age_ VARCHAR, caps VARCHAR)
SELECT COUNT(county_ies__)[a_] FROM table_249512_2 WHERE place_name = "Macedonia"
How many counties have a place name of Macedonia?
CREATE TABLE table_249512_2 (a_ VARCHAR, county_ies__ VARCHAR, place_name VARCHAR)
SELECT college_junior_club_team FROM table_2850912_12 WHERE nhl_team = "Winnipeg Jets"
To which organziation does the winnipeg jets belong to?
CREATE TABLE table_2850912_12 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT AVG(lead_maragin) FROM table_name_16 WHERE dates_administered = "october 6, 2008"
What was the average lead maragin for the dates administered of october 6, 2008?
CREATE TABLE table_name_16 (lead_maragin INTEGER, dates_administered VARCHAR)
SELECT SUM(rank) FROM table_name_84 WHERE nation = "hungary (hun)" AND bronze < 0
What is the total rank of Hungary (HUN) when the bronze medals were less than 0?
CREATE TABLE table_name_84 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT result FROM table_17386066_2 WHERE date = "Nov. 26"
What was the result of the game that was played on Nov. 26, 1972?
CREATE TABLE table_17386066_2 (result VARCHAR, date VARCHAR)
SELECT COUNT(pick__number) FROM table_15353123_1 WHERE player = "Dean Kirkland"
How many players named Dean Kirkland were picked
CREATE TABLE table_15353123_1 (pick__number VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_name_59 WHERE nationality = "canada" AND position = "right wing" AND pick__number = "43"
What team draft a player from Canada that was picked #43 and plays right wing?
CREATE TABLE table_name_59 (nhl_team VARCHAR, pick__number VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT time_retired FROM table_name_35 WHERE laps < 54 AND driver = "mark donohue"
what is the time/retired when the laps is less than 54 and the driver is mark donohue?
CREATE TABLE table_name_35 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT player FROM table_name_89 WHERE strike_rate = "79.62"
Which player has 79.62 as the strike rate?
CREATE TABLE table_name_89 (player VARCHAR, strike_rate VARCHAR)
SELECT MIN(league) AS Cup FROM table_name_34 WHERE league = 434
What is the lowest number of League Cups a player with a 434 league has?
CREATE TABLE table_name_34 (league INTEGER)
SELECT round FROM table_name_41 WHERE date = "10 april 2007"
Which round happened on 10 april 2007?
CREATE TABLE table_name_41 (round VARCHAR, date VARCHAR)
SELECT drawn FROM table_name_56 WHERE tries_against = "45"
Where there any Draws with 45 tries against?
CREATE TABLE table_name_56 (drawn VARCHAR, tries_against VARCHAR)
SELECT SUM(frequency) FROM table_name_66 WHERE status = "owned by cumulus media" AND format = "news"
What is the total frequency have a Status of owned by cumulus media, and a Format of news?
CREATE TABLE table_name_66 (frequency INTEGER, status VARCHAR, format VARCHAR)
SELECT tipuani_municipality FROM table_2509202_2 WHERE tacacoma_municipality = "6"
tipuani municipality when tacacoma municipality is 6?
CREATE TABLE table_2509202_2 (tipuani_municipality VARCHAR, tacacoma_municipality VARCHAR)
SELECT SUM(gold) FROM table_name_8 WHERE nation = "russia" AND rank > 1
What amount of Gold does Russia have and have a rank larger than 1?
CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR, rank VARCHAR)
SELECT location FROM table_name_84 WHERE record = "10-8-1"
What is the location of the match with the record 10-8-1?
CREATE TABLE table_name_84 (location VARCHAR, record VARCHAR)
SELECT home FROM table_name_69 WHERE date = "november 2, 2007"
Who was the home team for the game played on November 2, 2007?
CREATE TABLE table_name_69 (home VARCHAR, date VARCHAR)
SELECT character FROM table_name_4 WHERE title_rank = "various"
Which character had a title rank of various?
CREATE TABLE table_name_4 (character VARCHAR, title_rank VARCHAR)
SELECT MIN(profits__billion_) AS $_ FROM table_name_83 WHERE market_value__billion_$_ < 201.3 AND headquarters = "united states" AND company = "jpmorgan chase"
What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?
CREATE TABLE table_name_83 (profits__billion_ INTEGER, company VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR)
SELECT MIN(apps) FROM table_name_29 WHERE club = "barcelona" AND season = "1996/97" AND rank < 7
Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?
CREATE TABLE table_name_29 (apps INTEGER, rank VARCHAR, club VARCHAR, season VARCHAR)
SELECT company FROM table_name_69 WHERE price_in_usd = "free / negotiable"
Name the Company which has a Price in USD of free / negotiable?
CREATE TABLE table_name_69 (company VARCHAR, price_in_usd VARCHAR)
SELECT score FROM table_name_69 WHERE date = "april 23"
What is the Score for the Date of April 23?
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR)
SELECT MIN(scored) FROM table_18703133_6 WHERE position = 6
What is scored with the position of 6?
CREATE TABLE table_18703133_6 (scored INTEGER, position VARCHAR)
SELECT overall_record FROM table_name_11 WHERE since_beginning_of_big_12 = "ou, 27-3"
What is the Overall Record when Since Beginning of Big 12 is ou, 27-3?
CREATE TABLE table_name_11 (overall_record VARCHAR, since_beginning_of_big_12 VARCHAR)
SELECT country_or_territory_with_flag FROM table_14098_1 WHERE capital = "Santiago"
What country'c capital is santiago?
CREATE TABLE table_14098_1 (country_or_territory_with_flag VARCHAR, capital VARCHAR)
SELECT former_school FROM table_29418619_1 WHERE hometown = "Detroit, MI"
What is the former school of the player from Detroit, MI?
CREATE TABLE table_29418619_1 (former_school VARCHAR, hometown VARCHAR)
SELECT SUM(rebounds) FROM table_name_6 WHERE name = "novica veličković" AND games < 22
How many Rebounds did Novica Veličković get in less than 22 Games?
CREATE TABLE table_name_6 (rebounds INTEGER, name VARCHAR, games VARCHAR)
SELECT score FROM table_name_29 WHERE year = "1990"
What's the score in 1990?
CREATE TABLE table_name_29 (score VARCHAR, year VARCHAR)
SELECT attendance FROM table_name_88 WHERE tie_no = "30"
How many people attended the game with a Tie no of 30?
CREATE TABLE table_name_88 (attendance VARCHAR, tie_no VARCHAR)
SELECT location FROM table_251272_4 WHERE title_at_the_time = "Prime Minister of Sri Lanka"
Where was the attempt on the Prime Minister of Sri Lanka's life made?
CREATE TABLE table_251272_4 (location VARCHAR, title_at_the_time VARCHAR)
SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–4]"
Who is the runner up when the score was 3–6, 6–3, [10–4]?
CREATE TABLE table_name_50 (runner_up VARCHAR, score VARCHAR)
SELECT province FROM table_1024710_2 WHERE electorate = "Grey and Bell"
Which province is grey and bell electorate in
CREATE TABLE table_1024710_2 (province VARCHAR, electorate VARCHAR)
SELECT title FROM table_2409041_6 WHERE no_in_season = 2
What is the title of season 2?
CREATE TABLE table_2409041_6 (title VARCHAR, no_in_season VARCHAR)
SELECT date FROM table_name_77 WHERE against = 25 AND opposing_teams = "australia"
What day was the opposing team Australia and the against 25?
CREATE TABLE table_name_77 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT result FROM table_25505246_7 WHERE opponent = "Andreja Klepač"
What were the results when Hanne Skak Jensen faced Andreja Klepač as opponent?
CREATE TABLE table_25505246_7 (result VARCHAR, opponent VARCHAR)
SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus"
Parts Plus sponsors what driver?
CREATE TABLE table_name_21 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
SELECT regulations FROM table_name_13 WHERE winning_drivers = "carlos arzani"
What regulations have carlos arzani as the winning driver?
CREATE TABLE table_name_13 (regulations VARCHAR, winning_drivers VARCHAR)
SELECT penanced FROM table_name_48 WHERE total = "7666"
How many were penanced for a total of 7666?
CREATE TABLE table_name_48 (penanced VARCHAR, total VARCHAR)
SELECT MIN(rank__cable_) FROM table_25721_3 WHERE total_viewers = 1464000
What is the lowest cable rank of an episode with 1464000 viewers?
CREATE TABLE table_25721_3 (rank__cable_ INTEGER, total_viewers VARCHAR)
SELECT city FROM table_name_57 WHERE country = "libya" AND iata = "ben"
what is the city when the country is libya and the iata is ben?
CREATE TABLE table_name_57 (city VARCHAR, country VARCHAR, iata VARCHAR)
SELECT pName, HS FROM Player WHERE HS < 1500
Find the name and training hours of players whose hours are below 1500.
CREATE TABLE Player (pName VARCHAR, HS INTEGER)
SELECT MIN(win__percentage) FROM table_name_53 WHERE away = "3-2" AND season = "2011"
What was the lowest win% with an away score of 3-2 in 2011 season?
CREATE TABLE table_name_53 (win__percentage INTEGER, away VARCHAR, season VARCHAR)
SELECT try_bonus FROM table_name_82 WHERE tries_against = "37"
With 37 tries against, what is the try bonus?
CREATE TABLE table_name_82 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2
Report all advisors that advise more than 2 students.
CREATE TABLE STUDENT (Advisor VARCHAR)
SELECT round FROM table_name_7 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "30 june"
What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?
CREATE TABLE table_name_7 (round VARCHAR, winning_team VARCHAR, date VARCHAR)
SELECT a_league FROM table_name_7 WHERE saves = 39
What is the A-league with 39 saves?
CREATE TABLE table_name_7 (a_league VARCHAR, saves VARCHAR)
SELECT COUNT(attendance) FROM table_name_50 WHERE visitor = "bulls"
Name the total number in attendance for when the bulls visited
CREATE TABLE table_name_50 (attendance VARCHAR, visitor VARCHAR)
SELECT average_speed__mph_ FROM table_1771753_3 WHERE driver = "Tony Kanaan"
When tony kanaan is the driver what is the average speed miles per hour?
CREATE TABLE table_1771753_3 (average_speed__mph_ VARCHAR, driver VARCHAR)
SELECT place FROM table_name_61 WHERE player = "fred couples"
What did Fred Couples place?
CREATE TABLE table_name_61 (place VARCHAR, player VARCHAR)
SELECT type FROM table_name_18 WHERE in_service > 2 AND vessel = "kobben class"
What type of ship is a Kobben class vessel that has been in service longer than 2?
CREATE TABLE table_name_18 (type VARCHAR, in_service VARCHAR, vessel VARCHAR)
SELECT date FROM table_name_21 WHERE theme = "fate or fortune"
What date has a theme of fate or fortune?
CREATE TABLE table_name_21 (date VARCHAR, theme VARCHAR)
SELECT Nickname FROM school_details WHERE Division <> "Division 1"
Show the nicknames of schools that are not in division 1.
CREATE TABLE school_details (Nickname VARCHAR, Division VARCHAR)
SELECT COUNT(*) FROM battle WHERE NOT id IN (SELECT lost_in_battle FROM ship WHERE tonnage = '225')
How many battles did not lose any ship with tonnage '225'?
CREATE TABLE ship (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR); CREATE TABLE battle (id VARCHAR, lost_in_battle VARCHAR, tonnage VARCHAR)
SELECT released FROM table_name_68 WHERE series_sorted = "6y/ai"
what is the released when the series is sorted 6y/ai?
CREATE TABLE table_name_68 (released VARCHAR, series_sorted VARCHAR)
SELECT 2013 FROM table_name_64 WHERE 2006 = "grand slam tournaments"
Which 2013 has a 2006 of grand slam tournaments?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT challenge FROM table_24798489_2 WHERE episode_number = 28
What was the challenge for episode 28?
CREATE TABLE table_24798489_2 (challenge VARCHAR, episode_number VARCHAR)
SELECT COUNT(*) FROM FLIGHTS
How many flights do we have?
CREATE TABLE FLIGHTS (Id VARCHAR)
SELECT record FROM table_name_31 WHERE opponent = "@ indiana pacers"
For the game where the opponent is listed as @ Indiana Pacers, what was the end record?
CREATE TABLE table_name_31 (record VARCHAR, opponent VARCHAR)
SELECT appearances FROM table_name_18 WHERE position_[f_] = "defender" AND date_to_[h_] = "1938"
What is Appearances, when Postion [F ] is "Defender", and when Date to [H ] is "1938"?
CREATE TABLE table_name_18 (appearances VARCHAR, position_ VARCHAR, f_ VARCHAR, date_to_ VARCHAR, h_ VARCHAR)
SELECT COUNT(touchdowns) FROM table_14342480_7 WHERE extra_points > 5.0
How many touchdowns were scored by players who scored more than 5.0 extra points?
CREATE TABLE table_14342480_7 (touchdowns VARCHAR, extra_points INTEGER)
SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research'
Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described
CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, organisation_id VARCHAR, grant_amount VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR); CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR)
SELECT £_saved FROM table_29538735_1 WHERE _percentage_electricity_reduction = "8.9%"
When 8.9% is the electricity reduction percentage what is the £ saved?
CREATE TABLE table_29538735_1 (£_saved VARCHAR, _percentage_electricity_reduction VARCHAR)
SELECT f_id, genre_is, artist_name FROM song WHERE languages = "english" ORDER BY rating
List the id, genre and artist name of English songs ordered by rating.
CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, artist_name VARCHAR, languages VARCHAR, rating VARCHAR)
SELECT cover_model FROM table_name_43 WHERE centerfold_model = "marketa janska"
Who was the Cover model when the Centerfold Model was Marketa Janska?
CREATE TABLE table_name_43 (cover_model VARCHAR, centerfold_model VARCHAR)
SELECT COUNT(apps) FROM table_name_90 WHERE goals = 2
What is the final number of apps with 2 goals?
CREATE TABLE table_name_90 (apps VARCHAR, goals VARCHAR)
SELECT SUM(lane) FROM table_name_11 WHERE rank > 22
What are the total lanes that have a rank larger than 22?
CREATE TABLE table_name_11 (lane INTEGER, rank INTEGER)
SELECT COUNT(tons) FROM table_name_14 WHERE nationality = "norway"
How many tons was the ship from norway?
CREATE TABLE table_name_14 (tons VARCHAR, nationality VARCHAR)
SELECT MAX(markatal) FROM table_name_69 WHERE municipality = "leirvík" AND inhabitants_per_km² > 79
What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79?
CREATE TABLE table_name_69 (markatal INTEGER, municipality VARCHAR, inhabitants_per_km² VARCHAR)
SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = "Ashley"
What is the phone number of the performer Ashley?
CREATE TABLE PERFORMERS (Customer_Phone VARCHAR, Customer_Name VARCHAR)
SELECT premiere FROM table_22951646_1 WHERE number_of_episodes = 8
Name the premiere for 8 episodes
CREATE TABLE table_22951646_1 (premiere VARCHAR, number_of_episodes VARCHAR)
SELECT country FROM table_name_21 WHERE score = 71 - 69 - 70 - 69 = 279
What is the country of the player whose score is 71-69-70-69=279?
CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)
SELECT hangul FROM table_name_66 WHERE hanja = "西, 徐"
What is the Hangul when the Hanja is 西, 徐?
CREATE TABLE table_name_66 (hangul VARCHAR, hanja VARCHAR)
SELECT MIN(year) FROM table_name_51 WHERE tournament = "beijing"
What is the lowest Year, when Tournament is "Beijing"?
CREATE TABLE table_name_51 (year INTEGER, tournament VARCHAR)
SELECT album FROM table_name_50 WHERE label = "hammer music / nail records" AND year = 2012
What's the name of the album from 2012 with a Hammer Music / Nail Records label?
CREATE TABLE table_name_50 (album VARCHAR, label VARCHAR, year VARCHAR)
SELECT date FROM table_name_43 WHERE opponent = "green bay packers"
On what date was the opponent the Green Bay Packers?
CREATE TABLE table_name_43 (date VARCHAR, opponent VARCHAR)
SELECT SUM(crowd) FROM table_name_23 WHERE venue = "princes park"
What is the total crowd count for the venue Princes Park?
CREATE TABLE table_name_23 (crowd INTEGER, venue VARCHAR)
SELECT MAX(week) FROM table_name_90 WHERE opponent = "atlanta falcons"
What is the largest week with the Atlanta Falcons as the opponent?
CREATE TABLE table_name_90 (week INTEGER, opponent VARCHAR)
SELECT MAX(operating_income_) AS $m_ FROM table_name_23 WHERE _percentage_change_on_year = "2" AND value__$m_ < 1 OFFSET 036
What is the highest operating income that change by 2% and is less than $1,036m?
CREATE TABLE table_name_23 (operating_income_ INTEGER, _percentage_change_on_year VARCHAR, value__$m_ VARCHAR)
SELECT MIN(seats_2001) FROM table_21132404_1 WHERE seats_2006 = 11
How many seats were there in 2001 when there were 11 seats in 2006?
CREATE TABLE table_21132404_1 (seats_2001 INTEGER, seats_2006 VARCHAR)
SELECT record FROM table_13259009_2 WHERE opponent = "Los Angeles Rams"
What was the record when they played the Los Angeles Rams?
CREATE TABLE table_13259009_2 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(season) FROM table_1218784_1 WHERE rank = 16
How many seasons had a rank of 16?
CREATE TABLE table_1218784_1 (season VARCHAR, rank VARCHAR)
SELECT partnerships FROM table_name_70 WHERE runs = "27"
Which partnership has a run number of 27?
CREATE TABLE table_name_70 (partnerships VARCHAR, runs VARCHAR)