answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(number) FROM table_name_57 WHERE position = "f" AND hometown = "dallas, texas"
What is the number with the f position in Dallas, Texas?
CREATE TABLE table_name_57 (number VARCHAR, position VARCHAR, hometown VARCHAR)
SELECT COUNT(overall) FROM table_name_42 WHERE player = "fred hoaglin"
How many drafts featured fred hoaglin?
CREATE TABLE table_name_42 (overall VARCHAR, player VARCHAR)
SELECT population_density__people_per_mi_2__ FROM table_22916979_1 WHERE land_area__mi_2__ = "135.09"
For the city whose land area was 135.09, what was the total population density?
CREATE TABLE table_22916979_1 (population_density__people_per_mi_2__ VARCHAR, land_area__mi_2__ VARCHAR)
SELECT latin_motto FROM table_name_94 WHERE translation = "spouse"
What is the Latin motto of the sign that translates to spouse?
CREATE TABLE table_name_94 (latin_motto VARCHAR, translation VARCHAR)
SELECT country FROM table_name_79 WHERE total > 293 AND to_par < 17
What country has a total larger than 293, and a to par less than 17?
CREATE TABLE table_name_79 (country VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT away_team AS score FROM table_name_24 WHERE venue = "moorabbin oval"
What did the away team score at Moorabbin Oval?
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1
What is the rank that has 1 bronze and 1 silver?
CREATE TABLE table_name_63 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MAX(rank) FROM table_name_67 WHERE lane > 6 AND heat = 3 AND nationality = "colombia"
What is the highest rank when the lane is larger than 6, and the heat is 3, and the nationality is colombia?
CREATE TABLE table_name_67 (rank INTEGER, nationality VARCHAR, lane VARCHAR, heat VARCHAR)
SELECT record FROM table_name_41 WHERE loss = "wyatt (4–4)"
What was the record at the game that had a loss of Wyatt (4–4)?
CREATE TABLE table_name_41 (record VARCHAR, loss VARCHAR)
SELECT MIN(opponents) FROM table_16028459_2 WHERE opponent = "Baltimore Colts"
What is the minimum number of points given up to the Baltimore Colts
CREATE TABLE table_16028459_2 (opponents INTEGER, opponent VARCHAR)
SELECT COUNT(year) FROM table_22597626_6 WHERE score_in_the_final = "6–3, 6–2, 6–4"
Name the number of year for score being 6–3, 6–2, 6–4
CREATE TABLE table_22597626_6 (year VARCHAR, score_in_the_final VARCHAR)
SELECT date_made FROM table_name_31 WHERE type = "0-6-0" AND gsr_class = "441"
What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441?
CREATE TABLE table_name_31 (date_made VARCHAR, type VARCHAR, gsr_class VARCHAR)
SELECT away_team FROM table_name_11 WHERE venue = "windy hill"
Who was the away team at Windy Hill?
CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR)
SELECT opposition FROM table_name_56 WHERE stadium = "westpac stadium" AND attendance = "31,853"
Who's the opposition at westpac stadium when the attendance is 31,853?
CREATE TABLE table_name_56 (opposition VARCHAR, stadium VARCHAR, attendance VARCHAR)
SELECT round FROM table_name_21 WHERE college = "stanford"
Which round goes to Stanford college?
CREATE TABLE table_name_21 (round VARCHAR, college VARCHAR)
SELECT MIN(seats) FROM table_name_6 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election < 1992
Which Seatshave a Share of votes of 18%, and a Share of seats of 3%, and a General election smaller than 1992?
CREATE TABLE table_name_6 (seats INTEGER, general_election VARCHAR, share_of_votes VARCHAR, share_of_seats VARCHAR)
SELECT team FROM table_name_67 WHERE pick = 40
What Team has a Pick of 40?
CREATE TABLE table_name_67 (team VARCHAR, pick VARCHAR)
SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista"
How many Drawn does the team Portuguesa Santista have?
CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)
SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26
What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6?
CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR)
SELECT county FROM table_name_74 WHERE latitude > 48.581299 AND ansi_code > 1037103 AND geo_id = 3801985060
what is the county when the latitude is more than 48.581299, ansi code is more than 1037103 and the geo id is 3801985060?
CREATE TABLE table_name_74 (county VARCHAR, geo_id VARCHAR, latitude VARCHAR, ansi_code VARCHAR)
SELECT high_points FROM table_22879323_10 WHERE high_rebounds = "Terrence Williams (8)"
What was the high points when rebounds were Terrence Williams (8)?
CREATE TABLE table_22879323_10 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT independent_socialist_ticket FROM table_name_75 WHERE liberal_ticket = "edward goodell"
Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell?
CREATE TABLE table_name_75 (independent_socialist_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT round FROM table_name_62 WHERE school_club_team = "tennessee-chattanooga"
What is Round, when School/Club Team is "Tennessee-Chattanooga"?
CREATE TABLE table_name_62 (round VARCHAR, school_club_team VARCHAR)
SELECT MAX(new_zealand) FROM table_name_47 WHERE hong_kong < 0
What is the highest New Zealand value with a Hong Kong value less than 0?
CREATE TABLE table_name_47 (new_zealand INTEGER, hong_kong INTEGER)
SELECT AVG(sales__billion_) AS $_ FROM table_name_5 WHERE company = "walmart" AND profits__billion_$_ > 15.7
What is the average sales in billions of walmart, which has more than 15.7 billion in profits?
CREATE TABLE table_name_5 (sales__billion_ INTEGER, company VARCHAR, profits__billion_$_ VARCHAR)
SELECT MAX(week) FROM table_name_40 WHERE date = "november 5, 1995"
What is the latest week with the date of november 5, 1995?
CREATE TABLE table_name_40 (week INTEGER, date VARCHAR)
SELECT MIN(erp_w) FROM table_name_26 WHERE frequency_mhz = 94.9
What is the smallest ERP W with a frequency MHz of 94.9?
CREATE TABLE table_name_26 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT tv_time FROM table_name_86 WHERE attendance = "60,894"
Tell me the tv time for attendance of 60,894
CREATE TABLE table_name_86 (tv_time VARCHAR, attendance VARCHAR)
SELECT place FROM table_name_50 WHERE silver = "valeri postoianov ( urs )" AND year > 1969 AND bronze = "alexander gazov ( urs )"
In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )?
CREATE TABLE table_name_50 (place VARCHAR, bronze VARCHAR, silver VARCHAR, year VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval"
What did the away team score at Junction oval?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT season FROM table_27274566_2 WHERE result = "1–0 (aet)"
Which season had a result of 1–0 (aet)?
CREATE TABLE table_27274566_2 (season VARCHAR, result VARCHAR)
SELECT enrollment FROM table_name_35 WHERE university = "university of akron"
What was the university of akron's enrollment?
CREATE TABLE table_name_35 (enrollment VARCHAR, university VARCHAR)
SELECT place FROM table_name_65 WHERE player = "tim clark"
Name the place for tim clark
CREATE TABLE table_name_65 (place VARCHAR, player VARCHAR)
SELECT MIN(rank) FROM table_name_52 WHERE games > 2
What is the smallest rank when there are more than 2 games?
CREATE TABLE table_name_52 (rank INTEGER, games INTEGER)
SELECT run_3 FROM table_name_13 WHERE run_1 = "2:20.10"
Which Run 3 has a Run 1 of 2:20.10?
CREATE TABLE table_name_13 (run_3 VARCHAR, run_1 VARCHAR)
SELECT T2.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T3.name LIKE '%Smith%'
Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.
CREATE TABLE scientists (SSN VARCHAR, name VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)
SELECT SUM(silver) FROM table_name_21 WHERE gold < 1 AND rank = "8" AND total > 1
How many Silver medals did the Nation ranking 8 with more than 1 Total medal but less than 1 Gold receive?
CREATE TABLE table_name_21 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT series FROM table_name_4 WHERE date = "may 16"
Which series was on May 16?
CREATE TABLE table_name_4 (series VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_20 WHERE result = "w 26-20"
Who was the opponent at the game with a result of W 26-20?
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR)
SELECT AVG(attendance) FROM table_name_91 WHERE date = "december 22, 1980"
Mean attendance for December 22, 1980?
CREATE TABLE table_name_91 (attendance INTEGER, date VARCHAR)
SELECT name FROM table_name_61 WHERE type = "freighter" AND nationality = "united kingdom" AND date = "3 may 1940"
what is the name when the type is freighter, nationality is united kingdom on 3 may 1940?
CREATE TABLE table_name_61 (name VARCHAR, date VARCHAR, type VARCHAR, nationality VARCHAR)
SELECT format FROM table_name_51 WHERE catalog = "660-51-015"
What was the format for catalog 660-51-015?
CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR)
SELECT outcome FROM table_name_11 WHERE surface = "carpet (i)"
When the Surface was Carpet (i), what was the Outcome?
CREATE TABLE table_name_11 (outcome VARCHAR, surface VARCHAR)
SELECT builder FROM table_name_16 WHERE pennant = "r90"
What is the building for the r90 pennant?
CREATE TABLE table_name_16 (builder VARCHAR, pennant VARCHAR)
SELECT college FROM table_10812938_3 WHERE cfl_team = "Edmonton Eskimos (via Calgary)"
What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?
CREATE TABLE table_10812938_3 (college VARCHAR, cfl_team VARCHAR)
SELECT MAX(psychological_dependence) FROM table_name_55 WHERE pleasure < 2.3 AND drug = "cannabis" AND physical_dependence < 0.8
What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is "Cannabis", and when Physical Dependence is less than 0.8?
CREATE TABLE table_name_55 (psychological_dependence INTEGER, physical_dependence VARCHAR, pleasure VARCHAR, drug VARCHAR)
SELECT island FROM table_name_43 WHERE country = "united kingdom"
Which island is in the United Kingdom?
CREATE TABLE table_name_43 (island VARCHAR, country VARCHAR)
SELECT score FROM table_name_54 WHERE place = "t3" AND player = "seve ballesteros"
What score did Seve Ballesteros have when he was in T3 place?
CREATE TABLE table_name_54 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT director FROM table_26385848_1 WHERE film_title = "Eldra"
Who is the director for the film title Eldra?
CREATE TABLE table_26385848_1 (director VARCHAR, film_title VARCHAR)
SELECT decade FROM table_name_92 WHERE artist = "the replacements"
What decade is the artist the replacements?
CREATE TABLE table_name_92 (decade VARCHAR, artist VARCHAR)
SELECT females___percentage_ FROM table_14598_9 WHERE state_ut_code = 4
What is the percentage of females where the state code is a 4?
CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, state_ut_code VARCHAR)
SELECT MAX(col__m_) FROM table_18946749_4 WHERE island = "North island"
What is the highest value for col(m) at North Island?
CREATE TABLE table_18946749_4 (col__m_ INTEGER, island VARCHAR)
SELECT district FROM table_1341472_34 WHERE first_elected = 1994
Name thedistrict for 1994
CREATE TABLE table_1341472_34 (district VARCHAR, first_elected VARCHAR)
SELECT COUNT(*) FROM people WHERE NOT people_id IN (SELECT People_ID FROM body_builder)
How many persons are not body builders?
CREATE TABLE body_builder (people_id VARCHAR, People_ID VARCHAR); CREATE TABLE people (people_id VARCHAR, People_ID VARCHAR)
SELECT MAX(season__number) FROM table_12294557_3 WHERE us_airdate = "May 1, 2009"
What is the maximum season # with a u.s. air date is may 1, 2009
CREATE TABLE table_12294557_3 (season__number INTEGER, us_airdate VARCHAR)
SELECT winner FROM table_name_47 WHERE course = "forlì to carpi"
Who won at course Forlì to Carpi?
CREATE TABLE table_name_47 (winner VARCHAR, course VARCHAR)
SELECT ab_ripper_x FROM table_27512025_1 WHERE exercise = "X Stretch"
What is the ab ripper x when exercise is x stretch?
CREATE TABLE table_27512025_1 (ab_ripper_x VARCHAR, exercise VARCHAR)
SELECT pos FROM table_name_20 WHERE from_club = "cska moscow"
What is Pos., when From Club is "CSKA Moscow"?
CREATE TABLE table_name_20 (pos VARCHAR, from_club VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_61 WHERE population = 1 OFFSET 215
How much Area km 2 have a Population of 1,215?
CREATE TABLE table_name_61 (area_km_2 VARCHAR, population VARCHAR)
SELECT COUNT(to_par) FROM table_name_48 WHERE year_won < 1993 AND player = "jeff sluman" AND total > 154
What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154?
CREATE TABLE table_name_48 (to_par VARCHAR, total VARCHAR, year_won VARCHAR, player VARCHAR)
SELECT result FROM table_2668352_14 WHERE district = "Pennsylvania 8"
Name the result for pennsylvania 8
CREATE TABLE table_2668352_14 (result VARCHAR, district VARCHAR)
SELECT MIN(height) FROM table_name_37 WHERE player = "rans brempong"
What is the lowest height for Rans Brempong?
CREATE TABLE table_name_37 (height INTEGER, player VARCHAR)
SELECT tournament FROM table_name_40 WHERE runner_s__up = "ryan palmer"
Which tournaments was Ryan Palmer in as a runner-up?
CREATE TABLE table_name_40 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT competition FROM table_name_89 WHERE club = "villareal"
What competition has the club villareal?
CREATE TABLE table_name_89 (competition VARCHAR, club VARCHAR)
SELECT COUNT(october) FROM table_name_41 WHERE september < 2.48 AND year > 2002 AND june > 1.42 AND february < 7.44
What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?
CREATE TABLE table_name_41 (october VARCHAR, february VARCHAR, june VARCHAR, september VARCHAR, year VARCHAR)
SELECT date FROM table_name_11 WHERE week < 3 AND opponent = "houston oilers"
What is the date for the game with an opponent of the Houston Oilers from before week 3?
CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT writer FROM table_name_14 WHERE film = "run"
Who is the writer of the film Run?
CREATE TABLE table_name_14 (writer VARCHAR, film VARCHAR)
SELECT score FROM table_name_84 WHERE game = 4
What was the score of game 4?
CREATE TABLE table_name_84 (score VARCHAR, game VARCHAR)
SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor"
What is the earliest year a Baylor player made the list?
CREATE TABLE table_name_79 (year INTEGER, college_country VARCHAR)
SELECT AVG(winner_rank) FROM matches
Find the average rank of winners in all matches.
CREATE TABLE matches (winner_rank INTEGER)
SELECT artist FROM table_name_81 WHERE country = "uruguay"
what artist cam from uruguay
CREATE TABLE table_name_81 (artist VARCHAR, country VARCHAR)
SELECT COUNT(place) FROM table_name_88 WHERE singer = "mariza ikonomi" AND points > 20
What is the total for the place when the singer is Mariza Ikonomi when points are larger than 20?
CREATE TABLE table_name_88 (place VARCHAR, singer VARCHAR, points VARCHAR)
SELECT human_gene__protein_ FROM table_name_27 WHERE mouse_ortholog = "lig1"
What is the human gene that has a mouse ortholog of LIG1?
CREATE TABLE table_name_27 (human_gene__protein_ VARCHAR, mouse_ortholog VARCHAR)
SELECT position_in_table FROM table_name_13 WHERE date_of_vacancy = "4 december 2008"
What is the table position for 4 December 2008 vacancy?
CREATE TABLE table_name_13 (position_in_table VARCHAR, date_of_vacancy VARCHAR)
SELECT location FROM table_name_13 WHERE left = "2013" AND nickname = "royals"
Where was the game played with a 2013 left and Royals nickname?
CREATE TABLE table_name_13 (location VARCHAR, left VARCHAR, nickname VARCHAR)
SELECT released FROM table_name_42 WHERE memory_type = "ddr2-667"
Whas is the released date of the memory type ddr2-667?
CREATE TABLE table_name_42 (released VARCHAR, memory_type VARCHAR)
SELECT distance FROM table_name_27 WHERE bearing = "297°"
what is the distance for bearing 297°?
CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR)
SELECT date FROM table_name_68 WHERE tournament = "prijedor"
When was the Prijedor tournament?
CREATE TABLE table_name_68 (date VARCHAR, tournament VARCHAR)
SELECT to_par FROM table_name_9 WHERE player = "todd hamilton"
What was Todd Hamilton's to par?
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_97 WHERE home = "broadview hawks"
What was the score of the game with the Broadview Hawks as the home team?
CREATE TABLE table_name_97 (score VARCHAR, home VARCHAR)
SELECT 2009 FROM table_name_1 WHERE 2000 = "1r" AND 1998 = "3r"
What is 2009, when 2000 is 1R, and when 1998 is 3R?
CREATE TABLE table_name_1 (Id VARCHAR)
SELECT green_rating FROM table_name_68 WHERE l_100km_urban__cold_ > 10.9 AND mpg_us_urban > 14.1 AND manufacturer = "volkswagen" AND engine_capacity < 3189
What is the green rating for the vehicle with L/100km urban (cold) over 10.9, mpg in the US (urban) over 14.1, manufacturer of Volkswagen, and engine capacity under 3189?
CREATE TABLE table_name_68 (green_rating VARCHAR, engine_capacity VARCHAR, manufacturer VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_us_urban VARCHAR)
SELECT high_points FROM table_name_89 WHERE opponent = "los angeles"
WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?
CREATE TABLE table_name_89 (high_points VARCHAR, opponent VARCHAR)
SELECT SUM(position) FROM table_name_29 WHERE lost = 6 AND team = "caernarfon town"
WHAT IS THE POSITION WITH A LOST OF 6, FOR CAERNARFON TOWN?
CREATE TABLE table_name_29 (position INTEGER, lost VARCHAR, team VARCHAR)
SELECT MIN(draw) FROM table_name_22 WHERE points > 43 AND rank = "6th"
What is the lowest draw number for the song ranked 6th with more than 43 points?
CREATE TABLE table_name_22 (draw INTEGER, points VARCHAR, rank VARCHAR)
SELECT d_42 FROM table_name_41 WHERE r_51 = "r 11"
I want the D 42 with R 51 of r 11
CREATE TABLE table_name_41 (d_42 VARCHAR, r_51 VARCHAR)
SELECT MIN(joined_tschl) FROM table_16384648_2
What's the earliest year anybody joined the hockey league?
CREATE TABLE table_16384648_2 (joined_tschl INTEGER)
SELECT COUNT(network) FROM table_160728_4 WHERE channel = 7
How many networks are there that have a channel number 7?
CREATE TABLE table_160728_4 (network VARCHAR, channel VARCHAR)
SELECT 2010 FROM table_name_20 WHERE 2002 = "2r"
Which 2010 has a 2002 of 2r?
CREATE TABLE table_name_20 (Id VARCHAR)
SELECT region FROM table_name_8 WHERE state = "georgia"
Tell me the region for georgia
CREATE TABLE table_name_8 (region VARCHAR, state VARCHAR)
SELECT gold FROM table_name_65 WHERE year > 1970 AND place = "milan"
What gold has a year after 1970, with milan as the place?
CREATE TABLE table_name_65 (gold VARCHAR, year VARCHAR, place VARCHAR)
SELECT entrant FROM table_name_22 WHERE driver = "nigel mansell"
Nigel Mansell was the driver in what Entrant?
CREATE TABLE table_name_22 (entrant VARCHAR, driver VARCHAR)
SELECT gloss FROM table_name_69 WHERE pronunciation = "[χdəm]"
Name the gloss for [χdəm]
CREATE TABLE table_name_69 (gloss VARCHAR, pronunciation VARCHAR)
SELECT name FROM table_name_95 WHERE dcsf_number > 2448 AND ofsted_number = 131319
What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?
CREATE TABLE table_name_95 (name VARCHAR, dcsf_number VARCHAR, ofsted_number VARCHAR)
SELECT MAX(Number_cities), MIN(Number_cities) FROM market
What are the maximum and minimum number of cities in all markets.
CREATE TABLE market (Number_cities INTEGER)
SELECT SUM(ttkl) FROM table_name_46 WHERE year = "2004" AND pass_def > 5
How many TTkl have 2004 as the year, and a pass def greater than 5?
CREATE TABLE table_name_46 (ttkl INTEGER, year VARCHAR, pass_def VARCHAR)
SELECT COUNT(period) FROM table_24565004_11 WHERE goals¹ = 15
How many periods had 15 goals?
CREATE TABLE table_24565004_11 (period VARCHAR, goals¹ VARCHAR)
SELECT AVG(goals_against) FROM table_name_92 WHERE draws = 8 AND losses < 12 AND wins > 22
Name the average goals against for draws of 8 and wins more than 22 with losses less than 12
CREATE TABLE table_name_92 (goals_against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR)
SELECT MIN(attendance) FROM table_name_36 WHERE loss = "obermueller (1-2)"
What would be the lowest Attendance that also showed a loss of Obermueller (1-2)?
CREATE TABLE table_name_36 (attendance INTEGER, loss VARCHAR)
SELECT manufacturer FROM table_name_43 WHERE fleet_numbers = "wlwr 2, 4, 11"
Who manufactured fleet numbers of wlwr 2, 4, 11?
CREATE TABLE table_name_43 (manufacturer VARCHAR, fleet_numbers VARCHAR)