question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?
CREATE TABLE table_name_7 (opponent VARCHAR, competition VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_7 WHERE competition = "vfl reserves" AND score = "18.6 (114) - 21.14 (140)"
What are the notes for Zimbabwe?
CREATE TABLE table_name_74 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_74 WHERE country = "zimbabwe"
What's the smallest pick number of a player playing in Minnesota North Stars?
CREATE TABLE table_1965650_4 (pick__number INTEGER, nhl_team VARCHAR)
SELECT MIN(pick__number) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars"
Which year averaged less than 9 points?
CREATE TABLE table_name_32 (year INTEGER, points INTEGER)
SELECT AVG(year) FROM table_name_32 WHERE points < 9
List the dates of enrollment and completion of the student with family name "Zieme" and personal name "Bernie".
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, family_name VARCHAR, personal_name VARCHAR)
SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = "Zieme" AND T2.personal_name = "Bernie"
Show the ids of all the faculty members who participate in an activity and advise a student.
CREATE TABLE Student (FacID VARCHAR, advisor VARCHAR); CREATE TABLE Faculty_participates_in (FacID VARCHAR, advisor VARCHAR)
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
Which school comes from Brookville?
CREATE TABLE table_name_57 (school VARCHAR, city VARCHAR)
SELECT school FROM table_name_57 WHERE city = "brookville"
What country does Roberto Almeida live?
CREATE TABLE customers (country VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT country FROM customers WHERE first_name = "Roberto" AND last_name = "Almeida"
How many runs conceded when the earned runs was 4.96?
CREATE TABLE table_15700367_6 (runs_conceded VARCHAR, er VARCHAR)
SELECT runs_conceded FROM table_15700367_6 WHERE er = "4.96"
What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0?
CREATE TABLE table_name_95 (top_10 INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
SELECT SUM(top_10) FROM table_name_95 WHERE cuts_made < 10 AND top_5 < 0
In how many different years was the team nicknamed Comets founded?
CREATE TABLE table_28243691_2 (founded VARCHAR, team_nickname VARCHAR)
SELECT COUNT(founded) FROM table_28243691_2 WHERE team_nickname = "Comets"
What is rank of the year 1956?
CREATE TABLE table_name_63 (rank VARCHAR, year VARCHAR)
SELECT rank FROM table_name_63 WHERE year = "1956"
What event did tim Hague have a record of 3-0?
CREATE TABLE table_name_54 (event VARCHAR, record VARCHAR)
SELECT event FROM table_name_54 WHERE record = "3-0"
If the points is 41, what is the season?
CREATE TABLE table_22998777_1 (season VARCHAR, points VARCHAR)
SELECT season FROM table_22998777_1 WHERE points = "41"
Who played over 37 games and had 202 assists?
CREATE TABLE table_name_20 (name VARCHAR, games VARCHAR, assists VARCHAR)
SELECT name FROM table_name_20 WHERE games > 37 AND assists = 202
Where is constituency number 16?
CREATE TABLE table_name_57 (name VARCHAR, constituency_number VARCHAR)
SELECT name FROM table_name_57 WHERE constituency_number = "16"
Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?
CREATE TABLE table_29295463_9 (champion VARCHAR, runner_up VARCHAR)
SELECT champion FROM table_29295463_9 WHERE runner_up = "Marty Davis"
Which actor played on Home and Away for 20 years?
CREATE TABLE table_name_21 (actor VARCHAR, duration VARCHAR, soap_opera VARCHAR)
SELECT actor FROM table_name_21 WHERE duration = "20 years" AND soap_opera = "home and away"
Name the result for 1810
CREATE TABLE table_2668352_14 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_2668352_14 WHERE first_elected = "1810"
Show me all the restaurants.
CREATE TABLE Restaurant (ResName VARCHAR)
SELECT ResName FROM Restaurant
Who wrote episode number 18?
CREATE TABLE table_28196105_1 (written_by VARCHAR, _number VARCHAR)
SELECT written_by FROM table_28196105_1 WHERE _number = 18
What is the set 5 for the game with a set 2 of 21-25 and a set 1 of 41633?
CREATE TABLE table_name_62 (set_5 VARCHAR, set_2 VARCHAR, set_1 VARCHAR)
SELECT set_5 FROM table_name_62 WHERE set_2 = "21-25" AND set_1 = "41633"
Which song was sung by Artist Luther Vandross in the Week Top 20?
CREATE TABLE table_name_17 (song_sung VARCHAR, artist VARCHAR, week VARCHAR)
SELECT song_sung FROM table_name_17 WHERE artist = "luther vandross" AND week = "top 20"
Which place had a performance of 19.30 seconds by Jamaica?
CREATE TABLE table_name_50 (place VARCHAR, nation VARCHAR, performance VARCHAR)
SELECT place FROM table_name_50 WHERE nation = "jamaica" AND performance = "19.30"
How many points did lech piasecki, stephen roche, and carrera jeans-vagabond have?
CREATE TABLE table_name_55 (points_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR, general_classification VARCHAR)
SELECT points_classification FROM table_name_55 WHERE young_rider_classification = "lech piasecki" AND general_classification = "stephen roche" AND winner = "carrera jeans-vagabond"
What's the finish for the total 288?
CREATE TABLE table_name_96 (finish VARCHAR, total VARCHAR)
SELECT finish FROM table_name_96 WHERE total = 288
Who was the subject of the sculpture created in 1982?
CREATE TABLE table_20903658_1 (title_subject VARCHAR, date_painted_created VARCHAR)
SELECT title_subject FROM table_20903658_1 WHERE date_painted_created = "1982"
Which Frequency MHz has a ERP W of 250?
CREATE TABLE table_name_36 (frequency_mhz INTEGER, erp_w VARCHAR)
SELECT MAX(frequency_mhz) FROM table_name_36 WHERE erp_w = 250
How many Assists for the Player with 13 Games and a Rank less than 3?
CREATE TABLE table_name_29 (assists INTEGER, games VARCHAR, rank VARCHAR)
SELECT SUM(assists) FROM table_name_29 WHERE games = 13 AND rank < 3
What is donovan's surname?
CREATE TABLE table_name_12 (surname VARCHAR, first VARCHAR)
SELECT surname FROM table_name_12 WHERE first = "donovan"
what is the sum of silver when the rank is 3, nation is france and bronze is less than 0?
CREATE TABLE table_name_99 (silver INTEGER, bronze VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT SUM(silver) FROM table_name_99 WHERE rank = 3 AND nation = "france" AND bronze < 0
What nationality has 2 as the rank?
CREATE TABLE table_name_32 (nationality VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_32 WHERE rank = 2
Tell me the school that jason fraser went to
CREATE TABLE table_name_14 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_14 WHERE player = "jason fraser"
Which player is associated with the date June 14, 1969?
CREATE TABLE table_name_63 (player VARCHAR, date VARCHAR)
SELECT player FROM table_name_63 WHERE date = "june 14, 1969"
What are the Notes when the Method is decision?
CREATE TABLE table_name_74 (notes VARCHAR, method VARCHAR)
SELECT notes FROM table_name_74 WHERE method = "decision"
Who is the leading scorer of the wnba finals series?
CREATE TABLE table_name_96 (Leading VARCHAR, series VARCHAR)
SELECT Leading AS scorer FROM table_name_96 WHERE series = "wnba finals"
What's the venue for the asian games tournament?
CREATE TABLE table_name_55 (venue VARCHAR, tournament VARCHAR)
SELECT venue FROM table_name_55 WHERE tournament = "asian games"
What is the state that hosted a tournament with the score of 208 (-8)?
CREATE TABLE table_11622840_1 (location VARCHAR, score VARCHAR)
SELECT location FROM table_11622840_1 WHERE score = "208 (-8)"
what driver has a team of officine alfieri maserati and belongs to the class of non-championship f2 and has a position of 2, as well as a date of 9/1952?
CREATE TABLE table_name_51 (driver VARCHAR, date VARCHAR, position VARCHAR, team VARCHAR, class VARCHAR)
SELECT driver FROM table_name_51 WHERE team = "officine alfieri maserati" AND class = "non-championship f2" AND position = 2 AND date = "9/1952"
What date has a set 4 of 25-19?
CREATE TABLE table_name_33 (date VARCHAR, set_4 VARCHAR)
SELECT date FROM table_name_33 WHERE set_4 = "25-19"
What kind of IHSAA Class has a School of decatur central?
CREATE TABLE table_name_2 (ihsaa_class VARCHAR, school VARCHAR)
SELECT ihsaa_class FROM table_name_2 WHERE school = "decatur central"
What is the location when founded was 1957?
CREATE TABLE table_24195232_1 (location VARCHAR, founded VARCHAR)
SELECT location FROM table_24195232_1 WHERE founded = 1957
Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?
CREATE TABLE table_name_16 (years VARCHAR, free_or_pay VARCHAR, transmission VARCHAR, on_demand VARCHAR)
SELECT years FROM table_name_16 WHERE transmission = "digital satellite" AND on_demand = "no" AND free_or_pay = "free + ppv"
What percentage of the people in Bonneville voted for Bush?
CREATE TABLE table_2401326_1 (bush_percentage VARCHAR, county VARCHAR)
SELECT bush_percentage FROM table_2401326_1 WHERE county = "Bonneville"
What is the constructor for Brazilian Grand Prix?
CREATE TABLE table_name_48 (constructor VARCHAR, grand_prix VARCHAR)
SELECT constructor FROM table_name_48 WHERE grand_prix = "brazilian grand prix"
Tell me the sum of cap/hor for double chair and vertical less than 479
CREATE TABLE table_name_8 (cap_hour INTEGER, type VARCHAR, vertical VARCHAR)
SELECT SUM(cap_hour) FROM table_name_8 WHERE type = "double chair" AND vertical < 479
When 74804 is the attendance what week is it?
CREATE TABLE table_14941284_1 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_14941284_1 WHERE attendance = 74804
Name the total number of top 10 for avg start being 37.3
CREATE TABLE table_2463383_2 (top_10 VARCHAR, avg_start VARCHAR)
SELECT COUNT(top_10) FROM table_2463383_2 WHERE avg_start = "37.3"
What state is the University of Tennessee located in?
CREATE TABLE table_name_91 (state VARCHAR, host VARCHAR)
SELECT state FROM table_name_91 WHERE host = "university of tennessee"
Who are the rowers from the United States?
CREATE TABLE table_name_6 (rowers VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_6 WHERE country = "united states"
What is the birth date of the poker player with the lowest earnings?
CREATE TABLE poker_player (People_ID VARCHAR, Earnings VARCHAR); CREATE TABLE people (Birth_Date VARCHAR, People_ID VARCHAR)
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings LIMIT 1
Show the names and locations of institutions that are founded after 1990 and have the type "Private".
CREATE TABLE institution (institution VARCHAR, LOCATION VARCHAR, founded VARCHAR, TYPE VARCHAR)
SELECT institution, LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'
Which Total matches is the highest one that has Points % of 70%?
CREATE TABLE table_name_74 (total_matches INTEGER, points__percentage VARCHAR)
SELECT MAX(total_matches) FROM table_name_74 WHERE points__percentage = "70%"
Name the religion that has a growth rate of 1.56%
CREATE TABLE table_28137918_5 (religion VARCHAR, growth_rate VARCHAR)
SELECT religion FROM table_28137918_5 WHERE growth_rate = "1.56%"
What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
What's the departed date for Grimsby Class Sloop?
CREATE TABLE table_name_38 (date_departed VARCHAR, class VARCHAR)
SELECT date_departed FROM table_name_38 WHERE class = "grimsby class sloop"
When north melbourne was the home team who was the Away team?
CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_32 WHERE home_team = "north melbourne"
What is the length (miles) when pico to 7th st/metro center are the endpoints?
CREATE TABLE table_1817879_2 (length__miles_ VARCHAR, endpoints VARCHAR)
SELECT length__miles_ FROM table_1817879_2 WHERE endpoints = "Pico to 7th St/Metro Center"
How many different popular vote counts were there for the candidate Rick Perry?
CREATE TABLE table_20246201_9 (popular_vote VARCHAR, candidate VARCHAR)
SELECT COUNT(popular_vote) FROM table_20246201_9 WHERE candidate = "Rick Perry"
How many people live where there are 118% of people have phones?
CREATE TABLE table_name_88 (population VARCHAR, _number_of_phones_as__percentage_of_population VARCHAR)
SELECT population FROM table_name_88 WHERE _number_of_phones_as__percentage_of_population = 118
What is listed for Points for that has a Club of Club?
CREATE TABLE table_name_14 (points_for VARCHAR)
SELECT points_for FROM table_name_14 WHERE "club" = "club"
Which ReFS has yes v3.0 for NTFS?
CREATE TABLE table_name_43 (refs VARCHAR, ntfs VARCHAR)
SELECT refs FROM table_name_43 WHERE ntfs = "yes v3.0"
What is the Purpose of the Area Braidwood?
CREATE TABLE table_name_62 (purpose VARCHAR, area_served VARCHAR)
SELECT purpose FROM table_name_62 WHERE area_served = "braidwood"
What was the date of the game with the record of 18–10–2?
CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_60 WHERE record = "18–10–2"
Name the game site for october 4, 1992
CREATE TABLE table_name_40 (game_site VARCHAR, date VARCHAR)
SELECT game_site FROM table_name_40 WHERE date = "october 4, 1992"
Which player was the forward?
CREATE TABLE table_name_7 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_7 WHERE position = "forward"
Which college has a position of goaltender?
CREATE TABLE table_name_92 (college_junior_club_team__league_ VARCHAR, position VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_92 WHERE position = "goaltender"
Who was the co-driver in the DNF position in the GT1 class?
CREATE TABLE table_name_41 (co_drivers VARCHAR, pos VARCHAR, class VARCHAR)
SELECT co_drivers FROM table_name_41 WHERE pos = "dnf" AND class = "gt1"
Which Series has a Game larger than 1, and a Date of april 18?
CREATE TABLE table_name_39 (series VARCHAR, game VARCHAR, date VARCHAR)
SELECT series FROM table_name_39 WHERE game > 1 AND date = "april 18"
Which driver had a grid number of 10?
CREATE TABLE table_name_11 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_11 WHERE grid = 10
What's the score of the QF round?
CREATE TABLE table_13328239_4 (score VARCHAR, round VARCHAR)
SELECT score FROM table_13328239_4 WHERE round = "QF"
Which Total has a Bronze larger than 12, and a Silver larger than 772, and a Country of thailand?
CREATE TABLE table_name_70 (total INTEGER, country VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT SUM(total) FROM table_name_70 WHERE bronze > 12 AND silver > 772 AND country = "thailand"
On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals?
CREATE TABLE table_name_2 (date_of_polling VARCHAR, liberal VARCHAR, polling_firm VARCHAR, green VARCHAR)
SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30
What is the University of Southern California's highest Round?
CREATE TABLE table_name_92 (round INTEGER, school VARCHAR)
SELECT MAX(round) FROM table_name_92 WHERE school = "university of southern california"
what's the position where player is williams, bernie bernie williams
CREATE TABLE table_11734041_20 (position VARCHAR, player VARCHAR)
SELECT position FROM table_11734041_20 WHERE player = "Williams, Bernie Bernie Williams"
What is the Segment B when the Segment D is s Hammock?
CREATE TABLE table_15187735_6 (segment_b VARCHAR, segment_d VARCHAR)
SELECT segment_b FROM table_15187735_6 WHERE segment_d = "s Hammock"
How many spectators were at the away team Carlton?
CREATE TABLE table_name_14 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_14 WHERE away_team = "carlton"
What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, to_par VARCHAR, place VARCHAR)
SELECT score FROM table_name_38 WHERE to_par > 7 AND place = "t4" AND player = "bob rosburg"
Show the names of singers and the total sales of their songs.
CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR); CREATE TABLE song (Sales INTEGER, Singer_ID VARCHAR)
SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name
Which Country has a Winter Olympics of 1948?
CREATE TABLE table_name_28 (country VARCHAR, winter_olympics VARCHAR)
SELECT country FROM table_name_28 WHERE winter_olympics = "1948"
What's the sum of A Score that also has a score lower than 7.3 and an E Score larger than 7.1?
CREATE TABLE table_name_92 (a_score INTEGER, t_score VARCHAR, e_score VARCHAR)
SELECT SUM(a_score) FROM table_name_92 WHERE t_score < 7.3 AND e_score > 7.1
Which Malaysia Satellite tournaments were played after 1998?
CREATE TABLE table_name_52 (outcome VARCHAR, year VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_52 WHERE year > 1998 AND tournament = "malaysia satellite"
How many laps does the one ranked 16 have?
CREATE TABLE table_name_1 (laps VARCHAR, rank VARCHAR)
SELECT laps FROM table_name_1 WHERE rank = "16"
What constructor is grid 1 with a time/retired of engine?
CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_67 WHERE time_retired = "engine" AND grid = 1
What is Set 1, when Set 2 is "21:18"?
CREATE TABLE table_name_48 (set_1 VARCHAR, set_2 VARCHAR)
SELECT set_1 FROM table_name_48 WHERE set_2 = "21:18"
WHAT TAMIL HAS Kannada of budhavara?
CREATE TABLE table_name_91 (tamil VARCHAR, kannada VARCHAR)
SELECT tamil FROM table_name_91 WHERE kannada = "budhavara"
Which date has a Record of 22-22?
CREATE TABLE table_name_24 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_24 WHERE record = "22-22"
What was the minimal amount ($) of the 1st prize in the tournaments in New Mexico?
CREATE TABLE table_11622562_1 (location VARCHAR)
SELECT MIN(1 AS st_prize__) AS $__ FROM table_11622562_1 WHERE location = "New Mexico"
Name the number of season that was written by adam milch
CREATE TABLE table_12419515_5 (season__number INTEGER, written_by VARCHAR)
SELECT MIN(season__number) FROM table_12419515_5 WHERE written_by = "Adam Milch"
What day was the circuit Isle of Man?
CREATE TABLE table_name_72 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_72 WHERE circuit = "isle of man"
What height was the forward position at Crockett High School?
CREATE TABLE table_12032893_1 (height VARCHAR, position VARCHAR, high_school VARCHAR)
SELECT height FROM table_12032893_1 WHERE position = "Forward" AND high_school = "Crockett"
What is the smallest total produced with a model of M-420?
CREATE TABLE table_name_47 (total_produced INTEGER, model VARCHAR)
SELECT MIN(total_produced) FROM table_name_47 WHERE model = "m-420"
What is the mascot for the instition of Kansas city Kansas community college?
CREATE TABLE table_12434380_1 (mascot VARCHAR, institution VARCHAR)
SELECT mascot FROM table_12434380_1 WHERE institution = "Kansas City Kansas Community College"
What is the year retired of the locomotive which had the quantity made of 25?
CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR)
SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "25"
How many entries are shown for winnings for team #07 robby gordon motorsports?
CREATE TABLE table_1507423_5 (winnings VARCHAR, team_s_ VARCHAR)
SELECT COUNT(winnings) FROM table_1507423_5 WHERE team_s_ = "#07 Robby Gordon Motorsports"
Which City has a 360kw 90kw ERP?
CREATE TABLE table_name_32 (city VARCHAR, erp__analog__digital_ VARCHAR)
SELECT city FROM table_name_32 WHERE erp__analog__digital_ = "360kw 90kw"
On November 2 what was the record of the team?
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_27 WHERE date = "november 2"
What country was the game played in when the location was trestles?
CREATE TABLE table_name_18 (country VARCHAR, location VARCHAR)
SELECT country FROM table_name_18 WHERE location = "trestles"
Which Event has a Year of 1986?
CREATE TABLE table_name_36 (event VARCHAR, year VARCHAR)
SELECT event FROM table_name_36 WHERE year = 1986
Jury larger than 6, and a Artist of zhenya rasskazova, and a Draw larger than 9 had what sum of points?
CREATE TABLE table_name_17 (points INTEGER, draw VARCHAR, jury VARCHAR, artist VARCHAR)
SELECT SUM(points) FROM table_name_17 WHERE jury > 6 AND artist = "zhenya rasskazova" AND draw > 9