question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Chassis was featured in the year 1971?
CREATE TABLE table_name_88 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_88 WHERE year = 1971
What is the total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1?
CREATE TABLE table_name_90 (gain VARCHAR, avg_g VARCHAR, long VARCHAR, name VARCHAR)
SELECT COUNT(gain) FROM table_name_90 WHERE long < 4 AND name = "brandon mcrae" AND avg_g < -0.1
Who was the opponent during the tournament in Kuwait?
CREATE TABLE table_name_91 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT opponent_in_the_final FROM table_name_91 WHERE tournament = "kuwait"
Which Result has an Opponent of minnesota vikings?
CREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_85 WHERE opponent = "minnesota vikings"
Who won the event against U.S.A.?
CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR)
SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.a."
What is the Total when the Set 3 was 25-15?
CREATE TABLE table_name_68 (total VARCHAR, set_3 VARCHAR)
SELECT total FROM table_name_68 WHERE set_3 = "25-15"
What is the number of Tournament of U.S. Open wins with a Top-25 smaller than 4?
CREATE TABLE table_name_79 (wins VARCHAR, tournament VARCHAR, top_25 VARCHAR)
SELECT COUNT(wins) FROM table_name_79 WHERE tournament = "u.s. open" AND top_25 < 4
What is Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe?
CREATE TABLE table_name_7 (winning_driver VARCHAR, fastest_lap VARCHAR, most_laps_led VARCHAR)
SELECT winning_driver FROM table_name_7 WHERE fastest_lap = "ryan hunter-reay" AND most_laps_led = "ryan briscoe"
What is the part 3 with *hegait in part 2?
CREATE TABLE table_name_31 (part_3 VARCHAR, part_2 VARCHAR)
SELECT part_3 FROM table_name_31 WHERE part_2 = "*hegait"
For each classroom, report the classroom number and the number of grades using it.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT classroom, COUNT(DISTINCT grade) FROM list GROUP BY classroom
What is the height if ot is the position?
CREATE TABLE table_20871703_1 (height VARCHAR, position VARCHAR)
SELECT height FROM table_20871703_1 WHERE position = "OT"
What was the record on december 8 when the boston bruins visited?
CREATE TABLE table_name_49 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_49 WHERE visitor = "boston bruins" AND date = "december 8"
What college has a player that is 6'1?
CREATE TABLE table_20860739_1 (college VARCHAR, height VARCHAR)
SELECT college FROM table_20860739_1 WHERE height = "6'1"
what is the title of the episode with the original air date of october2,2002?
CREATE TABLE table_name_57 (title VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_name_57 WHERE original_air_date = "october2,2002"
Can you tell me the Score that has the Date of 11/17/1979?
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_98 WHERE date = "11/17/1979"
If Crazy In Love is the song choice, what is the theme?
CREATE TABLE table_22736523_1 (theme VARCHAR, song_choice VARCHAR)
SELECT theme FROM table_22736523_1 WHERE song_choice = "Crazy In Love"
How long has the team who owns North Shore Events Centre Vector Arena been active?
CREATE TABLE table_283203_1 (years_active VARCHAR, home_venue VARCHAR)
SELECT years_active FROM table_283203_1 WHERE home_venue = "North Shore Events Centre Vector Arena"
What was the 2011 population of pavliš?
CREATE TABLE table_2562572_46 (population__2011_ VARCHAR, settlement VARCHAR)
SELECT population__2011_ FROM table_2562572_46 WHERE settlement = "Pavliš"
What is the name of the ship that had a Pennant number of h55?
CREATE TABLE table_name_48 (ship VARCHAR, pennant_number VARCHAR)
SELECT ship FROM table_name_48 WHERE pennant_number = "h55"
What the production code for the episode with 16.10 U.S. viewers?
CREATE TABLE table_23793770_1 (production_code INTEGER, us_viewers__millions_ VARCHAR)
SELECT MAX(production_code) FROM table_23793770_1 WHERE us_viewers__millions_ = "16.10"
Which astrological sign has the Latin motto of Vita?
CREATE TABLE table_name_21 (sign VARCHAR, latin_motto VARCHAR)
SELECT sign FROM table_name_21 WHERE latin_motto = "vita"
Score of 2-1, and a Competition of pl, and a Date of december 22, 2006 had what opponents?
CREATE TABLE table_name_84 (opponents VARCHAR, date VARCHAR, score VARCHAR, competition VARCHAR)
SELECT opponents FROM table_name_84 WHERE score = "2-1" AND competition = "pl" AND date = "december 22, 2006"
What is the home with a 1-1 away in the 2004-05 season?
CREATE TABLE table_name_99 (home VARCHAR, away VARCHAR, season VARCHAR)
SELECT home FROM table_name_99 WHERE away = "1-1" AND season = "2004-05"
Show the names for all females from Canada having a wedding in year 2016.
CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR)
SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'
What is the Kapampangan word for the Malay word aku?
CREATE TABLE table_name_8 (kapampangan VARCHAR, malay VARCHAR)
SELECT kapampangan FROM table_name_8 WHERE malay = "aku"
Who was the Mariners opponent at the game attended by 7,893?
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_49 WHERE attendance = "7,893"
What was the winning score in 1980?
CREATE TABLE table_name_51 (winning_score VARCHAR, year VARCHAR)
SELECT winning_score FROM table_name_51 WHERE year = 1980
what is the record when marc gasol (8) had the high rebounds?
CREATE TABLE table_name_23 (record VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_name_23 WHERE high_rebounds = "marc gasol (8)"
What is the air date when the U.S. viewers was 5.50 million?
CREATE TABLE table_17467447_1 (original_airdate VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_airdate FROM table_17467447_1 WHERE us_viewers__million_ = "5.50"
What is the community with a wind power of 1042?
CREATE TABLE table_13566548_1 (autonomous_community VARCHAR, wind_power VARCHAR)
SELECT autonomous_community FROM table_13566548_1 WHERE wind_power = 1042
What was the team they played when the series was 2-1?
CREATE TABLE table_name_76 (team VARCHAR, series VARCHAR)
SELECT team FROM table_name_76 WHERE series = "2-1"
What is the length in feet of the Jiangzhou arch?
CREATE TABLE table_name_7 (length___ft__ VARCHAR, name VARCHAR)
SELECT length___ft__ FROM table_name_7 WHERE name = "jiangzhou arch"
What country's capital is buenos aires?
CREATE TABLE table_14098_1 (country_or_territory_with_flag VARCHAR, capital VARCHAR)
SELECT country_or_territory_with_flag FROM table_14098_1 WHERE capital = "Buenos Aires"
Which home team played against Hawthorn?
CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_49 WHERE away_team = "hawthorn"
what is the name of the townships with 32.222 land
CREATE TABLE table_18600760_19 (township VARCHAR, land___sqmi__ VARCHAR)
SELECT township FROM table_18600760_19 WHERE land___sqmi__ = "32.222"
What is the lowest Top-25 for the open championship, with a Top-10 larger than 3?
CREATE TABLE table_name_55 (top_25 INTEGER, tournament VARCHAR, top_10 VARCHAR)
SELECT MIN(top_25) FROM table_name_55 WHERE tournament = "the open championship" AND top_10 > 3
What is the lowest lane for Nigeria, with a react less than 0.133?
CREATE TABLE table_name_17 (lane INTEGER, country VARCHAR, react VARCHAR)
SELECT MIN(lane) FROM table_name_17 WHERE country = "nigeria" AND react < 0.133
I want the date for nihat kahveci
CREATE TABLE table_name_93 (date VARCHAR, turkey_scorers VARCHAR)
SELECT date FROM table_name_93 WHERE turkey_scorers = "nihat kahveci"
What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?
CREATE TABLE table_name_82 (races INTEGER, points VARCHAR, season VARCHAR, podiums VARCHAR, wins VARCHAR)
SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = "32"
W hat was the lowest Goals For when they played Team Goole Town and had a position lower than 9?
CREATE TABLE table_name_65 (goals_for INTEGER, team VARCHAR, position VARCHAR)
SELECT MIN(goals_for) FROM table_name_65 WHERE team = "goole town" AND position < 9
Which season had 34 losses?
CREATE TABLE table_name_35 (season VARCHAR, losses VARCHAR)
SELECT season FROM table_name_35 WHERE losses = "34"
What was the score of the replay at Millwall?
CREATE TABLE table_name_23 (score VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_23 WHERE tie_no = "replay" AND home_team = "millwall"
What Weblink has a College or Campus Name of anna university college of engineering tindivanam?
CREATE TABLE table_name_76 (weblink VARCHAR, college_or_campus_name VARCHAR)
SELECT weblink FROM table_name_76 WHERE college_or_campus_name = "anna university college of engineering tindivanam"
Tell me the Grantee for san ysidro
CREATE TABLE table_name_34 (grantee VARCHAR, concession VARCHAR)
SELECT grantee FROM table_name_34 WHERE concession = "san ysidro"
What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?
CREATE TABLE table_10054296_1 (chapters INTEGER, classification VARCHAR, headquarters VARCHAR)
SELECT MAX(chapters) FROM table_10054296_1 WHERE classification = "Fraternity" AND headquarters = "Austin, Texas"
What format was conductor Erich Leinsdorf's album released on?
CREATE TABLE table_name_34 (format VARCHAR, conductor VARCHAR)
SELECT format FROM table_name_34 WHERE conductor = "erich leinsdorf"
Who has more than 4 heat for Germany and 7 lanes?
CREATE TABLE table_name_6 (name VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT name FROM table_name_6 WHERE heat > 4 AND nationality = "germany" AND lane = 7
What date was Grimsby Town the away team?
CREATE TABLE table_name_34 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_34 WHERE away_team = "grimsby town"
What is the High rebounds of washington Team?
CREATE TABLE table_name_43 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_name_43 WHERE team = "washington"
How many candidates were there in the district won by Joe Hoeffel?
CREATE TABLE table_1341423_38 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1341423_38 WHERE incumbent = "Joe Hoeffel"
Who won Stage 7?
CREATE TABLE table_22917458_15 (winner VARCHAR, stage VARCHAR)
SELECT winner FROM table_22917458_15 WHERE stage = 7
find the event names that have more than 2 records.
CREATE TABLE party_events (event_name VARCHAR)
SELECT event_name FROM party_events GROUP BY event_name HAVING COUNT(*) > 2
What country is the player who scored 27 goals from?
CREATE TABLE table_name_71 (nationality VARCHAR, goals VARCHAR)
SELECT nationality FROM table_name_71 WHERE goals = 27
How many players has the highest points in the game against the Heat?
CREATE TABLE table_23285849_6 (high_points VARCHAR, team VARCHAR)
SELECT COUNT(high_points) FROM table_23285849_6 WHERE team = "Heat"
Which league has total smaller than 284, with Sandro Mazzola league?
CREATE TABLE table_name_42 (league INTEGER, total VARCHAR, name VARCHAR)
SELECT MIN(league) FROM table_name_42 WHERE total < 284 AND name = "sandro mazzola"
What was the location of the competition with a Rank-Final of 1st and a Score-Qualifying under 28.975?
CREATE TABLE table_name_95 (location VARCHAR, rank_final VARCHAR, score_qualifying VARCHAR)
SELECT location FROM table_name_95 WHERE rank_final = "1st" AND score_qualifying < 28.975
Show the location name for document "Robin CV".
CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR)
SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV"
How many different counts of the population in Cavinti in 2010 are there?
CREATE TABLE table_216776_2 (population__2010_ VARCHAR, municipality VARCHAR)
SELECT COUNT(population__2010_) FROM table_216776_2 WHERE municipality = "Cavinti"
What is the area of the nation with GDP per capita (US$) of 11,929?
CREATE TABLE table_name_11 (area__km²_ VARCHAR, gdp_per_capita__us$_ VARCHAR)
SELECT area__km²_ FROM table_name_11 WHERE gdp_per_capita__us$_ = "11,929"
Which episode was written by anthony e. zuiker & ken solarz
CREATE TABLE table_11665016_2 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_11665016_2 WHERE written_by = "Anthony E. Zuiker & Ken Solarz"
When did Fejzi Bej Alizoti's term start?
CREATE TABLE table_name_38 (term_start VARCHAR, name VARCHAR)
SELECT term_start FROM table_name_38 WHERE name = "fejzi bej alizoti"
which Authority has a coed school with a decile greater than 4, with a 150 roll?
CREATE TABLE table_name_49 (authority VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR)
SELECT authority FROM table_name_49 WHERE gender = "coed" AND decile > 4 AND roll = "150"
Who Finalists has a Club of győri?
CREATE TABLE table_name_22 (finalists VARCHAR, club VARCHAR)
SELECT finalists FROM table_name_22 WHERE club = "győri"
What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential?
CREATE TABLE table_name_28 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_28 WHERE laps < 53 AND grid < 14 AND time_retired = "differential"
What was the attendance on August 2?
CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_28 WHERE date = "august 2"
Which Year has a Best Film of mystery?
CREATE TABLE table_name_80 (year VARCHAR, best_film VARCHAR)
SELECT year FROM table_name_80 WHERE best_film = "mystery"
Find the emails and phone numbers of all the customers, ordered by email address and phone number.
CREATE TABLE customers (email_address VARCHAR, phone_number VARCHAR)
SELECT email_address, phone_number FROM customers ORDER BY email_address, phone_number
Who had the highest assists in game 75?
CREATE TABLE table_27733909_10 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_27733909_10 WHERE game = 75
Which party does Del Latta belong to?
CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341577_36 WHERE incumbent = "Del Latta"
Find the first names and last names of male (sex is M) faculties who live in building NEB.
CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, sex VARCHAR, Building VARCHAR)
SELECT Fname, Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB"
How many wins are associated with 20 points and over 1 podium?
CREATE TABLE table_name_12 (wins INTEGER, points VARCHAR, podiums VARCHAR)
SELECT SUM(wins) FROM table_name_12 WHERE points = 20 AND podiums > 1
What is Set 4, when Set 1 is 19-25, and when Set 2 is 23-25?
CREATE TABLE table_name_33 (set_4 VARCHAR, set_1 VARCHAR, set_2 VARCHAR)
SELECT set_4 FROM table_name_33 WHERE set_1 = "19-25" AND set_2 = "23-25"
What are the total points for the team that averages 17.8?
CREATE TABLE table_17862135_3 (total_points VARCHAR, average VARCHAR)
SELECT total_points FROM table_17862135_3 WHERE average = "17.8"
What is the total number of Year with Wins of 1, and Losses smaller than 1?
CREATE TABLE table_name_93 (year INTEGER, wins VARCHAR, losses VARCHAR)
SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1
Who was the celebrity who finished in 7th place?
CREATE TABLE table_name_91 (celebrity VARCHAR, finished VARCHAR)
SELECT celebrity FROM table_name_91 WHERE finished = "7th"
What was the preliminary average for the one who had a semifinal average of 8.966 (3)?
CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, semifinal_average VARCHAR)
SELECT preliminary_average FROM table_16323766_3 WHERE semifinal_average = "8.966 (3)"
What is the total number of passengers of the airport ranked 15?
CREATE TABLE table_13836704_7 (international_passengers VARCHAR, rank VARCHAR)
SELECT international_passengers FROM table_13836704_7 WHERE rank = 15
How many people attended on April 12?
CREATE TABLE table_name_75 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_75 WHERE date = "april 12"
If team two is Lanús, what was the total number of points?
CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR)
SELECT COUNT(points) FROM table_16795394_3 WHERE team__number2 = "Lanús"
What is the score for the Dec 11 game?
CREATE TABLE table_name_83 (score VARCHAR, december VARCHAR)
SELECT score FROM table_name_83 WHERE december = 11
What is Alexander Wronski's Position?
CREATE TABLE table_name_31 (position VARCHAR, name VARCHAR)
SELECT position FROM table_name_31 WHERE name = "alexander wronski"
What is the 100 year for Carbon Dioxide?
CREATE TABLE table_21350772_2 (gas_name VARCHAR)
SELECT 100 AS _yr FROM table_21350772_2 WHERE gas_name = "Carbon dioxide"
in the year 1995/96 what was the reg. season
CREATE TABLE table_1908049_1 (reg_season VARCHAR, year VARCHAR)
SELECT reg_season FROM table_1908049_1 WHERE year = "1995/96"
What is the name of the Deputy when the Name was elizabeth black?
CREATE TABLE table_name_88 (deputy VARCHAR, name VARCHAR)
SELECT deputy FROM table_name_88 WHERE name = "elizabeth black"
How many stages were there where the winner and the points classification were Alberto Contador?
CREATE TABLE table_15294880_2 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR)
SELECT COUNT(stage) FROM table_15294880_2 WHERE winner = "Alberto Contador" AND points_classification = "Alberto Contador"
Name the highest goals for youth system and ita
CREATE TABLE table_name_7 (goals INTEGER, nat VARCHAR, transfer_fee VARCHAR)
SELECT MAX(goals) FROM table_name_7 WHERE nat = "ita" AND transfer_fee = "youth system"
Which builder completed before 1890 and launched on 9 june 1888?
CREATE TABLE table_name_84 (builder VARCHAR, completed VARCHAR, launched VARCHAR)
SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = "9 june 1888"
what is the score when the time is 2:22?
CREATE TABLE table_name_47 (score VARCHAR, time VARCHAR)
SELECT score FROM table_name_47 WHERE time = "2:22"
What was the race of the person executed on December 27, 1827?
CREATE TABLE table_name_52 (race VARCHAR, date_of_execution VARCHAR)
SELECT race FROM table_name_52 WHERE date_of_execution = "december 27, 1827"
what is the h/a round of round 2
CREATE TABLE table_name_34 (h___a VARCHAR, round VARCHAR)
SELECT h___a FROM table_name_34 WHERE round = "round 2"
What is the average laps for ralph firman with a grid of over 19?
CREATE TABLE table_name_32 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_32 WHERE driver = "ralph firman" AND grid > 19
Which has and average less than 3 and the lowest yards?
CREATE TABLE table_name_56 (yards INTEGER, avg INTEGER)
SELECT MIN(yards) FROM table_name_56 WHERE avg < 3
What type of wheels did the locomotive have that was built by Baldwin Locomotive Works?
CREATE TABLE table_name_99 (wheels VARCHAR, builder VARCHAR)
SELECT wheels FROM table_name_99 WHERE builder = "baldwin locomotive works"
What is the home teamscore for Richmond?
CREATE TABLE table_name_11 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_11 WHERE home_team = "richmond"
Which of the lowest FA Trophys involved the Forest Green Rovers club when the play-offs number was bigger than 0?
CREATE TABLE table_name_8 (fa_trophy INTEGER, club VARCHAR, play_offs VARCHAR)
SELECT MIN(fa_trophy) FROM table_name_8 WHERE club = "forest green rovers" AND play_offs > 0
If the place is hemkunt sahib what is the category?
CREATE TABLE table_1430913_1 (category VARCHAR, name_of_place VARCHAR)
SELECT category FROM table_1430913_1 WHERE name_of_place = "Hemkunt Sahib"
What Title has a Version of 1.0.0.3?
CREATE TABLE table_name_83 (title VARCHAR, version VARCHAR)
SELECT title FROM table_name_83 WHERE version = "1.0.0.3"
What is the total number of runs for the player with fewer than 9 Inns?
CREATE TABLE table_name_82 (runs VARCHAR, inns INTEGER)
SELECT COUNT(runs) FROM table_name_82 WHERE inns < 9
Which Metal has an Element of heavenly stems?
CREATE TABLE table_name_84 (metal VARCHAR, element VARCHAR)
SELECT metal FROM table_name_84 WHERE element = "heavenly stems"
What tournament had a game with a score of 6-7, 4-6?
CREATE TABLE table_name_35 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_35 WHERE score = "6-7, 4-6"