answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MIN(games_played) FROM table_28628309_8 WHERE category = "Points per game"
What is the games played when the category is points per game?
CREATE TABLE table_28628309_8 (games_played INTEGER, category VARCHAR)
SELECT MIN(members_lost) FROM table_27671835_3 WHERE net_change = "−1"
What is the lowest number of members lost when the net change is −1?
CREATE TABLE table_27671835_3 (members_lost INTEGER, net_change VARCHAR)
SELECT position FROM table_2387790_2 WHERE year = 1987
What position did he finish in 1987?
CREATE TABLE table_2387790_2 (position VARCHAR, year VARCHAR)
SELECT finish FROM table_name_49 WHERE start = "15" AND team = "bahari"
Which Finish has a Start of 15, and a Team of bahari?
CREATE TABLE table_name_49 (finish VARCHAR, start VARCHAR, team VARCHAR)
SELECT total FROM table_name_12 WHERE set_1 = "25–22"
Which Total has a Set 1 of 25–22?
CREATE TABLE table_name_12 (total VARCHAR, set_1 VARCHAR)
SELECT date FROM table_name_60 WHERE score = "2–1"
What was the date of the game with a score of 2–1?
CREATE TABLE table_name_60 (date VARCHAR, score VARCHAR)
SELECT SUM(against) FROM table_name_45 WHERE lost > 7
What is the sum of Against when the lost is more than 7?
CREATE TABLE table_name_45 (against INTEGER, lost INTEGER)
SELECT first_elected FROM table_1341453_40 WHERE incumbent = "Bud Shuster"
When was incumbent Bud Shuster first elected?
CREATE TABLE table_1341453_40 (first_elected VARCHAR, incumbent VARCHAR)
SELECT intergiro_classification FROM table_name_22 WHERE stage = "21"
During stage 21, who held the Intergiro classification?
CREATE TABLE table_name_22 (intergiro_classification VARCHAR, stage VARCHAR)
SELECT T1.address_details FROM addresses AS T1 JOIN customer_addresses AS T2 ON T1.address_id = T2.address_id WHERE T2.customer_id = 10
Return the address of customer 10.
CREATE TABLE customer_addresses (address_id VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_details VARCHAR, address_id VARCHAR)
SELECT visiting_team FROM table_name_90 WHERE stadium = "jack murphy stadium"
What was the name of the Visiting team at Jack Murphy Stadium?
CREATE TABLE table_name_90 (visiting_team VARCHAR, stadium VARCHAR)
SELECT COUNT(player) FROM table_11677691_3 WHERE hometown = "Indianapolis, Indiana"
How many players are from Indianapolis, Indiana?
CREATE TABLE table_11677691_3 (player VARCHAR, hometown VARCHAR)
SELECT MIN(attendance) FROM table_name_13 WHERE round = "r1" AND venue = "h"
What was the lowest attendance in round r1 at H venue?
CREATE TABLE table_name_13 (attendance INTEGER, round VARCHAR, venue VARCHAR)
SELECT SUM(points) FROM table_name_49 WHERE against < 43 AND position < 1
How many Points have an Against smaller than 43, and a Position smaller than 1?
CREATE TABLE table_name_49 (points INTEGER, against VARCHAR, position VARCHAR)
SELECT record FROM table_name_48 WHERE attendance = "10,389"
What was the record at the game attended by 10,389?
CREATE TABLE table_name_48 (record VARCHAR, attendance VARCHAR)
SELECT directed_by FROM table_1854728_2 WHERE written_by = "Arthur Heinemann"
When arthur heinemann is the writer who is the director?
CREATE TABLE table_1854728_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT date FROM table_name_83 WHERE home_team = "melbourne tigers"
On what date were the Melbourne Tigers the home team?
CREATE TABLE table_name_83 (date VARCHAR, home_team VARCHAR)
SELECT grsecurity FROM table_1357052_6 WHERE distribution = "Debian / Ubuntu"
what's the grsecurity with dbeingtribution being debian / ubuntu
CREATE TABLE table_1357052_6 (grsecurity VARCHAR, distribution VARCHAR)
SELECT COUNT(location_attendance) FROM table_11959669_6 WHERE score = "98–90"
How many times is the score 98–90?
CREATE TABLE table_11959669_6 (location_attendance VARCHAR, score VARCHAR)
SELECT COUNT(*), T2.FullName, T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker = T2.Id GROUP BY T2.id
What is the number of car models that are produced by each maker and what is the id and full name of each maker?
CREATE TABLE CAR_MAKERS (FullName VARCHAR, id VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR)
SELECT AVG(total) FROM table_name_8 WHERE tournament = 3
What is the total on average for teams with 3 tournaments?
CREATE TABLE table_name_8 (total INTEGER, tournament VARCHAR)
SELECT saturday_shani__saturn_ FROM table_name_30 WHERE sunday_surya__the_sun_ = "ថ្ងៃអាទិត្យ [tŋaj ʔaatɨt ]"
What is the result of Saturday that's ថ្ងៃអាទិត្យ [tŋaj ʔaatɨt ] on Sunday?
CREATE TABLE table_name_30 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR)
SELECT tom_horner__i_ FROM table_20032301_3 WHERE matt_entenza__dfl_ = "31%"
What's the percentage of votes for Tom Horner according to the poll source that claimed 31% for Matt Entenza?
CREATE TABLE table_20032301_3 (tom_horner__i_ VARCHAR, matt_entenza__dfl_ VARCHAR)
SELECT teams FROM table_name_80 WHERE season = "1954-55"
Which team had a season 1954-55?
CREATE TABLE table_name_80 (teams VARCHAR, season VARCHAR)
SELECT tournament FROM table_name_99 WHERE surface = "clay" AND outcome = "winner" AND score = "6–3, 6–2"
Name the tournament for clay surface and outcome is winner with score is 6–3, 6–2
CREATE TABLE table_name_99 (tournament VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT COUNT(samples_taken) FROM table_18943444_1 WHERE product = "嬰幼兒配方乳粉2段基粉"
How many samples were taken of 嬰幼兒配方乳粉2段基粉 ?
CREATE TABLE table_18943444_1 (samples_taken VARCHAR, product VARCHAR)
SELECT name FROM table_21536557_2 WHERE time__cet_ = "09:58"
Who is every name for time(cet) of 09:58?
CREATE TABLE table_21536557_2 (name VARCHAR, time__cet_ VARCHAR)
SELECT state FROM table_name_99 WHERE council_votes < 4
Which country has less than 4 votes?
CREATE TABLE table_name_99 (state VARCHAR, council_votes INTEGER)
SELECT winning_team FROM table_name_43 WHERE date = "22 july"
With a Date of 22 July, what is the Winning team?
CREATE TABLE table_name_43 (winning_team VARCHAR, date VARCHAR)
SELECT club FROM table_27374004_2 WHERE chairman = "Roger Lambrecht"
What is the club when the chairman is roger lambrecht?
CREATE TABLE table_27374004_2 (club VARCHAR, chairman VARCHAR)
SELECT COUNT(production_count) FROM table_2501754_2 WHERE episode__number = 5
How many episodes were numbered 5?
CREATE TABLE table_2501754_2 (production_count VARCHAR, episode__number VARCHAR)
SELECT coach FROM table_name_69 WHERE location = "oakden"
Who is the coach located in Oakden?
CREATE TABLE table_name_69 (coach VARCHAR, location VARCHAR)
SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = "working"
What is the description of document status code 'working'?
CREATE TABLE Ref_Document_Status (document_status_description VARCHAR, document_status_code VARCHAR)
SELECT completed FROM table_name_64 WHERE rank = "9"
When did the rank 9 building got completed?
CREATE TABLE table_name_64 (completed VARCHAR, rank VARCHAR)
SELECT away_team FROM table_name_47 WHERE home_team = "essendon"
What was the opponent of the home team of essendon?
CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR)
SELECT chassis FROM table_name_69 WHERE year > 1959 AND engine = "climax l4"
What company built the chassis for a year later than 1959 and a climax l4 engine?
CREATE TABLE table_name_69 (chassis VARCHAR, year VARCHAR, engine VARCHAR)
SELECT points FROM table_name_35 WHERE podiums = "5"
What were the points in the year when his Podiums were 5?
CREATE TABLE table_name_35 (points VARCHAR, podiums VARCHAR)
SELECT constructor FROM table_name_66 WHERE time_retired = "1:36:38.887"
Who built the car that has a Time/Retired of 1:36:38.887?
CREATE TABLE table_name_66 (constructor VARCHAR, time_retired VARCHAR)
SELECT won FROM table_17625749_3 WHERE lost = "5"
How many were won when 5 were lost?
CREATE TABLE table_17625749_3 (won VARCHAR, lost VARCHAR)
SELECT manner_of_departure FROM table_26914759_3 WHERE team = "Notts County" AND incoming_manager = "Martin Allen"
What was the manner of departure for notts county with an incoming manager of martin allen
CREATE TABLE table_26914759_3 (manner_of_departure VARCHAR, team VARCHAR, incoming_manager VARCHAR)
SELECT cfl_team FROM table_25085059_1 WHERE college = "North Dakota"
What CFL team got their draft pick from North Dakota?
CREATE TABLE table_25085059_1 (cfl_team VARCHAR, college VARCHAR)
SELECT position FROM table_name_41 WHERE name = "kyle mckenzie"
What position did kyle mckenzie play?
CREATE TABLE table_name_41 (position VARCHAR, name VARCHAR)
SELECT film FROM table_name_93 WHERE category = "short film 2007 prix uip" AND director_s_ = "abdelatif hwidar"
What film did abdelatif hwidar direct that was in the short film 2007 prix uip category?
CREATE TABLE table_name_93 (film VARCHAR, category VARCHAR, director_s_ VARCHAR)
SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring"
What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?
CREATE TABLE table_name_18 (round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR)
SELECT SUM(crowd) FROM table_name_98 WHERE home_team = "collingwood"
What is the total Crowd with a Home team of collingwood?
CREATE TABLE table_name_98 (crowd INTEGER, home_team VARCHAR)
SELECT elimination FROM table_name_2 WHERE eliminated_by = "sonjay dutt"
What Elimination number is listed againt Eliminated by Sonjay Dutt?
CREATE TABLE table_name_2 (elimination VARCHAR, eliminated_by VARCHAR)
SELECT AVG(laps) FROM table_name_54 WHERE driver = "alex tagliani" AND points > 17
How many average laps for Alex Tagliani with more than 17 points?
CREATE TABLE table_name_54 (laps INTEGER, driver VARCHAR, points VARCHAR)
SELECT year FROM table_name_13 WHERE venue = "atlanta, united states"
Which Year has a Venue of atlanta, united states?
CREATE TABLE table_name_13 (year VARCHAR, venue VARCHAR)
SELECT MAX(runs) FROM table_name_45 WHERE matches > 5
What was the highest amount of runs for more than 5 matches?
CREATE TABLE table_name_45 (runs INTEGER, matches INTEGER)
SELECT to_par FROM table_name_17 WHERE country = "scotland" AND name = "willie macfarlane"
What is the To par of Willie MacFarlane from the country of Scotland?
CREATE TABLE table_name_17 (to_par VARCHAR, country VARCHAR, name VARCHAR)
SELECT results FROM table_19722436_2 WHERE gt1_winning_team = "No.55 IPB Spartak Racing"
When no.55 ipb spartak racing is the g1 winning team what are the results?
CREATE TABLE table_19722436_2 (results VARCHAR, gt1_winning_team VARCHAR)
SELECT leading_scorer FROM table_name_51 WHERE home = "clippers"
Who is the leading scorer when they were at home of the Clippers?
CREATE TABLE table_name_51 (leading_scorer VARCHAR, home VARCHAR)
SELECT party FROM table_1341453_7 WHERE first_elected = 1974
What party was first elected in 1974?
CREATE TABLE table_1341453_7 (party VARCHAR, first_elected VARCHAR)
SELECT MIN(pages) FROM table_name_39 WHERE title = "al-jiniral fi matahatihi"
What's the fewest number of pages for the title al-jiniral fi matahatihi?
CREATE TABLE table_name_39 (pages INTEGER, title VARCHAR)
SELECT location FROM table_name_19 WHERE bowl = "california bowl" AND attendance = "30,000"
Where was the California bowl played with 30,000 attending?
CREATE TABLE table_name_19 (location VARCHAR, bowl VARCHAR, attendance VARCHAR)
SELECT MIN(rank) FROM table_name_66 WHERE name = "area of permanent crops" AND out_of < 181
What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181?
CREATE TABLE table_name_66 (rank INTEGER, name VARCHAR, out_of VARCHAR)
SELECT COUNT(episode) FROM table_15187735_10 WHERE segment_a = "s Fire Extinguisher"
Name the total number of episodes for s fire extinguisher
CREATE TABLE table_15187735_10 (episode VARCHAR, segment_a VARCHAR)
SELECT crowd FROM table_name_33 WHERE home_team = "footscray"
What is the Home team with a crowd relevant to footscray?
CREATE TABLE table_name_33 (crowd VARCHAR, home_team VARCHAR)
SELECT transfer_window FROM table_name_86 WHERE transfer_fee = "free" AND name = "dugdale"
What is the Transfer window, when the Transfer fee is "free", and when the Name is Dugdale?
CREATE TABLE table_name_86 (transfer_window VARCHAR, transfer_fee VARCHAR, name VARCHAR)
SELECT part_3 FROM table_1745843_6 WHERE class = "5"
What's the part 3 of the verb in class 5?
CREATE TABLE table_1745843_6 (part_3 VARCHAR, class VARCHAR)
SELECT MAX(attendance) FROM table_name_50 WHERE result = "w 24-21"
What is the highest Attendance with a Result that is w 24-21?
CREATE TABLE table_name_50 (attendance INTEGER, result VARCHAR)
SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc"
Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?
CREATE TABLE table_name_98 (f_laps VARCHAR, final_placing VARCHAR, podiums VARCHAR, season VARCHAR)
SELECT COUNT(rd) FROM table_14016079_1 WHERE circuit = "Hidden Valley Raceway"
What was the number of rounds on the Hidden Valley Raceway?
CREATE TABLE table_14016079_1 (rd VARCHAR, circuit VARCHAR)
SELECT score FROM table_name_73 WHERE game = 2
What's the score of Game 2?
CREATE TABLE table_name_73 (score VARCHAR, game VARCHAR)
SELECT silver FROM table_name_7 WHERE bronze > 0 AND total < 54 AND nation = "spain"
How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?
CREATE TABLE table_name_7 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT direction FROM table_100518_1 WHERE mantra = "Oṃ Yaṃ Vāyuve Namaḥ"
Where the mantra is "oṃ yaṃ vāyuve namaḥ", what is the direction of the guardian?
CREATE TABLE table_100518_1 (direction VARCHAR, mantra VARCHAR)
SELECT high_assists FROM table_27700375_6 WHERE location_attendance = "Quicken Loans Arena 20,562"
If the location attendance was Quicken Loans Arena 20,562, who had the High Assists?
CREATE TABLE table_27700375_6 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_6 WHERE week = 9
What is the Date of Week 9?
CREATE TABLE table_name_6 (date VARCHAR, week VARCHAR)
SELECT registrations FROM table_11934032_1 WHERE station_number = "C26"
what are all the registrations where station number is c26
CREATE TABLE table_11934032_1 (registrations VARCHAR, station_number VARCHAR)
SELECT MIN(year) FROM table_name_56 WHERE category = "best performance by a leading actor in a play"
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play?
CREATE TABLE table_name_56 (year INTEGER, category VARCHAR)
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.age > 18
How many members of "Bootup Baltimore" are older than 18?
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
Find the number of items that did not receive any review.
CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR)
SELECT network FROM table_name_69 WHERE aspect = "4:3" AND channel > 31.4
Which network has more than 31.4 channels with a 4:3 aspect?
CREATE TABLE table_name_69 (network VARCHAR, aspect VARCHAR, channel VARCHAR)
SELECT winner FROM table_name_42 WHERE season = 2009
Who was the winner during the 2009 season?
CREATE TABLE table_name_42 (winner VARCHAR, season VARCHAR)
SELECT COUNT(candidates) FROM table_name_71 WHERE _percentage_of_vote = 0 AND election = 1999 AND seats_won > 0
How many candidates had 0 percent of the vote in 1999?
CREATE TABLE table_name_71 (candidates VARCHAR, seats_won VARCHAR, _percentage_of_vote VARCHAR, election VARCHAR)
SELECT date FROM table_name_68 WHERE circuit = "monza"
When was the Monza circuit?
CREATE TABLE table_name_68 (date VARCHAR, circuit VARCHAR)
SELECT party FROM table_1342218_17 WHERE district = "Kentucky 5"
Which party won in the election in voting district Kentucky 5?
CREATE TABLE table_1342218_17 (party VARCHAR, district VARCHAR)
SELECT AVG(HS) FROM Player
What is the average training hours of all players?
CREATE TABLE Player (HS INTEGER)
SELECT AVG(draws) FROM table_name_70 WHERE losses > 9 AND wins > 9
What is the average Draws, when Losses is greater than 9, and when Wins is greater than 9?
CREATE TABLE table_name_70 (draws INTEGER, losses VARCHAR, wins VARCHAR)
SELECT cfl_team FROM table_23619005_3 WHERE position = "SB"
What CFL team was the player playing on SB position drafted for?
CREATE TABLE table_23619005_3 (cfl_team VARCHAR, position VARCHAR)
SELECT streak FROM table_name_1 WHERE location_attendance = "staples center" AND score = "67–89"
which Streak has a Location/Attendance of staples center, and a Score of 67–89?
CREATE TABLE table_name_1 (streak VARCHAR, location_attendance VARCHAR, score VARCHAR)
SELECT COUNT(canton) FROM table_1417184_1 WHERE commune = "Waldbillig"
how many canton with commune being waldbillig
CREATE TABLE table_1417184_1 (canton VARCHAR, commune VARCHAR)
SELECT helium FROM table_name_54 WHERE argon = "−189.6"
which Helium has a Argon of −189.6?
CREATE TABLE table_name_54 (helium VARCHAR, argon VARCHAR)
SELECT SUM(pick__number) FROM table_name_79 WHERE cfl_team = "edmonton eskimos"
What is the total pick numbers for the CFL team Edmonton Eskimos?
CREATE TABLE table_name_79 (pick__number INTEGER, cfl_team VARCHAR)
SELECT points_for FROM table_13399573_3 WHERE points = "52"
What amount of points for were there when there was 52 points?
CREATE TABLE table_13399573_3 (points_for VARCHAR, points VARCHAR)
SELECT date FROM table_name_9 WHERE opponent = "renato ferreira"
What was the date for renato ferreira?
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(total) FROM table_name_93 WHERE player = "tom watson" AND to_par > 10
What is the total number that Tom Watson parred larger than 10?
CREATE TABLE table_name_93 (total VARCHAR, player VARCHAR, to_par VARCHAR)
SELECT name FROM table_name_2 WHERE rocket = "titan iv(401)b" AND block = "block i/ii hybrid"
What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?
CREATE TABLE table_name_2 (name VARCHAR, rocket VARCHAR, block VARCHAR)
SELECT Population, LifeExpectancy FROM country WHERE Name = "Brazil"
What are the population and life expectancies in Brazil?
CREATE TABLE country (Population VARCHAR, LifeExpectancy VARCHAR, Name VARCHAR)
SELECT COUNT(introductory_phrase) FROM table_25691838_8 WHERE guest = "David Finkel"
How many introductory phrases were there on David Finkel's guest episode?
CREATE TABLE table_25691838_8 (introductory_phrase VARCHAR, guest VARCHAR)
SELECT result FROM table_name_24 WHERE award = "best feature film" AND organization = "macabro film festival"
What was the Best Feature Film at the Macabro Film Festival?
CREATE TABLE table_name_24 (result VARCHAR, award VARCHAR, organization VARCHAR)
SELECT name FROM table_name_62 WHERE nationality = "spain" AND ranking > 3
What is the name of the player from Spain with a rank lower than 3?
CREATE TABLE table_name_62 (name VARCHAR, nationality VARCHAR, ranking VARCHAR)
SELECT home_team FROM table_name_73 WHERE away_team = "collingwood"
What was the home team that played Collingwood?
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
SELECT place FROM table_14977252_2 WHERE professional_jury = 5
Name the place of the jury of 5
CREATE TABLE table_14977252_2 (place VARCHAR, professional_jury VARCHAR)
SELECT report FROM table_12161822_5 WHERE fastest_lap = "Felipe Massa" AND winning_driver = "Jenson Button"
what's the report with fastest lap being felipe massa and winning driver being jenson button
CREATE TABLE table_12161822_5 (report VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT MIN(rank) FROM table_name_73 WHERE nationality = "poland" AND time > 55.34
What is the lowest rank with poland as the nationality and a time greater than 55.34?
CREATE TABLE table_name_73 (rank INTEGER, nationality VARCHAR, time VARCHAR)
SELECT males FROM table_name_76 WHERE percentage___percentage_ = "0.42"
Which Males have a percentage of 0.42?
CREATE TABLE table_name_76 (males VARCHAR, percentage___percentage_ VARCHAR)
SELECT church_name FROM table_178389_1 WHERE location_of_the_church = "Høyanger"
What is the church name located in Høyanger?
CREATE TABLE table_178389_1 (church_name VARCHAR, location_of_the_church VARCHAR)
SELECT pick FROM table_name_36 WHERE player = "moe gardner"
What was Moe Gardner's pick?
CREATE TABLE table_name_36 (pick VARCHAR, player VARCHAR)
SELECT sanskrit_word FROM table_180802_3 WHERE color = "red"
What is the sanskrit word for the color red?
CREATE TABLE table_180802_3 (sanskrit_word VARCHAR, color VARCHAR)