answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT home_team FROM table_name_16 WHERE away_team = "newcastle united"
Who is the home team when the away team is newcastle united?
CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(population) FROM table_name_32 WHERE census_ranking = "579 of 5,008"
What is the population of the parish with a census ranking of 579 of 5,008?
CREATE TABLE table_name_32 (population INTEGER, census_ranking VARCHAR)
SELECT drobo__2nd_ FROM table_name_40 WHERE drobo_fs = "up to 32"
Which Drobo (2nd) has a Drobo FS of up to 32?
CREATE TABLE table_name_40 (drobo__2nd_ VARCHAR, drobo_fs VARCHAR)
SELECT points FROM table_name_42 WHERE club = "bridgend athletic rfc"
How many points did the Bridgend Athletic RFC have?
CREATE TABLE table_name_42 (points VARCHAR, club VARCHAR)
SELECT record FROM table_name_81 WHERE points < 62 AND february > 16 AND score = "8–7"
Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 8–7?
CREATE TABLE table_name_81 (record VARCHAR, score VARCHAR, points VARCHAR, february VARCHAR)
SELECT open_cup FROM table_name_18 WHERE year > 1993
Which open cup was after 1993?
CREATE TABLE table_name_18 (open_cup VARCHAR, year INTEGER)
SELECT COUNT(county) FROM table_20688030_1 WHERE obama_percentage = "35.44%"
What is the total of countys where Obama is popular by 35.44%?
CREATE TABLE table_20688030_1 (county VARCHAR, obama_percentage VARCHAR)
SELECT race FROM table_name_66 WHERE position = "3rd" AND speed = "126.452"
Which race has a position of 3rd and a speed of 126.452?
CREATE TABLE table_name_66 (race VARCHAR, position VARCHAR, speed VARCHAR)
SELECT MIN(penalties) FROM table_name_45 WHERE points_total = 1419 AND played > 98
What is the least number of penalties he got when his point total was over 1419 in more than 98 games?
CREATE TABLE table_name_45 (penalties INTEGER, points_total VARCHAR, played VARCHAR)
SELECT to_par FROM table_name_87 WHERE place = "t4" AND player = "wayne grady"
Which To par has a Place of t4, and wayne grady is in?
CREATE TABLE table_name_87 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT MAX(total) FROM table_name_89 WHERE silver > 0 AND bronze < 0
What is the total when silver is more than 0, and bronze less than 0?
CREATE TABLE table_name_89 (total INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT record FROM table_23486853_6 WHERE opponent = "Pittsburgh Penguins"
What is the record when the opposing team was the Pittsburgh Penguins?
CREATE TABLE table_23486853_6 (record VARCHAR, opponent VARCHAR)
SELECT us_open_cup FROM table_1046170_5 WHERE playoffs = "division Semifinals"
which round is u.s. open cup division semifinals
CREATE TABLE table_1046170_5 (us_open_cup VARCHAR, playoffs VARCHAR)
SELECT AVG(total) FROM table_name_39 WHERE player = "ian baker-finch"
count the the average Total of ian baker-finch?
CREATE TABLE table_name_39 (total INTEGER, player VARCHAR)
SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix"
Name the winning driver for monaco grand prix
CREATE TABLE table_name_41 (winning_driver VARCHAR, name VARCHAR)
SELECT report FROM table_name_54 WHERE pole_position = "mario andretti" AND fastest_lap = "jean-pierre jarier"
What was the report when Mario Andretti held pole position and Jean-Pierre Jarier had the fastest lap?
CREATE TABLE table_name_54 (report VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_name_56 WHERE record = "4-4"
What was the date of the game where the record was 4-4?
CREATE TABLE table_name_56 (date VARCHAR, record VARCHAR)
SELECT SUM(share_count) FROM TRANSACTIONS
What is the total share of transactions?
CREATE TABLE TRANSACTIONS (share_count INTEGER)
SELECT team FROM table_name_59 WHERE year > 1935 AND player = "daniel bradshaw"
Which team did daniel bradshaw play for after 1935?
CREATE TABLE table_name_59 (team VARCHAR, year VARCHAR, player VARCHAR)
SELECT clublocation FROM club WHERE clubname = "Pen and Paper Gaming"
Find the location of the club "Pen and Paper Gaming".
CREATE TABLE club (clublocation VARCHAR, clubname VARCHAR)
SELECT COUNT(general_classification) FROM table_12261806_2 WHERE stage = "15"
Name the general classification of stage 15
CREATE TABLE table_12261806_2 (general_classification VARCHAR, stage VARCHAR)
SELECT used FROM table_name_4 WHERE power__hp_ < 93 AND engine = "om324"
When was power (hp) less than 93 for the OM324 engine used?
CREATE TABLE table_name_4 (used VARCHAR, power__hp_ VARCHAR, engine VARCHAR)
SELECT director_s_ FROM table_11715748_2 WHERE season__number = 13
Who was the dirctor for season 13?
CREATE TABLE table_11715748_2 (director_s_ VARCHAR, season__number VARCHAR)
SELECT surface FROM table_name_65 WHERE round = "gii play-offs" AND edition = "2009 fed cup europe/africa group ii"
what is the surface when the round is gii play-offs and the edition is 2009 fed cup europe/africa group ii?
CREATE TABLE table_name_65 (surface VARCHAR, round VARCHAR, edition VARCHAR)
SELECT score FROM table_name_75 WHERE opponent = "royals" AND record = "24–52"
What was the score of the game against the Royals when the record was 24–52?
CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT date FROM table_name_98 WHERE set_3 = "15–6"
What is the Date with a Set 3 with 15–6?
CREATE TABLE table_name_98 (date VARCHAR, set_3 VARCHAR)
SELECT COUNT(attendance) FROM table_name_26 WHERE opponent = "hamilton academical"
When Hamilton Academical is the Opponent, what is the total Attendance?
CREATE TABLE table_name_26 (attendance VARCHAR, opponent VARCHAR)
SELECT team FROM table_name_75 WHERE position_in_table = "15th (c)"
Which Team has a Position in table of 15th (c)?
CREATE TABLE table_name_75 (team VARCHAR, position_in_table VARCHAR)
SELECT matches FROM table_name_75 WHERE draws = "did not qualify" AND year = "1995"
What is Matches, when Draws is "Did Not Qualify", and when Year is "1995"?
CREATE TABLE table_name_75 (matches VARCHAR, draws VARCHAR, year VARCHAR)
SELECT COUNT(high_points) FROM table_22654073_7 WHERE high_rebounds = "Mo Williams , LeBron James , J.J. Hickson (6)"
Name the high points for mo williams , lebron james , j.j. hickson (6)
CREATE TABLE table_22654073_7 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT venue FROM table_name_10 WHERE year < 1991 AND time > 10.29 AND competition = "mediterranean games" AND event = "4x100 m relay"
What Venue has a Year smaller than 1991, Time larger than 10.29, Competition of mediterranean games, and Event of 4x100 m relay?
CREATE TABLE table_name_10 (venue VARCHAR, event VARCHAR, competition VARCHAR, year VARCHAR, time VARCHAR)
SELECT 2003 FROM table_name_34 WHERE 2001 = "514,000 tonnes"
What is the 2003 statistic for the product that had 514,000 tonnes in 2001?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT party FROM driver WHERE home_city = 'Hartford' AND age > 40
Show the party with drivers from Hartford and drivers older than 40.
CREATE TABLE driver (party VARCHAR, home_city VARCHAR, age VARCHAR)
SELECT country FROM table_name_56 WHERE notes = "sc/d" AND athlete = "latt shwe zin"
Which country is the athlete latt shwe zin with notes of sc/d from?
CREATE TABLE table_name_56 (country VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT personal_name FROM Course_Authors_and_Tutors INTERSECT SELECT personal_name FROM Students
Find the common personal name of course authors and students.
CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR)
SELECT date FROM table_name_59 WHERE venue = "punt road oval"
What day did the VFL play Punt Road Oval?
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
SELECT driver FROM table_name_22 WHERE engine = "ford cosworth dfv 3.0 v8" AND rounds = "3-12" AND tyre = "g"
Who used the Ford Cosworth DFV 3.0 v8 engine in rounds 3-12, with a G tire?
CREATE TABLE table_name_22 (driver VARCHAR, tyre VARCHAR, engine VARCHAR, rounds VARCHAR)
SELECT score FROM table_name_80 WHERE winner = "johnny miller (7)"
What was the score of Johnny Miller (7)?
CREATE TABLE table_name_80 (score VARCHAR, winner VARCHAR)
SELECT venue FROM table_name_66 WHERE competition = "1996 afc asian cup group stage"
what is the venue when the competition is 1996 afc asian cup group stage?
CREATE TABLE table_name_66 (venue VARCHAR, competition VARCHAR)
SELECT method FROM table_name_99 WHERE event = "ufc fight night: teixeira vs. bader"
What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader?
CREATE TABLE table_name_99 (method VARCHAR, event VARCHAR)
SELECT circumstances FROM table_name_25 WHERE date = "2009-03-14"
What happened on 2009-03-14?
CREATE TABLE table_name_25 (circumstances VARCHAR, date VARCHAR)
SELECT runner_up FROM table_16331144_1 WHERE third_place = "Mohamed Ali"
Who was the runner-up when Mohamed Ali got third?
CREATE TABLE table_16331144_1 (runner_up VARCHAR, third_place VARCHAR)
SELECT date FROM table_name_62 WHERE attendance = "63,546"
On what Date was the Attendance 63,546?
CREATE TABLE table_name_62 (date VARCHAR, attendance VARCHAR)
SELECT order__number FROM table_26250155_1 WHERE theme = "Billboard Hot 100 Hits" AND original_artist = "Sixpence None the Richer"
What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer?
CREATE TABLE table_26250155_1 (order__number VARCHAR, theme VARCHAR, original_artist VARCHAR)
SELECT city_of_license FROM table_name_80 WHERE frequency = "103.5 mhz"
Name the city of license with frequency of 103.5 mhz
CREATE TABLE table_name_80 (city_of_license VARCHAR, frequency VARCHAR)
SELECT retail_name FROM table_name_15 WHERE digital_analog_signal = "analog" AND chipset_based_on = "radeon 9600"
What is the Retail name with a Digital/analog signal with analog, and a Chipset based on with radeon 9600?
CREATE TABLE table_name_15 (retail_name VARCHAR, digital_analog_signal VARCHAR, chipset_based_on VARCHAR)
SELECT Official_native_language FROM country WHERE Official_native_language LIKE "%English%"
Show all official native languages that contain the word "English".
CREATE TABLE country (Official_native_language VARCHAR)
SELECT score FROM table_name_88 WHERE player = "fredrik jacobson"
What was Fredrik Jacobson's score?
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = "—— No Time"
If Wed Aug 25 is —— no time, what is Sat aug 21?
CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, wed_25_aug VARCHAR)
SELECT SUM(sno) FROM table_name_53 WHERE completion_schedule = "2013"
For the 2013 completion schedule, what is the total S.no.?
CREATE TABLE table_name_53 (sno INTEGER, completion_schedule VARCHAR)
SELECT tdp FROM table_16729930_18 WHERE release_price___usd__ = "$72"
For a release price of $72, what is the TDP of the microprocessor?
CREATE TABLE table_16729930_18 (tdp VARCHAR, release_price___usd__ VARCHAR)
SELECT old_galician__13th_15th_c_ FROM table_26614365_1 WHERE portuguese = "cantaste"
What is the Old Galician for cantaste in Portuguese?
CREATE TABLE table_26614365_1 (old_galician__13th_15th_c_ VARCHAR, portuguese VARCHAR)
SELECT COUNT(type) FROM table_256286_5 WHERE description = "Calling Convention to revise State Constitution"
How many type classifications are given to the measure with the description, calling convention to revise state constitution?
CREATE TABLE table_256286_5 (type VARCHAR, description VARCHAR)
SELECT name FROM station WHERE city = "Palo Alto" EXCEPT SELECT end_station_name FROM trip GROUP BY end_station_name HAVING COUNT(*) > 100
What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?
CREATE TABLE trip (name VARCHAR, end_station_name VARCHAR, city VARCHAR); CREATE TABLE station (name VARCHAR, end_station_name VARCHAR, city VARCHAR)
SELECT position FROM table_name_63 WHERE college = "florida"
what is the position of the player from florida?
CREATE TABLE table_name_63 (position VARCHAR, college VARCHAR)
SELECT year__ceremony_ FROM table_26385848_1 WHERE film_title = "Eldra"
What is the year (ceremony) for the film title Eldra?
CREATE TABLE table_26385848_1 (year__ceremony_ VARCHAR, film_title VARCHAR)
SELECT engine FROM table_name_88 WHERE team = "dhg tom's racing"
Tell me the engine for dhg tom's racing
CREATE TABLE table_name_88 (engine VARCHAR, team VARCHAR)
SELECT 1 AS st_leg FROM table_name_59 WHERE team_1 = "panathinaikos"
What was the first leg score for the match with a team 1 of Panathinaikos?
CREATE TABLE table_name_59 (team_1 VARCHAR)
SELECT host_team FROM table_name_57 WHERE stadium = "giants stadium" AND visiting_team = "cincinnati bengals"
Tell me the host team for giants stadium and visiting of cincinnati bengals
CREATE TABLE table_name_57 (host_team VARCHAR, stadium VARCHAR, visiting_team VARCHAR)
SELECT nationality FROM table_name_79 WHERE nba_years_[a_] = "1" AND previous_team = "seattle supersonics"
What is Nationality, when NBA years [a ] is "1", and when Previous Team is "Seattle Supersonics"?
CREATE TABLE table_name_79 (nationality VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT AVG(goals_for) FROM table_name_19 WHERE drawn > 7 AND goals_against < 86 AND lost > 11 AND played > 42
What are the average goals for with a drawn higher than 7 and goals against less than 86, as well as more than 11 losses and more than 42 games played?
CREATE TABLE table_name_19 (goals_for INTEGER, played VARCHAR, lost VARCHAR, drawn VARCHAR, goals_against VARCHAR)
SELECT score FROM table_name_14 WHERE winner = "ken still (3)"
What was the score of Ken Still (3) when he won first place?
CREATE TABLE table_name_14 (score VARCHAR, winner VARCHAR)
SELECT tv_time FROM table_name_93 WHERE result = "w 24–17"
Which TV Time has a Result of w 24–17?
CREATE TABLE table_name_93 (tv_time VARCHAR, result VARCHAR)
SELECT player FROM table_name_33 WHERE college = "illinois"
What is the player from Illinois?
CREATE TABLE table_name_33 (player VARCHAR, college VARCHAR)
SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = "new bandon"
What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?
CREATE TABLE table_name_97 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
SELECT date FROM table_name_27 WHERE tournament = "los angeles open"
What is the date of the Los Angeles open?
CREATE TABLE table_name_27 (date VARCHAR, tournament VARCHAR)
SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic"
What is the category of the touchdown atlantic?
CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR)
SELECT win_lose FROM table_24074130_5 WHERE against = "Sweden"
What is every entry in the win/lose against Sweden?
CREATE TABLE table_24074130_5 (win_lose VARCHAR, against VARCHAR)
SELECT MAX(population_density) FROM table_name_93 WHERE county = "prince" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135
In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135?
CREATE TABLE table_name_93 (population_density INTEGER, population__2011_ VARCHAR, population__2006_ VARCHAR, county VARCHAR, area__km²_ VARCHAR)
SELECT MAX(season) FROM table_13665809_2 WHERE byu_usu_score = "29–7"
what is the maximum season with byu-usu score being 29–7
CREATE TABLE table_13665809_2 (season INTEGER, byu_usu_score VARCHAR)
SELECT SUM(points) FROM table_name_49 WHERE entrant = "forti corse"
what is the points total for forti corse?
CREATE TABLE table_name_49 (points INTEGER, entrant VARCHAR)
SELECT date FROM table_name_35 WHERE opponent_in_final = "anastasiya yakimova"
What is the Date of the Tournament against Anastasiya Yakimova?
CREATE TABLE table_name_35 (date VARCHAR, opponent_in_final VARCHAR)
SELECT driver FROM table_name_84 WHERE grid = 13
who is the driver with the grid of 13?
CREATE TABLE table_name_84 (driver VARCHAR, grid VARCHAR)
SELECT status FROM table_name_81 WHERE against > 13 AND opposing_teams = "wales"
What is the status when Wales is the opposing team and there are more than 13 against?
CREATE TABLE table_name_81 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT MIN(total) FROM table_name_65 WHERE silver = 16 AND bronze < 32
How many Total medals did the country with 16 Silver and less than 32 Bronze receive?
CREATE TABLE table_name_65 (total INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT pos FROM table_name_45 WHERE height = "m (ft 10in)" AND date_of_birth = "1983-05-29"
What is Pos., when Height is "m (ft 10in)", and when Date of Birth is "1983-05-29"?
CREATE TABLE table_name_45 (pos VARCHAR, height VARCHAR, date_of_birth VARCHAR)
SELECT AVG(goals_scored) FROM table_name_69 WHERE place > 1 AND team = "once municipal" AND points < 27
For Once Municipal, what were the goals scored that had less than 27 points and greater than place 1?
CREATE TABLE table_name_69 (goals_scored INTEGER, points VARCHAR, place VARCHAR, team VARCHAR)
SELECT name FROM table_name_69 WHERE round > 4 AND position = "ot"
What is the name of the ot position player with a round greater than 4?
CREATE TABLE table_name_69 (name VARCHAR, round VARCHAR, position VARCHAR)
SELECT first_year FROM table_name_41 WHERE title = "popgun"
What is the first year for Popgun?
CREATE TABLE table_name_41 (first_year VARCHAR, title VARCHAR)
SELECT teaching_language FROM table_12591022_2 WHERE duration__years_ = "3.5"
What is the teaching language with the duration (years) 3.5?
CREATE TABLE table_12591022_2 (teaching_language VARCHAR, duration__years_ VARCHAR)
SELECT venue FROM table_name_82 WHERE margin_of_victory = "7 strokes"
At what venue is the margin of victory 7 strokes?
CREATE TABLE table_name_82 (venue VARCHAR, margin_of_victory VARCHAR)
SELECT stage AS winner FROM table_name_44 WHERE stage < 16 AND year < 1986 AND distance__km_ = "19.6"
who was the Stage winner when the stage was smaller than 16, earlier than 1986, and a distance (km) was 19.6?
CREATE TABLE table_name_44 (stage VARCHAR, distance__km_ VARCHAR, year VARCHAR)
SELECT SUM(goals_against) FROM table_name_10 WHERE points = 72 AND lost > 37
What are the total Goals against with 72 points and more than 37 losses?
CREATE TABLE table_name_10 (goals_against INTEGER, points VARCHAR, lost VARCHAR)
SELECT pick FROM table_name_16 WHERE overall < 297 AND college = "alabama"
what is the pick when the overall is less than 297 and the college is alabama?
CREATE TABLE table_name_16 (pick VARCHAR, overall VARCHAR, college VARCHAR)
SELECT MAX(public) FROM table_26375386_23 WHERE result = "Eliminated"
How many public is there for the couple that got eliminated?
CREATE TABLE table_26375386_23 (public INTEGER, result VARCHAR)
SELECT race_winner FROM table_name_97 WHERE fastest_lap = "daijiro hiura" AND date = "march 29"
Who won with the fastest lap of daijiro hiura on March 29?
CREATE TABLE table_name_97 (race_winner VARCHAR, fastest_lap VARCHAR, date VARCHAR)
SELECT score FROM table_name_66 WHERE home_team = "bolton wanderers"
What is the final score of the game home team Bolton Wanderers played?
CREATE TABLE table_name_66 (score VARCHAR, home_team VARCHAR)
SELECT location FROM table_name_48 WHERE round < 2 AND opponent = "hikaru sato"
What was the location of the match that ended before round 2, against Hikaru Sato?
CREATE TABLE table_name_48 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_60 WHERE tie_no = "27"
what is the score that has tie number 27
CREATE TABLE table_name_60 (score VARCHAR, tie_no VARCHAR)
SELECT event FROM table_name_93 WHERE winner = "joão barbosa"
João Barbosa was the winner of which event?
CREATE TABLE table_name_93 (event VARCHAR, winner VARCHAR)
SELECT MIN(post) FROM table_name_31 WHERE jockey = "calvin borel"
What is the lowest post number for calvin borel?
CREATE TABLE table_name_31 (post INTEGER, jockey VARCHAR)
SELECT MAX(juries) FROM table_27994983_8 WHERE artist = "Brolle"
How many juries are there for Brolle?
CREATE TABLE table_27994983_8 (juries INTEGER, artist VARCHAR)
SELECT COUNT(lost) FROM table_name_91 WHERE played < 34
What is the total number of Lost, when Played is less than 34?
CREATE TABLE table_name_91 (lost VARCHAR, played INTEGER)
SELECT nickname FROM table_28436909_4 WHERE letters = "ΚΑΘ"
When καθ are the letters what is the nickname?
CREATE TABLE table_28436909_4 (nickname VARCHAR, letters VARCHAR)
SELECT team FROM table_name_57 WHERE position = "guard / forward" AND player = "steinar kaldal"
What team has Steinar Kaldal, a guard / forward?
CREATE TABLE table_name_57 (team VARCHAR, position VARCHAR, player VARCHAR)
SELECT original_artist FROM table_name_64 WHERE length = "2:38"
What is the Original Artis of the Track with a Length of 2:38?
CREATE TABLE table_name_64 (original_artist VARCHAR, length VARCHAR)
SELECT "player" FROM table_19611329_1 WHERE year_inducted = 1945 AND inducted_as = "player"
Name the player for 1945 for player
CREATE TABLE table_19611329_1 (year_inducted VARCHAR, inducted_as VARCHAR)
SELECT result FROM table_name_28 WHERE date = "september 13, 1998"
Can you tell me the Result that has the Date of september 13, 1998?
CREATE TABLE table_name_28 (result VARCHAR, date VARCHAR)
SELECT record FROM table_name_79 WHERE date = "1987"
What was his record in 1987?
CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR)
SELECT team FROM table_24491017_1 WHERE position = "11th"
What team was he on when he finished in 11th position?
CREATE TABLE table_24491017_1 (team VARCHAR, position VARCHAR)