answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT venue FROM table_name_29 WHERE away_team = "richmond"
What venue did Richmond play as the away team?
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
SELECT COUNT(lost) FROM table_name_21 WHERE team = "corinthians" AND points > 22
How many losses does corinthians have when they scored over 22 points?
CREATE TABLE table_name_21 (lost VARCHAR, team VARCHAR, points VARCHAR)
SELECT record FROM table_11964154_9 WHERE score = "W 105–92 (OT)"
what's the record where score is w 105–92 (ot)
CREATE TABLE table_11964154_9 (record VARCHAR, score VARCHAR)
SELECT away_team AS score FROM table_name_33 WHERE venue = "western oval"
In Western Oval, what was the away team score?
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR)
SELECT position FROM table_name_99 WHERE cfl_team = "toronto argonauts"
What position does the player from the Toronto Argonauts play?
CREATE TABLE table_name_99 (position VARCHAR, cfl_team VARCHAR)
SELECT series FROM table_name_80 WHERE title = "kiss me cat"
What's the series of Kiss Me Cat?
CREATE TABLE table_name_80 (series VARCHAR, title VARCHAR)
SELECT high_rebounds FROM table_17325937_5 WHERE date = "November 26"
What was the high rebounds on November 26?
CREATE TABLE table_17325937_5 (high_rebounds VARCHAR, date VARCHAR)
SELECT length__ft_ FROM table_name_67 WHERE manufacturer = "nfi" AND model = "d40lf" AND order_year = "2008"
What is the Length (ft.) for a 2008 nfi d40lf?
CREATE TABLE table_name_67 (length__ft_ VARCHAR, order_year VARCHAR, manufacturer VARCHAR, model VARCHAR)
SELECT high_assists FROM table_13557843_3 WHERE team = "Charlotte"
Who had the high assists against charlotte?
CREATE TABLE table_13557843_3 (high_assists VARCHAR, team VARCHAR)
SELECT tie_no FROM table_name_10 WHERE away_team = "sheffield united"
What shows for Tie no when Sheffield United was the Away team?
CREATE TABLE table_name_10 (tie_no VARCHAR, away_team VARCHAR)
SELECT call_sign FROM table_name_1 WHERE class = "a" AND frequency_mhz = 88.7
Which call sign has a Class of A, and a Frequency MHz of 88.7?
CREATE TABLE table_name_1 (call_sign VARCHAR, class VARCHAR, frequency_mhz VARCHAR)
SELECT season__number FROM table_12030612_3 WHERE written_by = "Michael Poryes"
What season features writer Michael Poryes?
CREATE TABLE table_12030612_3 (season__number VARCHAR, written_by VARCHAR)
SELECT position FROM table_name_89 WHERE player = "jason fitzgerald"
What position Jason Fitzgerald played?
CREATE TABLE table_name_89 (position VARCHAR, player VARCHAR)
SELECT nat FROM table_name_97 WHERE moving_from = "espanyol"
What nation had a moving from of espanyol?
CREATE TABLE table_name_97 (nat VARCHAR, moving_from VARCHAR)
SELECT date FROM table_name_39 WHERE source = "rasmussen reports"
When has a Source of rasmussen reports?
CREATE TABLE table_name_39 (date VARCHAR, source VARCHAR)
SELECT AVG(year) FROM table_name_47 WHERE saar = "fk pirmasens" AND hessen = "wormatia worms"
What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms?
CREATE TABLE table_name_47 (year INTEGER, saar VARCHAR, hessen VARCHAR)
SELECT fuel_type FROM table_name_62 WHERE mpg_us_extra_urban > 53.5 AND mpg_us_combined > 50 AND manufacturer = "renault"
Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?
CREATE TABLE table_name_62 (fuel_type VARCHAR, manufacturer VARCHAR, mpg_us_extra_urban VARCHAR, mpg_us_combined VARCHAR)
SELECT fcsl_team FROM table_18373863_2 WHERE mlb_team = "Toronto Blue Jays"
When toronto blue jays are the mlb team who are the fscl team?
CREATE TABLE table_18373863_2 (fcsl_team VARCHAR, mlb_team VARCHAR)
SELECT home_team AS score FROM table_name_62 WHERE home_team = "footscray"
What was Footscray's Home team score?
CREATE TABLE table_name_62 (home_team VARCHAR)
SELECT status FROM table_16185956_1 WHERE results = "63% 37%"
What is the status of the district where the result is 63% 37%?
CREATE TABLE table_16185956_1 (status VARCHAR, results VARCHAR)
SELECT MAX(rushing_yards) FROM table_name_16 WHERE rushes = 283 AND rushing_tds < 10
What was the greatest number of rushing yards for a runner who had 283 rushes and less than 10 rushing TDs?
CREATE TABLE table_name_16 (rushing_yards INTEGER, rushes VARCHAR, rushing_tds VARCHAR)
SELECT score FROM table_name_79 WHERE date = "25 may 2007"
What was the Score on 25 May 2007?
CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR)
SELECT office FROM table_197446_1 WHERE term_ended = "January 3, 1993"
What group was in office when the term ended in January 3, 1993?
CREATE TABLE table_197446_1 (office VARCHAR, term_ended VARCHAR)
SELECT date FROM table_name_98 WHERE away_team = "aston villa"
What is the date when Aston Villa is the away team?
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT tonnage__grt_ FROM table_name_15 WHERE name = "eldena"
What is the tonnage of the Eldena?
CREATE TABLE table_name_15 (tonnage__grt_ VARCHAR, name VARCHAR)
SELECT bird_uniform FROM table_name_8 WHERE eagle_riders = "mickey dugan"
What is the bird uniform for Eagle Rider Mickey Dugan?
CREATE TABLE table_name_8 (bird_uniform VARCHAR, eagle_riders VARCHAR)
SELECT 2007 FROM table_name_73 WHERE 2004 = "2r" AND 2010 = "a"
What was in 2007 that is from 2004 0f 2r and 2010 of A?
CREATE TABLE table_name_73 (Id VARCHAR)
SELECT type FROM table_name_91 WHERE colour = "dark blue"
Which type has a color of Dark Blue?
CREATE TABLE table_name_91 (type VARCHAR, colour VARCHAR)
SELECT COUNT(no_of_premierships) FROM table_name_72 WHERE nickname = "kangaroos"
How many Premierships have Nicknamed of kangaroos?
CREATE TABLE table_name_72 (no_of_premierships VARCHAR, nickname VARCHAR)
SELECT wins FROM table_1697190_1 WHERE best_finish = "2nd"
Name the wins for best finish being 2nd
CREATE TABLE table_1697190_1 (wins VARCHAR, best_finish VARCHAR)
SELECT MIN(total) FROM table_name_99 WHERE silver > 7 AND gold > 73
What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73?
CREATE TABLE table_name_99 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT points FROM table_name_39 WHERE place < 2
Which points has place smaller than 2?
CREATE TABLE table_name_39 (points VARCHAR, place INTEGER)
SELECT COUNT(candidate) FROM table_26263322_1 WHERE background = "Self-employed - media agency"
How many times was the background self-employed - media agency?
CREATE TABLE table_26263322_1 (candidate VARCHAR, background VARCHAR)
SELECT incumbent FROM table_name_75 WHERE district = "california 8"
Which Incumbent has a District of California 8?
CREATE TABLE table_name_75 (incumbent VARCHAR, district VARCHAR)
SELECT thickness FROM table_name_56 WHERE diameter = "21.9mm"
Which Thickness has a Diameter of 21.9mm?
CREATE TABLE table_name_56 (thickness VARCHAR, diameter VARCHAR)
SELECT SUM(year) FROM table_name_65 WHERE expenditure < 41.3 AND _percentage_gdp = "x" AND income > 34.4
Which Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Income larger than 34.4?
CREATE TABLE table_name_65 (year INTEGER, income VARCHAR, expenditure VARCHAR, _percentage_gdp VARCHAR)
SELECT title FROM table_27450976_1 WHERE written_by = "Scott M. Gimple"
What is the name of the episode that was written by Scott M. Gimple?
CREATE TABLE table_27450976_1 (title VARCHAR, written_by VARCHAR)
SELECT segment_b FROM table_15187735_6 WHERE segment_d = "s Hammock"
What is the Segment B when the Segment D is s Hammock?
CREATE TABLE table_15187735_6 (segment_b VARCHAR, segment_d VARCHAR)
SELECT MAX(year) FROM table_name_56 WHERE team = "repsol honda" AND wins < 4 AND points < 162
What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points?
CREATE TABLE table_name_56 (year INTEGER, points VARCHAR, team VARCHAR, wins VARCHAR)
SELECT COUNT(player) FROM table_11677691_11 WHERE hometown = "Delray Beach, Florida"
How many players are from Delray Beach, Florida?
CREATE TABLE table_11677691_11 (player VARCHAR, hometown VARCHAR)
SELECT region__year_ FROM table_name_12 WHERE no_7 = "abigail" AND no_1 = "sophia" AND no_5 = "aaliyah"
Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5?
CREATE TABLE table_name_12 (region__year_ VARCHAR, no_5 VARCHAR, no_7 VARCHAR, no_1 VARCHAR)
SELECT MIN(diameter__km_) FROM table_name_97 WHERE name = "eirene tholus"
What is the smallest diameter for Eirene Tholus?
CREATE TABLE table_name_97 (diameter__km_ INTEGER, name VARCHAR)
SELECT home_team AS score FROM table_name_89 WHERE venue = "brunswick street oval"
What did the home team at Brunswick Street Oval score?
CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(ansi_code) FROM table_18600760_1 WHERE pop__2010_ = 609
Name the least ansi code for 609 population 2010
CREATE TABLE table_18600760_1 (ansi_code INTEGER, pop__2010_ VARCHAR)
SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE160"
What is every prefix class for the equivalent of NTE160?
CREATE TABLE table_30011_2 (prefix_class VARCHAR, equivalent VARCHAR)
SELECT country FROM table_name_72 WHERE place = "torino"
What is Country, when Place is "Torino"?
CREATE TABLE table_name_72 (country VARCHAR, place VARCHAR)
SELECT points FROM table_name_24 WHERE draw > 3 AND place = 3
How many points has a draw greater than 3 and 3rd place?
CREATE TABLE table_name_24 (points VARCHAR, draw VARCHAR, place VARCHAR)
SELECT date FROM table_name_42 WHERE away_team = "south melbourne"
Which Date has an Away team of south melbourne?
CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)
SELECT record FROM table_name_97 WHERE game = 33
What is the record of game 33?
CREATE TABLE table_name_97 (record VARCHAR, game VARCHAR)
SELECT tournament FROM table_name_82 WHERE 2002 = "grand slam tournaments"
Which Tournament has a 2002 of grand slam tournaments?
CREATE TABLE table_name_82 (tournament VARCHAR)
SELECT MIN(episodes) FROM table_name_35 WHERE actor = "anabel barnston"
What is the lowest number of episodes for anabel barnston?
CREATE TABLE table_name_35 (episodes INTEGER, actor VARCHAR)
SELECT d_41_√ FROM table_name_35 WHERE d_43_√ = "r 18"
Name the D 41 √ when it has D 43 √ of r 18
CREATE TABLE table_name_35 (d_41_√ VARCHAR, d_43_√ VARCHAR)
SELECT COUNT(points) FROM table_name_60 WHERE tries < 1 AND goals > 0
What is the total number of Points with less than 1 tries, and more than 0 goals?
CREATE TABLE table_name_60 (points VARCHAR, tries VARCHAR, goals VARCHAR)
SELECT no_result FROM table_name_2 WHERE wins < 2 AND losses > 1
WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1?
CREATE TABLE table_name_2 (no_result VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT school FROM table_2439728_1 WHERE location = "Milton, MA"
name the school located at Milton, ma.
CREATE TABLE table_2439728_1 (school VARCHAR, location VARCHAR)
SELECT 2008 FROM table_name_87 WHERE 2011 = "1r" AND tournament = "australian open"
What's the 2008 of the Australian Open when the 2011 was 1R?
CREATE TABLE table_name_87 (tournament VARCHAR)
SELECT date FROM table_name_25 WHERE away_team = "honduras"
What is the date that is Away team is Honduras?
CREATE TABLE table_name_25 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918
What is the total number in 2006, which has an official foundation of municipality of 1918?
CREATE TABLE table_name_95 (date_of_official_foundation_of_municipality VARCHAR)
SELECT score FROM table_23285805_6 WHERE record = "15-25"
What was the score with the team record was 15-25?
CREATE TABLE table_23285805_6 (score VARCHAR, record VARCHAR)
SELECT away_team FROM table_name_18 WHERE home_team = "sheffield united"
Who was the away team against the home team Sheffield United?
CREATE TABLE table_name_18 (away_team VARCHAR, home_team VARCHAR)
SELECT date_s__administered FROM table_name_49 WHERE joe_sestak__d_ = "46%" AND margin_of_error = "± 3.0%"
WHAT DATE DID JOE SESTAK HAVE 46% WITH ± 3.0% MARGIN OF ERROR?
CREATE TABLE table_name_49 (date_s__administered VARCHAR, joe_sestak__d_ VARCHAR, margin_of_error VARCHAR)
SELECT date FROM table_27734769_8 WHERE high_assists = "Andre Miller (7)"
what is the date the high assists was andre miller (7)?
CREATE TABLE table_27734769_8 (date VARCHAR, high_assists VARCHAR)
SELECT 2013 FROM table_name_29 WHERE 2009 = "3r"
What in 2013 has a 2009 of 3r?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT COUNT(current_status) FROM table_1353096_2 WHERE station = "WJW-TV ++"
How many entries are listed under "current status" for the WJW-TV ++ Station?
CREATE TABLE table_1353096_2 (current_status VARCHAR, station VARCHAR)
SELECT COUNT(original_air_date) FROM table_16617011_1 WHERE us_viewers__millions_ = "14.20"
Name the number air date for 14.20 us viewers
CREATE TABLE table_16617011_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT college_junior_club_team FROM table_2850912_3 WHERE player = "Robert Dirk"
What is Robert Dirk's team?
CREATE TABLE table_2850912_3 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT air_date FROM table_name_19 WHERE rating = "n/a" AND weekly_winner = "wedding dj chris dixon"
What is Air Date, when Rating is "N/A", and when Weekly Winner is "Wedding DJ Chris Dixon"?
CREATE TABLE table_name_19 (air_date VARCHAR, rating VARCHAR, weekly_winner VARCHAR)
SELECT winner FROM table_name_76 WHERE date = "may 2011"
Who won on May 2011?
CREATE TABLE table_name_76 (winner VARCHAR, date VARCHAR)
SELECT team FROM table_name_21 WHERE draws = "15"
Which team had 15 draws?
CREATE TABLE table_name_21 (team VARCHAR, draws VARCHAR)
SELECT score FROM table_name_31 WHERE round = "playoff"
What was the score of the match that took place in the playoff round?
CREATE TABLE table_name_31 (score VARCHAR, round VARCHAR)
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "22/13"
What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?
CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)
SELECT venue FROM table_name_32 WHERE date = "september 24, 1980"
What is the venue when the date is September 24, 1980?
CREATE TABLE table_name_32 (venue VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_69 WHERE date = "january 10"
Which team was the visitor on January 10?
CREATE TABLE table_name_69 (visitor VARCHAR, date VARCHAR)
SELECT per_capita_income FROM table_name_49 WHERE median_household_income = "$55,800"
What is the Per capita income associated with a Median household income of $55,800?
CREATE TABLE table_name_49 (per_capita_income VARCHAR, median_household_income VARCHAR)
SELECT COUNT(score) FROM table_27734286_1 WHERE high_points = "Al Jefferson (24)"
What's the score in al jefferson (24) high points?
CREATE TABLE table_27734286_1 (score VARCHAR, high_points VARCHAR)
SELECT home_team AS score FROM table_name_71 WHERE away_team = "melbourne"
Which home team score has an Away team of melbourne?
CREATE TABLE table_name_71 (home_team VARCHAR, away_team VARCHAR)
SELECT north FROM table_name_45 WHERE south = "sb rosenheim"
What is the north with sb rosenheim as the south?
CREATE TABLE table_name_45 (north VARCHAR, south VARCHAR)
SELECT event FROM table_name_55 WHERE location = "new orleans, louisiana, usa"
What event was in New Orleans, Louisiana, USA?
CREATE TABLE table_name_55 (event VARCHAR, location VARCHAR)
SELECT date FROM table_name_9 WHERE score_in_the_final = "6–3, 6–3, 2–6, 6–4"
What is the Date of the match with a Score in the final of 6–3, 6–3, 2–6, 6–4?
CREATE TABLE table_name_9 (date VARCHAR, score_in_the_final VARCHAR)
SELECT AVG(number_of_clubs) FROM table_name_66 WHERE fourth_placed = "shenzhen jianlibao" AND season < 2003
What is the number of clubs before 2003 with a 4th place winner of Shenzhen Jianlibao?
CREATE TABLE table_name_66 (number_of_clubs INTEGER, fourth_placed VARCHAR, season VARCHAR)
SELECT name, course_id FROM instructor AS T1 JOIN teaches AS T2 ON T1.ID = T2.ID
Find the names of all instructors who have taught some course and the course_id.
CREATE TABLE instructor (ID VARCHAR); CREATE TABLE teaches (ID VARCHAR)
SELECT rightfielder FROM table_12142298_2 WHERE starting_pitcher = "Vicente Padilla"
Who was the RF when the SP was vicente padilla?
CREATE TABLE table_12142298_2 (rightfielder VARCHAR, starting_pitcher VARCHAR)
SELECT COUNT(nationality) FROM table_2679061_11 WHERE nhl_team = "Philadelphia Flyers"
How many players were drafted by the Philadelphia Flyers?
CREATE TABLE table_2679061_11 (nationality VARCHAR, nhl_team VARCHAR)
SELECT tuner FROM table_name_32 WHERE type = "hybrid video recorder" AND digital = "dvb-t (zl10353)" AND model = "hvr-900"
I want the tuner for hybrid video recorder and Digital of dvb-t (zl10353), and a Model of hvr-900
CREATE TABLE table_name_32 (tuner VARCHAR, model VARCHAR, type VARCHAR, digital VARCHAR)
SELECT party FROM table_1341577_14 WHERE incumbent = "Cardiss Collins"
To what party does Cardiss Collins belong?
CREATE TABLE table_1341577_14 (party VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_6 WHERE label = "alfa records" AND catalog = "alr-28045"
Name the date for alfa records and catalog of alr-28045
CREATE TABLE table_name_6 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT SUM(year) FROM table_name_48 WHERE entrant = "bryant heating"
What year did Bryant Heating enter?
CREATE TABLE table_name_48 (year INTEGER, entrant VARCHAR)
SELECT years_in_the_acc FROM table_name_24 WHERE founded < 1885 AND location = "college park, maryland"
What are the years in the ACC of an institution that was founded before 1885 and is located in College Park, Maryland?
CREATE TABLE table_name_24 (years_in_the_acc VARCHAR, founded VARCHAR, location VARCHAR)
SELECT MAX(attendance) FROM table_name_99 WHERE opponent = "indians" AND record = "13-4"
What was the highest attendance when the opponent was the Indians and the record was 13-4?
CREATE TABLE table_name_99 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT royal_house FROM table_name_84 WHERE name = "polyxenos epiphanes soter"
Which royal house corresponds to Polyxenos Epiphanes Soter?
CREATE TABLE table_name_84 (royal_house VARCHAR, name VARCHAR)
SELECT voges_proskauer FROM table_16083989_1 WHERE citrate = "Positive"
What are the results for testing the species with voges-proskauer when citrate yields a positive result?
CREATE TABLE table_16083989_1 (voges_proskauer VARCHAR, citrate VARCHAR)
SELECT date FROM table_name_58 WHERE points = 13 AND location = "rbc center"
What is Date, when Points is 13, and when Location is RBC Center?
CREATE TABLE table_name_58 (date VARCHAR, points VARCHAR, location VARCHAR)
SELECT viewers FROM table_name_64 WHERE air_date = "july 4, 2008"
What is Viewers, when Air Date is "July 4, 2008"?
CREATE TABLE table_name_64 (viewers VARCHAR, air_date VARCHAR)
SELECT attendance FROM table_name_76 WHERE date = "may 13"
What was the attendance on May 13?
CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR)
SELECT AVG(pole_positions) FROM table_name_33 WHERE percentage = "44.81%"
What's the average pole position for the driver that has a percentage of 44.81%?
CREATE TABLE table_name_33 (pole_positions INTEGER, percentage VARCHAR)
SELECT nationality FROM table_11803648_20 WHERE club_team = "Peterborough Petes (OHL)"
What is the Nationality when the club team is Peterborough Petes (OHL)?
CREATE TABLE table_11803648_20 (nationality VARCHAR, club_team VARCHAR)
SELECT class AS pos FROM table_name_53 WHERE year > 2002
For a year that is later than 2002 what is the class position?
CREATE TABLE table_name_53 (class VARCHAR, year INTEGER)
SELECT bore FROM table_name_8 WHERE designation = "12-pdr heavy"
What is the bore of the boat howitzers with a 12-pdr heavy designation?
CREATE TABLE table_name_8 (bore VARCHAR, designation VARCHAR)
SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1
What is the name and the average gpa of department whose students have the highest average gpa?
CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR)
SELECT loss FROM table_name_96 WHERE record = "77-65"
What was the loss of the game with a record of 77-65?
CREATE TABLE table_name_96 (loss VARCHAR, record VARCHAR)