question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Time/Retired for emerson fittipaldi?
CREATE TABLE table_name_14 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_14 WHERE driver = "emerson fittipaldi"
What are the maximum and minimum sales of the companies whose industries are not "Banking".
CREATE TABLE Companies (Sales_billion INTEGER, Industry VARCHAR)
SELECT MAX(Sales_billion), MIN(Sales_billion) FROM Companies WHERE Industry <> "Banking"
What is the grid with a +6.8359 time/retired?
CREATE TABLE table_name_53 (grid VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_53 WHERE time_retired = "+6.8359"
which school has 14 large championships
CREATE TABLE table_14115168_4 (school VARCHAR, national_titles VARCHAR)
SELECT school FROM table_14115168_4 WHERE national_titles = 14
What horse has the number 25?
CREATE TABLE table_20095300_1 (name VARCHAR, number VARCHAR)
SELECT name FROM table_20095300_1 WHERE number = 25
In what Year was the Film Your National Gallery winner?
CREATE TABLE table_name_70 (year VARCHAR, film VARCHAR)
SELECT year FROM table_name_70 WHERE film = "your national gallery"
What ws the method of resolution for the fight against joe kielur?
CREATE TABLE table_name_35 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_35 WHERE opponent = "joe kielur"
What tournament is on October 27, 2003?
CREATE TABLE table_name_84 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_84 WHERE date = "october 27, 2003"
What was the race status(es) with the lotus-ford 38/1 chassis?
CREATE TABLE table_181892_4 (race_status VARCHAR, chassis VARCHAR)
SELECT race_status FROM table_181892_4 WHERE chassis = "Lotus-Ford 38/1"
What college has the Chicago Stags?
CREATE TABLE table_name_60 (college VARCHAR, team VARCHAR)
SELECT college FROM table_name_60 WHERE team = "chicago stags"
How many millions of U.S. viewers watched episode 185?
CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)
SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185
Which frequency belongs to the beat branding?
CREATE TABLE table_name_58 (frequency VARCHAR, branding VARCHAR)
SELECT frequency FROM table_name_58 WHERE branding = "the beat"
When did Hollywood Records release a digital download?
CREATE TABLE table_name_87 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT date FROM table_name_87 WHERE label = "hollywood records" AND format = "digital download"
what is the high rebounds stat on april 11
CREATE TABLE table_17355716_10 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_17355716_10 WHERE date = "April 11"
Name the winning driver for monaco grand prix
CREATE TABLE table_name_41 (winning_driver VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix"
How many directed by have 2.80 as u.s. viewers (in millions)?
CREATE TABLE table_23499946_1 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT COUNT(directed_by) FROM table_23499946_1 WHERE us_viewers__in_millions_ = "2.80"
What are the dates where the versus team is South Africa?
CREATE TABLE table_21907770_4 (date VARCHAR, versus VARCHAR)
SELECT date FROM table_21907770_4 WHERE versus = "South Africa"
What year(s) did Mike Weir win player of the year?
CREATE TABLE table_name_45 (year_s__won VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_45 WHERE player = "mike weir"
What is the location and attendance of the game when the score is 125-100?
CREATE TABLE table_name_89 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_name_89 WHERE score = "125-100"
What party did the incumbent from the Arkansas 5 district belong to?
CREATE TABLE table_1342249_5 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1342249_5 WHERE district = "Arkansas 5"
what is the places when for the soviet union with a rank more than 11?
CREATE TABLE table_name_38 (places INTEGER, nation VARCHAR, rank VARCHAR)
SELECT SUM(places) FROM table_name_38 WHERE nation = "soviet union" AND rank > 11
How many French heads of state have a head of mission of Xavier Daufresne de la Chevalerie?
CREATE TABLE table_29474481_4 (french_head_of_state VARCHAR, head_of_mission VARCHAR)
SELECT COUNT(french_head_of_state) FROM table_29474481_4 WHERE head_of_mission = "Xavier Daufresne de la Chevalerie"
What is the Away when the Club is Neath?
CREATE TABLE table_name_5 (away VARCHAR, club VARCHAR)
SELECT away FROM table_name_5 WHERE club = "neath"
What is the length of the highway with junctions i-35 us 83 and named us 83 bus.?
CREATE TABLE table_name_25 (length VARCHAR, junctions VARCHAR, route_name VARCHAR)
SELECT length FROM table_name_25 WHERE junctions = "i-35 us 83" AND route_name = "us 83 bus."
Name the city that has singapore changi airport
CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR)
SELECT city FROM table_name_15 WHERE airport = "singapore changi airport"
What is the hometown of the player who attended Ohio State?
CREATE TABLE table_name_35 (hometown VARCHAR, college VARCHAR)
SELECT hometown FROM table_name_35 WHERE college = "ohio state"
What is the sum of week(s) with an attendance of 30,751?
CREATE TABLE table_name_77 (week INTEGER, attendance VARCHAR)
SELECT SUM(week) FROM table_name_77 WHERE attendance = 30 OFFSET 751
What is the low grid total for a retired due to steering in under 15 laps?
CREATE TABLE table_name_21 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_21 WHERE time_retired = "steering" AND laps < 15
What is the numberof running wiht pamela zapata?
CREATE TABLE table_12407546_2 (running VARCHAR, athlete VARCHAR)
SELECT COUNT(running) FROM table_12407546_2 WHERE athlete = "Pamela Zapata"
How many home team scores have a time of 4:40 PM?
CREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR)
SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = "4:40 PM"
What is the venue for the team Terek?
CREATE TABLE table_20140132_1 (venue VARCHAR, team VARCHAR)
SELECT venue FROM table_20140132_1 WHERE team = "Terek"
Where did the teams play on October 16, 1977?
CREATE TABLE table_13259034_2 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_13259034_2 WHERE date = "October 16, 1977"
How many points did Donald Green score?
CREATE TABLE table_25730209_2 (points VARCHAR, player VARCHAR)
SELECT COUNT(points) FROM table_25730209_2 WHERE player = "Donald Green"
What race happened at Iowa Speedway?
CREATE TABLE table_name_91 (race VARCHAR, track VARCHAR)
SELECT race FROM table_name_91 WHERE track = "iowa speedway"
Who was the second rider when papayero raced as Horse 1 in the city of rancagua?
CREATE TABLE table_name_2 (rider_2 VARCHAR, city VARCHAR, horse_1 VARCHAR)
SELECT rider_2 FROM table_name_2 WHERE city = "rancagua" AND horse_1 = "papayero"
What is the name of the oldest manager?
CREATE TABLE manager (Name VARCHAR, Age VARCHAR)
SELECT Name FROM manager ORDER BY Age DESC LIMIT 1
Which Paper Type has a Denomination of $0.50 and Date of Issue 4 February 2005?
CREATE TABLE table_name_30 (paper_type VARCHAR, denomination VARCHAR, date_of_issue VARCHAR)
SELECT paper_type FROM table_name_30 WHERE denomination = "$0.50" AND date_of_issue = "4 february 2005"
Which tournament has a 2007 of 2r, and a 2011 of 2r?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT tournament FROM table_name_93 WHERE 2007 = "2r" AND 2011 = "2r"
Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?
CREATE TABLE table_name_7 (shooting_score__pts_ VARCHAR, total VARCHAR, athlete VARCHAR)
SELECT shooting_score__pts_ FROM table_name_7 WHERE total > 5464 AND athlete = "heather fell ( gbr )"
How many live births per year do people with a life expectancy of 65.1 have?
CREATE TABLE table_27434_2 (live_births_per_year VARCHAR, life_expectancy_total VARCHAR)
SELECT live_births_per_year FROM table_27434_2 WHERE life_expectancy_total = "65.1"
Who replaced István Sándor?
CREATE TABLE table_name_58 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT replaced_by FROM table_name_58 WHERE outgoing_manager = "istván sándor"
What's the number of the player with 68.46 (1144 pts) in riding?
CREATE TABLE table_12407546_1 (_number INTEGER, riding VARCHAR)
SELECT MAX(_number) FROM table_12407546_1 WHERE riding = "68.46 (1144 pts)"
What is the variant when Alexander was the bodybuilder?
CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR)
SELECT variant FROM table_28035004_1 WHERE bodybuilder = "Alexander"
Which Format has a Date of 14 october 2008, and a Label of eagle eye media?
CREATE TABLE table_name_40 (format VARCHAR, date VARCHAR, label VARCHAR)
SELECT format FROM table_name_40 WHERE date = "14 october 2008" AND label = "eagle eye media"
When the year won is 1981, 1987, and the finish is t46, what is the lowest total?
CREATE TABLE table_name_58 (total INTEGER, finish VARCHAR, year_s__won VARCHAR)
SELECT MIN(total) FROM table_name_58 WHERE finish = "t46" AND year_s__won = "1981, 1987"
What was the attendance on April 7?
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_75 WHERE date = "april 7"
What is the 2008 result where 2003 is 325?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT 2008 FROM table_name_34 WHERE 2003 = "325"
Who had the most points in the game on November 12?
CREATE TABLE table_name_86 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_86 WHERE date = "november 12"
What is the name of the road race held in Omsk, Russia?
CREATE TABLE table_26166836_3 (road_race VARCHAR, location VARCHAR)
SELECT road_race FROM table_26166836_3 WHERE location = "Omsk"
What size was the crowd when Hawthorn was the home team?
CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "hawthorn"
What was the number of episodes whose production code is 7ABB21?
CREATE TABLE table_28196105_1 (_number VARCHAR, production_code VARCHAR)
SELECT COUNT(_number) FROM table_28196105_1 WHERE production_code = "7ABB21"
Which club has a 2nd round score of 1:0, 3:0?
CREATE TABLE table_name_39 (club VARCHAR, round VARCHAR, score VARCHAR)
SELECT club FROM table_name_39 WHERE round = "2nd round" AND score = "1:0, 3:0"
How many were won with the points against was 450?
CREATE TABLE table_12792876_3 (won VARCHAR, points_against VARCHAR)
SELECT COUNT(won) FROM table_12792876_3 WHERE points_against = "450"
How many rankings (timeslot) were there for the episode that aired on May 2, 2010?
CREATE TABLE table_23397386_2 (rank__timeslot_ VARCHAR, airdate VARCHAR)
SELECT COUNT(rank__timeslot_) FROM table_23397386_2 WHERE airdate = "May 2, 2010"
Who are all the Moto2 winners when the grand prix was Shell Advance Malaysian Grand Prix?
CREATE TABLE table_26781017_1 (moto2_winner VARCHAR, grand_prix VARCHAR)
SELECT moto2_winner FROM table_26781017_1 WHERE grand_prix = "Shell Advance Malaysian grand_prix"
Name the opponent with record of 6-2
CREATE TABLE table_name_19 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_19 WHERE record = "6-2"
Who was the winner on the Amaroo Park circuit?
CREATE TABLE table_name_38 (winner VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_38 WHERE circuit = "amaroo park"
What is the Loco Nos of the e3 class?
CREATE TABLE table_name_80 (loco_nos VARCHAR, class VARCHAR)
SELECT loco_nos FROM table_name_80 WHERE class = "e3"
What is the fastest lap in the Le Mans Bugatti circuit?
CREATE TABLE table_name_72 (fastest_lap VARCHAR, circuit VARCHAR)
SELECT fastest_lap FROM table_name_72 WHERE circuit = "le mans bugatti"
What was the minimum OTL amount?
CREATE TABLE table_1888165_1 (Otl INTEGER)
SELECT MIN(Otl) FROM table_1888165_1
What was the transfer fee for the player with an ends of 2007?
CREATE TABLE table_name_79 (transfer_fee VARCHAR, ends VARCHAR)
SELECT transfer_fee FROM table_name_79 WHERE ends = 2007
What is Original title, when Film title used in nomination is Train Without A Timetable?
CREATE TABLE table_name_35 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_title FROM table_name_35 WHERE film_title_used_in_nomination = "train without a timetable"
In what year was the feature at a 33.3S latitude named?
CREATE TABLE table_16799784_8 (year_named INTEGER, latitude VARCHAR)
SELECT MAX(year_named) FROM table_16799784_8 WHERE latitude = "33.3S"
What is the Longitude of the 61.0s Latitude?
CREATE TABLE table_name_27 (longitude VARCHAR, latitude VARCHAR)
SELECT longitude FROM table_name_27 WHERE latitude = "61.0s"
What is date when against is smaller than 6 and location was durban?
CREATE TABLE table_name_75 (date VARCHAR, against VARCHAR, venue VARCHAR)
SELECT date FROM table_name_75 WHERE against < 6 AND venue = "durban"
How many starts did Pearson have when his winnings were $101,438?
CREATE TABLE table_2626564_2 (starts VARCHAR, winnings VARCHAR)
SELECT starts FROM table_2626564_2 WHERE winnings = "$101,438"
what is the highest % hydropower when % coal is 4.9 and % nuclear power is more than 0?
CREATE TABLE table_name_59 (_percentage_hydropower INTEGER, _percentage_coal VARCHAR, _percentage_nuclear_power VARCHAR)
SELECT MAX(_percentage_hydropower) FROM table_name_59 WHERE _percentage_coal = 4.9 AND _percentage_nuclear_power > 0
WHat kind of Province of Silla has a Modern equivalent of pyeongan?
CREATE TABLE table_name_25 (province_of_silla VARCHAR, modern_equivalent VARCHAR)
SELECT province_of_silla FROM table_name_25 WHERE modern_equivalent = "pyeongan"
Which party does Timothy Kirkhope lead?
CREATE TABLE table_name_50 (party VARCHAR, leader VARCHAR)
SELECT party FROM table_name_50 WHERE leader = "timothy kirkhope"
When was the Masters Tournament?
CREATE TABLE table_name_9 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_9 WHERE tournament = "masters tournament"
Find the names of the items that did not receive any review.
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (title VARCHAR, i_id VARCHAR)
SELECT title FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
Name the landesliga nord for asv neumarkt
CREATE TABLE table_20181270_3 (landesliga_nord VARCHAR, landesliga_mitte VARCHAR)
SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "ASV Neumarkt"
What Dance has the Visual Arts of Bryon Kim?
CREATE TABLE table_name_28 (dance VARCHAR, visual_arts VARCHAR)
SELECT dance FROM table_name_28 WHERE visual_arts = "bryon kim"
What is the product description of the product booked with an amount of 102.76?
CREATE TABLE products_for_hire (product_description VARCHAR, product_id VARCHAR); CREATE TABLE products_booked (product_id VARCHAR, booked_amount VARCHAR)
SELECT T2.product_description FROM products_booked AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.booked_amount = 102.76
List the total number of institutions founded in Rock Island, Illinois.
CREATE TABLE table_18483171_1 (founded VARCHAR, location VARCHAR)
SELECT COUNT(founded) FROM table_18483171_1 WHERE location = "Rock Island, Illinois"
What is the episode # when the guests were julie nixon eisenhower and david eisenhower?
CREATE TABLE table_25691838_12 (episode__number INTEGER, guest VARCHAR)
SELECT MIN(episode__number) FROM table_25691838_12 WHERE guest = "Julie Nixon Eisenhower and David Eisenhower"
What was the mens open when the mens u20 was Qld Country Rustlers def Southern Suns?
CREATE TABLE table_16724844_1 (mens_open VARCHAR, mens_u20 VARCHAR)
SELECT mens_open FROM table_16724844_1 WHERE mens_u20 = "Qld Country Rustlers def Southern Suns"
How many captains when the shirt sponsor is toshiba?
CREATE TABLE table_27631756_2 (captain VARCHAR, shirt_sponsor VARCHAR)
SELECT COUNT(captain) FROM table_27631756_2 WHERE shirt_sponsor = "Toshiba"
Which Surface has a Support Category of jwrc/pwrc, and a Round larger than 5?
CREATE TABLE table_name_21 (surface VARCHAR, support_category VARCHAR, round VARCHAR)
SELECT surface FROM table_name_21 WHERE support_category = "jwrc/pwrc" AND round > 5
Who won the Suntree Seniors Classic?
CREATE TABLE table_11622924_1 (winner VARCHAR, tournament VARCHAR)
SELECT winner FROM table_11622924_1 WHERE tournament = "Suntree Seniors Classic"
What is the 1st leg of the uefa intertoto cup competition with club silkeborg?
CREATE TABLE table_name_66 (competition VARCHAR, club VARCHAR)
SELECT 1 AS st_leg FROM table_name_66 WHERE competition = "uefa intertoto cup" AND club = "silkeborg"
How many goals on average are there for rank 3?
CREATE TABLE table_name_52 (goals_for INTEGER, rank VARCHAR)
SELECT AVG(goals_for) FROM table_name_52 WHERE rank = 3
What is first names of the top 5 staff who have handled the greatest number of complaints?
CREATE TABLE complaints (staff_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, staff_id VARCHAR)
SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id GROUP BY t2.staff_id ORDER BY COUNT(*) LIMIT 5
What was the venue of the competition that held the 1st position in 2011?
CREATE TABLE table_name_68 (venue VARCHAR, position VARCHAR, year VARCHAR)
SELECT venue FROM table_name_68 WHERE position = "1st" AND year = 2011
Which Chart peak was Recorded on 2/19/69?
CREATE TABLE table_name_64 (chart_peak VARCHAR, recorded VARCHAR)
SELECT chart_peak FROM table_name_64 WHERE recorded = "2/19/69"
On the Circuit Zolder who was the winning team?
CREATE TABLE table_25213146_2 (winning_team VARCHAR, circuit VARCHAR)
SELECT winning_team FROM table_25213146_2 WHERE circuit = "circuit Zolder"
What is the area in km2 for Dufferin?
CREATE TABLE table_170969_2 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT area_km_2 FROM table_170969_2 WHERE official_name = "Dufferin"
What is the win/loss percentage with wins of 63 and losses smaller than 76?
CREATE TABLE table_name_77 (w_l__percentage VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT w_l__percentage FROM table_name_77 WHERE wins = 63 AND losses < 76
what is the result from texas stadium?
CREATE TABLE table_name_89 (result VARCHAR, field VARCHAR)
SELECT result FROM table_name_89 WHERE field = "texas stadium"
Who won in 1965?
CREATE TABLE table_name_42 (winner VARCHAR, year VARCHAR)
SELECT winner FROM table_name_42 WHERE year = "1965"
List the number of assists against illinois-chicago.
CREATE TABLE table_26360571_2 (assists VARCHAR, opponent VARCHAR)
SELECT assists FROM table_26360571_2 WHERE opponent = "Illinois-Chicago"
In 1972, how many points did the entrant with the March 721G Chassis have?
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_74 WHERE year > 1972 AND chassis = "march 721g"
When the VFL played Brunswick Street Oval what was the home team score?
CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE venue = "brunswick street oval"
What week was October 9, 1938?
CREATE TABLE table_name_66 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_66 WHERE date = "october 9, 1938"
What was the Result of the game on December 14, 1986 after Week 11?
CREATE TABLE table_name_10 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_10 WHERE week > 11 AND date = "december 14, 1986"
What is the result of the ceremony in 2006 (79th)?
CREATE TABLE table_name_1 (result VARCHAR, year__ceremony_ VARCHAR)
SELECT result FROM table_name_1 WHERE year__ceremony_ = "2006 (79th)"
What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?
CREATE TABLE table_name_25 (attendance VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_name_25 WHERE visitor = "detroit" AND record = "36–13–5"
Find the name of dorms which have TV Lounge but no Study Room as amenity.
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'
what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2?
CREATE TABLE table_name_48 (goals_for VARCHAR, wins VARCHAR, ties VARCHAR, goals_against VARCHAR)
SELECT COUNT(goals_for) FROM table_name_48 WHERE ties > 0 AND goals_against > 35 AND wins < 2
Wha episode number in the series had 24.8 million u.s. viewers?
CREATE TABLE table_27713890_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT MIN(no_in_series) FROM table_27713890_1 WHERE us_viewers__millions_ = "24.8"