answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT results¹ FROM table_name_97 WHERE opponent = "luxembourg"
What was the result of the game against Luxembourg?
CREATE TABLE table_name_97 (results¹ VARCHAR, opponent VARCHAR)
SELECT opponent FROM table_name_60 WHERE loss = "johnson (11-7)"
What team did Johnson (11-7) play for?
CREATE TABLE table_name_60 (opponent VARCHAR, loss VARCHAR)
SELECT games FROM table_name_36 WHERE losses > 1 AND percent = 0.5 AND wins = 2
what is games when the losses is more than 1, percent is 0.5 and wins is 2?
CREATE TABLE table_name_36 (games VARCHAR, wins VARCHAR, losses VARCHAR, percent VARCHAR)
SELECT team_name FROM table_name_80 WHERE schools = "goreville vienna"
What is the name of the team from goreville vienna school?
CREATE TABLE table_name_80 (team_name VARCHAR, schools VARCHAR)
SELECT date FROM table_name_95 WHERE against = 7
What date has an against of 7?
CREATE TABLE table_name_95 (date VARCHAR, against VARCHAR)
SELECT format FROM table_name_26 WHERE catalogno = "st 491"
Whati s the format for the catalogno of st 491?
CREATE TABLE table_name_26 (format VARCHAR, catalogno VARCHAR)
SELECT wins FROM table_name_95 WHERE division = "western" AND finish = "4th"
What is the Western Division of Wins with a 4th Finish?
CREATE TABLE table_name_95 (wins VARCHAR, division VARCHAR, finish VARCHAR)
SELECT date FROM table_name_45 WHERE athlete = "yelena isinbayeva" AND record = "4.90m(16ft0¾in)"
What is the Date when yelena isinbayeva was the Athlete, with a Record of 4.90m(16ft0¾in)?
CREATE TABLE table_name_45 (date VARCHAR, athlete VARCHAR, record VARCHAR)
SELECT to_par FROM table_name_49 WHERE country = "japan"
What is the to par for japan
CREATE TABLE table_name_49 (to_par VARCHAR, country VARCHAR)
SELECT COUNT(laps) FROM table_name_66 WHERE time_retired = "tyre" AND grid > 10
How many laps for a Time/Retired of tyre, and a Grid larger than 10?
CREATE TABLE table_name_66 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
What is the total revenue of all companies whose main office is at Tokyo or Taiwan?
CREATE TABLE manufacturers (revenue INTEGER, Headquarter VARCHAR)
SELECT socialist_ticket FROM table_name_5 WHERE democratic_ticket = "herbert h. lehman"
Who's the Socialist ticket with a Democratic ticket of herbert h. lehman?
CREATE TABLE table_name_5 (socialist_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT home_or_away FROM table_1233808_2 WHERE record = "Biggest win"
Is the biggest win recorded as home or away?
CREATE TABLE table_1233808_2 (home_or_away VARCHAR, record VARCHAR)
SELECT MIN(laps) FROM table_name_17 WHERE team = "perkins engineering"
What are Perkins Engineering's fewest laps?
CREATE TABLE table_name_17 (laps INTEGER, team VARCHAR)
SELECT player FROM table_24431264_16 WHERE points = 1420
What player had 1420 points coming in?
CREATE TABLE table_24431264_16 (player VARCHAR, points VARCHAR)
SELECT MAX(year_premiered) FROM table_24224647_2 WHERE main_presenter = "Benjamin Castaldi"
What is the highest year premiered when Benjamin Castaldi is main presenter?
CREATE TABLE table_24224647_2 (year_premiered INTEGER, main_presenter VARCHAR)
SELECT loss FROM table_name_29 WHERE date = "may 22"
Name the loss on may 22
CREATE TABLE table_name_29 (loss VARCHAR, date VARCHAR)
SELECT score FROM table_name_53 WHERE tie_no = "8"
What is the score when the tie is 8?
CREATE TABLE table_name_53 (score VARCHAR, tie_no VARCHAR)
SELECT name, LOCATION, district FROM shop ORDER BY number_products DESC
Return the name, location and district of all shops in descending order of number of products.
CREATE TABLE shop (name VARCHAR, LOCATION VARCHAR, district VARCHAR, number_products VARCHAR)
SELECT season FROM table_name_42 WHERE ufl_cup = "quarter-finals"
Which Season has a UFL Cup of quarter-finals?
CREATE TABLE table_name_42 (season VARCHAR, ufl_cup VARCHAR)
SELECT owner FROM table_name_35 WHERE winner = "meridiana"
what is the winner of meridiana
CREATE TABLE table_name_35 (owner VARCHAR, winner VARCHAR)
SELECT COUNT(played) FROM table_18505065_1 WHERE against = 175
How many games had a deficit of 175?
CREATE TABLE table_18505065_1 (played VARCHAR, against VARCHAR)
SELECT MAX(best_score) FROM table_name_47 WHERE dance = "mambo"
What is the highest Best score for the Dance Mambo?
CREATE TABLE table_name_47 (best_score INTEGER, dance VARCHAR)
SELECT investing_dragon_s_ FROM table_name_21 WHERE company_or_product_name = "tiny box"
Who is the company Investing Dragons, or tiny box?
CREATE TABLE table_name_21 (investing_dragon_s_ VARCHAR, company_or_product_name VARCHAR)
SELECT opponent FROM table_name_24 WHERE score = "8-2"
What team was the opponent when the score was 8-2?
CREATE TABLE table_name_24 (opponent VARCHAR, score VARCHAR)
SELECT score FROM table_17118657_7 WHERE game = 12
What was the score on game number 12?
CREATE TABLE table_17118657_7 (score VARCHAR, game VARCHAR)
SELECT T3.amenity_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 T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name
Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)
SELECT MAX(place__posición_) FROM table_name_41 WHERE points__pts_ > 24 AND played__pj_ > 14
What was the top place with over 24 points and more than 14 played?
CREATE TABLE table_name_41 (place__posición_ INTEGER, points__pts_ VARCHAR, played__pj_ VARCHAR)
SELECT bb___blind_bear FROM table_2603017_2 WHERE ba___running_bear = "MF - Mountain Falcon"
what is bb - blind bear where ba - running bear is mf - mountain falcon?
CREATE TABLE table_2603017_2 (bb___blind_bear VARCHAR, ba___running_bear VARCHAR)
SELECT COUNT(week) FROM table_name_64 WHERE date = "december 9, 1961" AND attendance > 41 OFFSET 268
What was the week of the December 9, 1961 game with an attendance larger than 41,268?
CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT third_place FROM table_name_75 WHERE runner_up = "anders järryd"
Name the third place for anders järryd
CREATE TABLE table_name_75 (third_place VARCHAR, runner_up VARCHAR)
SELECT MAX(championships) FROM table_name_76 WHERE club = "erie seawolves"
Name the most championships for club of erie seawolves
CREATE TABLE table_name_76 (championships INTEGER, club VARCHAR)
SELECT home_team FROM table_name_74 WHERE venue = "junction oval"
What team was the home team at the venue junction oval?
CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR)
SELECT party FROM table_name_61 WHERE representative = "brian bosma"
Which Party has a Representative of brian bosma?
CREATE TABLE table_name_61 (party VARCHAR, representative VARCHAR)
SELECT score FROM table_name_1 WHERE tournament = "volkswagen challenger"
What was the score in Volkswagen Challenger tournament?
CREATE TABLE table_name_1 (score VARCHAR, tournament VARCHAR)
SELECT play_by_play FROM table_name_56 WHERE year < 1998 AND network = "fox"
Who did the play-by-play before 1998 on Fox network?
CREATE TABLE table_name_56 (play_by_play VARCHAR, year VARCHAR, network VARCHAR)
SELECT driver FROM table_name_79 WHERE grid = "6"
Which driver's grid is 6?
CREATE TABLE table_name_79 (driver VARCHAR, grid VARCHAR)
SELECT lost FROM table_name_61 WHERE points = "dissolved"
What is the Lost when the points were dissolved?
CREATE TABLE table_name_61 (lost VARCHAR, points VARCHAR)
SELECT average_ratings FROM table_name_76 WHERE tv_station = "tbs" AND episodes = "10" AND japanese_title = "scandal"
What's the ratings of TBS of Episode 10 and had a Japanese title of Scandal?
CREATE TABLE table_name_76 (average_ratings VARCHAR, japanese_title VARCHAR, tv_station VARCHAR, episodes VARCHAR)
SELECT Official_Name FROM city WHERE NOT City_ID IN (SELECT Host_city_ID FROM farm_competition)
List the official names of cities that have not held any competition.
CREATE TABLE farm_competition (Official_Name VARCHAR, City_ID VARCHAR, Host_city_ID VARCHAR); CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR, Host_city_ID VARCHAR)
SELECT championship FROM table_1272033_1 WHERE previous_champion_s_ = "Genesis"
What tourmament has Genesis won previously?
CREATE TABLE table_1272033_1 (championship VARCHAR, previous_champion_s_ VARCHAR)
SELECT MAX(game) FROM table_name_40 WHERE opponent = "new york knickerbockers"
What is the maximum game that was played against the New York Knickerbockers?
CREATE TABLE table_name_40 (game INTEGER, opponent VARCHAR)
SELECT COUNT(year) FROM table_19309079_2 WHERE qatari_male = 97
How many years were there 97 qatari male births?
CREATE TABLE table_19309079_2 (year VARCHAR, qatari_male VARCHAR)
SELECT italian_voice_actor FROM table_14960574_6 WHERE german_voice_actor = "Dirk Fenselau"
Name the italian voice actor for dirk fenselau
CREATE TABLE table_14960574_6 (italian_voice_actor VARCHAR, german_voice_actor VARCHAR)
SELECT engine_code FROM table_name_84 WHERE displacement__cm³_ = 2435 AND model_name = "2.4 (2001-2007)"
Which engine has a 2435 cm displacement and is named 2.4 (2001-2007)?
CREATE TABLE table_name_84 (engine_code VARCHAR, displacement__cm³_ VARCHAR, model_name VARCHAR)
SELECT position FROM table_11677100_3 WHERE hometown = "Germantown, TN"
What's the position of the player from Germantown, TN?
CREATE TABLE table_11677100_3 (position VARCHAR, hometown VARCHAR)
SELECT details FROM table_name_55 WHERE name = "marisa ferretti barth"
What are the details for Marisa Ferretti Barth?
CREATE TABLE table_name_55 (details VARCHAR, name VARCHAR)
SELECT scott FROM table_1818471_1 WHERE date = "(15.12)"
What is every entry for Scott when the date is (15.12)?
CREATE TABLE table_1818471_1 (scott VARCHAR, date VARCHAR)
SELECT place FROM table_name_3 WHERE machine = "249cc yamaha"
Where was the 249cc Yamaha?
CREATE TABLE table_name_3 (place VARCHAR, machine VARCHAR)
SELECT venue FROM table_name_60 WHERE runs = "332"
During runs 332, what was the venue?
CREATE TABLE table_name_60 (venue VARCHAR, runs VARCHAR)
SELECT affiliation FROM table_name_28 WHERE mls_team = "metrostars" AND pick__number = 26
Tell me the affiliation for mls team of metrostars and pick number of 26
CREATE TABLE table_name_28 (affiliation VARCHAR, mls_team VARCHAR, pick__number VARCHAR)
SELECT no_range FROM table_name_58 WHERE year_built__converted * _ = "1965-66"
Tell me the number range for 1965-66
CREATE TABLE table_name_58 (no_range VARCHAR, year_built__converted VARCHAR, _ VARCHAR)
SELECT class_aAAAA FROM table_14603057_2 WHERE school_year = "2008-09"
Who was the class AAAAA in 2008-09?
CREATE TABLE table_14603057_2 (class_aAAAA VARCHAR, school_year VARCHAR)
SELECT winning_score FROM table_name_91 WHERE runner_s__up = "charles coody"
What is the winning score of the tournament with Charles Coody as the runner-up?
CREATE TABLE table_name_91 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT series_1 FROM table_name_13 WHERE series_11 = "peter jones"
Which Series 1 has a Series 11 of peter jones?
CREATE TABLE table_name_13 (series_1 VARCHAR, series_11 VARCHAR)
SELECT MIN(production_code) FROM table_name_14 WHERE series__number = 10
What was the lowest production code value in series #10?
CREATE TABLE table_name_14 (production_code INTEGER, series__number VARCHAR)
SELECT railway FROM table_15608800_2 WHERE class = "J15"
Name the railway when class is j15
CREATE TABLE table_15608800_2 (railway VARCHAR, class VARCHAR)
SELECT gymnast FROM table_name_91 WHERE balance_beam > 8.687 AND total < 38.049 AND floor_exercise < 9.462 AND vault < 9.275
Which gymnast had a balance beam larger than 8.687, had a total less than 38.049, had a floor exercise less than 9.462, and a vault less than 9.275?
CREATE TABLE table_name_91 (gymnast VARCHAR, vault VARCHAR, floor_exercise VARCHAR, balance_beam VARCHAR, total VARCHAR)
SELECT DISTINCT country FROM singer WHERE age > 20
What are all distinct countries where singers above age 20 are from?
CREATE TABLE singer (country VARCHAR, age INTEGER)
SELECT city FROM table_name_23 WHERE tickets_available_since = "march 28, 2008" AND date = "september 4, 2009"
What city had tickets available since March 28, 2008 and went on sale on September 4, 2009?
CREATE TABLE table_name_23 (city VARCHAR, tickets_available_since VARCHAR, date VARCHAR)
SELECT Ref_Shipping_Agents.shipping_agent_name, COUNT(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY COUNT(Documents.document_id) DESC LIMIT 1
Which shipping agent shipped the most documents? List the shipping agent name and the number of documents.
CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR)
SELECT report FROM table_name_31 WHERE venue = "king baudouin stadium brussels, belgium"
What's the report in King Baudouin Stadium Brussels, Belgium?
CREATE TABLE table_name_31 (report VARCHAR, venue VARCHAR)
SELECT place FROM table_name_10 WHERE player = "tommy bolt"
What is Tommy Bolt's place?
CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR)
SELECT 2013 FROM table_name_98 WHERE 2010 = "1r"
Which 2013 has a 2010 of 1r?
CREATE TABLE table_name_98 (Id VARCHAR)
SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12
What is the lowest attendance for December 14, 1958 after week 12?
CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT subject FROM table_191105_3 WHERE performed_by = "Jaime Aff and Christine Langner"
WHen jaime aff and christine langner are the performers what is the subject?
CREATE TABLE table_191105_3 (subject VARCHAR, performed_by VARCHAR)
SELECT 3 AS _dart_average FROM table_20463779_22 WHERE player = "Phil Taylor"
What is Phil Taylor's 3-dart average?
CREATE TABLE table_20463779_22 (player VARCHAR)
SELECT brightest_star FROM table_287159_1 WHERE meaning = "archer"
What is the brightest star of the constellation that means archer?
CREATE TABLE table_287159_1 (brightest_star VARCHAR, meaning VARCHAR)
SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "glenferrie oval"
How many people watched a Glenferrie Oval?
CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR)
SELECT club FROM table_name_37 WHERE drawn = "0" AND points_for = "617"
Who is the club that had 617 points and a draw of 0?
CREATE TABLE table_name_37 (club VARCHAR, drawn VARCHAR, points_for VARCHAR)
SELECT MAX(available_subnets) FROM table_149426_4
available subnets leading total is?
CREATE TABLE table_149426_4 (available_subnets INTEGER)
SELECT video FROM table_name_49 WHERE channel = 25.3
Which Video has a Channel of 25.3?
CREATE TABLE table_name_49 (video VARCHAR, channel VARCHAR)
SELECT position FROM table_name_94 WHERE player = "mario kasun"
What position does Mario Kasun play?
CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR)
SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m"
What is the record for the 400 m event on 4 september 2009?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR)
SELECT stadium FROM table_21377473_7 WHERE score = "3 - 1 Hughes 64'"
When 3 - 1 hughes 64' is the score what is the stadium?
CREATE TABLE table_21377473_7 (stadium VARCHAR, score VARCHAR)
SELECT record FROM table_name_55 WHERE score = "104-99"
What is Record, when Score is 104-99?
CREATE TABLE table_name_55 (record VARCHAR, score VARCHAR)
SELECT location FROM table_name_92 WHERE final_score = "w 30 – 5"
What location had a final score of W 30 – 5?
CREATE TABLE table_name_92 (location VARCHAR, final_score VARCHAR)
SELECT club FROM table_name_92 WHERE away_result = "1–1" AND round = "1r" AND season = "1967-68"
Away result of 1–1, and a Round of 1r, and a Season of 1967-68 involves what club?
CREATE TABLE table_name_92 (club VARCHAR, season VARCHAR, away_result VARCHAR, round VARCHAR)
SELECT qual_2 FROM table_name_10 WHERE best = "1:27.976"
What is Qual 2, when Best is 1:27.976?
CREATE TABLE table_name_10 (qual_2 VARCHAR, best VARCHAR)
SELECT hand_guards FROM table_name_1 WHERE barrel_profile = "a2" AND rear_sight = "weaver"
Which Hand guards has a Barrel profile of a2 and a Rear sight of weaver?
CREATE TABLE table_name_1 (hand_guards VARCHAR, barrel_profile VARCHAR, rear_sight VARCHAR)
SELECT 2007 FROM table_name_54 WHERE tournament = "monte carlo masters"
What was the double's performance data from the Monte Carlo Masters tournament in 2007?
CREATE TABLE table_name_54 (tournament VARCHAR)
SELECT event FROM table_name_98 WHERE res = "win" AND round = "n/a" AND record = "8-1"
What event had a win, record of 8-1 and n/a round?
CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)
SELECT away_team FROM table_name_5 WHERE crowd > 19 OFFSET 498
When the crowd was greater than 19,498 who was the away team?
CREATE TABLE table_name_5 (away_team VARCHAR, crowd INTEGER)
SELECT candidates FROM table_1341586_44 WHERE incumbent = "Albert Bustamante"
Name all the candidates vying for Albert Bustamante's seat.
CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_7 WHERE opponent = "new york jets"
What was the date of the game against the New York Jets?
CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(road_record) FROM table_23183195_2 WHERE team = "Vanderbilt"
What is the road record for Vanderbilt?
CREATE TABLE table_23183195_2 (road_record VARCHAR, team VARCHAR)
SELECT result FROM table_name_78 WHERE kickoff_[a_] = "4:00" AND record = "4-8"
What's the result when the kickoff was 4:00 and the record was 4-8?
CREATE TABLE table_name_78 (result VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT competition FROM table_name_38 WHERE opponents = "pkns fc" AND score = "0-0"
Which Competition has Opponents of pkns fc, and a Score of 0-0?
CREATE TABLE table_name_38 (competition VARCHAR, opponents VARCHAR, score VARCHAR)
SELECT portfolio_attachment FROM table_name_47 WHERE age_at_appointment = 48 AND chinese_name = "梁鳳儀"
What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?
CREATE TABLE table_name_47 (portfolio_attachment VARCHAR, age_at_appointment VARCHAR, chinese_name VARCHAR)
SELECT nationality FROM table_name_49 WHERE pick = "1"
What nationality has a pick of 1?
CREATE TABLE table_name_49 (nationality VARCHAR, pick VARCHAR)
SELECT max_torque_at_rpm FROM table_name_31 WHERE engine_code_s_ = "bmm"
What is the maximum torque at rpm for the engine with code BMM?
CREATE TABLE table_name_31 (max_torque_at_rpm VARCHAR, engine_code_s_ VARCHAR)
SELECT MAX(population_1891) FROM table_name_44 WHERE headquarters = "sleaford"
What is the Population n1891 of the County with Sleaford Headquarters?
CREATE TABLE table_name_44 (population_1891 INTEGER, headquarters VARCHAR)
SELECT year FROM table_name_60 WHERE original_title = "megáll az idö"
What was the year of Megáll az Idö?
CREATE TABLE table_name_60 (year VARCHAR, original_title VARCHAR)
SELECT publisher FROM table_name_56 WHERE release_title = "martial law: dead ringers"
Who was the publisher of Martial Law: Dead Ringers?
CREATE TABLE table_name_56 (publisher VARCHAR, release_title VARCHAR)
SELECT career_sr FROM table_name_47 WHERE 1989 = "a" AND 1997 = "f"
What was the career SR with a value of A in 1980 and F in 1997?
CREATE TABLE table_name_47 (career_sr VARCHAR)
SELECT moving_from FROM table_name_64 WHERE country = "esp" AND transfer_fee = "youth system"
What is moving from esp with transfer fee of youth system?
CREATE TABLE table_name_64 (moving_from VARCHAR, country VARCHAR, transfer_fee VARCHAR)
SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3
The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.
CREATE TABLE table_name_51 (total INTEGER, tour VARCHAR, giro VARCHAR)
SELECT district FROM table_2668374_18 WHERE incumbent = "John Dawson"
What district was John Dawson from?
CREATE TABLE table_2668374_18 (district VARCHAR, incumbent VARCHAR)
SELECT Name FROM manager ORDER BY Age DESC LIMIT 1
What is the name of the oldest manager?
CREATE TABLE manager (Name VARCHAR, Age VARCHAR)
SELECT score FROM table_name_81 WHERE record = "16-8-4"
What is the score of the game where the Rangers record was 16-8-4?
CREATE TABLE table_name_81 (score VARCHAR, record VARCHAR)