question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Date of the Courtyard Castle?
CREATE TABLE table_name_16 (date VARCHAR, type VARCHAR)
SELECT date FROM table_name_16 WHERE type = "courtyard castle"
What is the title(s) of episodes written by aron eli coleite?
CREATE TABLE table_28215780_4 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_28215780_4 WHERE written_by = "Aron Eli Coleite"
What region has a bronze label and a catalogue of 202 876-270?
CREATE TABLE table_name_82 (region VARCHAR, label VARCHAR, catalogue VARCHAR)
SELECT region FROM table_name_82 WHERE label = "bronze" AND catalogue = "202 876-270"
Tell me the result of july 16, 2000
CREATE TABLE table_name_68 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_68 WHERE date = "july 16, 2000"
When was the private/non-sectarian school founded?
CREATE TABLE table_1971074_1 (founded VARCHAR, type VARCHAR)
SELECT founded FROM table_1971074_1 WHERE type = "Private/Non-sectarian"
What's the total amount of USSR that has more than 0 gold, less than 85 silver and more than 6 bronze?
CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_62 WHERE gold > 0 AND bronze > 6 AND nation = "ussr" AND silver < 85
What chassis was paired with climax straight-4?
CREATE TABLE table_name_32 (chassis VARCHAR, engine VARCHAR)
SELECT chassis FROM table_name_32 WHERE engine = "climax straight-4"
Who's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany?
CREATE TABLE table_name_47 (centerfold_model VARCHAR, pictorials VARCHAR)
SELECT centerfold_model FROM table_name_47 WHERE pictorials = "adrianne curry, girls of tuscany"
In how many weeks was the game played on November 3 played?
CREATE TABLE table_17869717_1 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_17869717_1 WHERE date = "November 3"
What's the bulgarian word for January?
CREATE TABLE table_name_95 (bulgarian_name VARCHAR, english_name VARCHAR)
SELECT bulgarian_name FROM table_name_95 WHERE english_name = "january"
what is the date when the competition is 1996 tiger cup and the result is drew?
CREATE TABLE table_name_60 (date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT date FROM table_name_60 WHERE competition = "1996 tiger cup" AND result = "drew"
What is the Name of draft Pick #10?
CREATE TABLE table_name_19 (name VARCHAR, pick__number VARCHAR)
SELECT name FROM table_name_19 WHERE pick__number = 10
Name the original title of the Suzana Amaral film
CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR)
SELECT original_title FROM table_15277629_1 WHERE director = "Suzana Amaral"
What is the chassis of the Honda Engine from 2008?
CREATE TABLE table_name_68 (chassis VARCHAR, engine VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_68 WHERE engine = "honda" AND year = 2008
Name the total number of reason for change for not filled this congress
CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress"
WHAT IS THE SUM OF PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE?
CREATE TABLE table_name_62 (pick INTEGER, overall VARCHAR, college VARCHAR)
SELECT SUM(pick) FROM table_name_62 WHERE overall > 250 AND college = "florida"
What was the rank of the rider whose ascent time was 43:24 before the year 2002?
CREATE TABLE table_name_87 (rank VARCHAR, year VARCHAR, ascent_time VARCHAR)
SELECT COUNT(rank) FROM table_name_87 WHERE year < 2002 AND ascent_time = "43:24"
Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience?
CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT nationality FROM table_name_30 WHERE previous_team = "new york knicks" AND years_of_nba_experience_[a_] > 3
What is the Works Number that has a Number of 153 in 1916?
CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, number VARCHAR)
SELECT works_number FROM table_name_39 WHERE date = "1916" AND number = "153"
What ranking is the Battersea Power Station?
CREATE TABLE table_name_86 (rank VARCHAR, name VARCHAR)
SELECT rank FROM table_name_86 WHERE name = "battersea power station"
Who was the architect that built the Electric Railway Chambers before 1915?
CREATE TABLE table_name_43 (architect VARCHAR, built VARCHAR, building VARCHAR)
SELECT architect FROM table_name_43 WHERE built < 1915 AND building = "electric railway chambers"
Name the founded for school closed in 2005
CREATE TABLE table_262505_1 (founded VARCHAR, current_conference VARCHAR)
SELECT founded FROM table_262505_1 WHERE current_conference = "school closed in 2005"
What is the lowest geohash length when the lat bits are less than 7, and the km error of ยฑ2500?
CREATE TABLE table_name_94 (geohash_length INTEGER, lat_bits VARCHAR, km_error VARCHAR)
SELECT MIN(geohash_length) FROM table_name_94 WHERE lat_bits < 7 AND km_error = "ยฑ2500"
What is the average Points, when Played is greater than 126?
CREATE TABLE table_name_3 (points INTEGER, played INTEGER)
SELECT AVG(points) FROM table_name_3 WHERE played > 126
What is the item for Leagues entering, when the value for Clubs is 8 โ†’ 4?
CREATE TABLE table_name_69 (leagues_entering VARCHAR, clubs VARCHAR)
SELECT leagues_entering FROM table_name_69 WHERE clubs = "8 โ†’ 4"
Which movie was awarded Film of the Year on May 8, 1964?
CREATE TABLE table_name_2 (film_of_the_year VARCHAR, date VARCHAR)
SELECT film_of_the_year FROM table_name_2 WHERE date = "may 8, 1964"
What's the to par for Hale Irwin of the United States?
CREATE TABLE table_name_13 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_13 WHERE country = "united states" AND player = "hale irwin"
Which Driver has a Date of 16th september 1951, and a Race of dns?
CREATE TABLE table_name_8 (driver VARCHAR, date VARCHAR, race VARCHAR)
SELECT driver FROM table_name_8 WHERE date = "16th september 1951" AND race = "dns"
what is the nhl team for the player john maclean?
CREATE TABLE table_2679061_1 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_2679061_1 WHERE player = "John MacLean"
What is the title, phone and hire date of Nancy Edwards?
CREATE TABLE employees (title VARCHAR, phone VARCHAR, hire_date VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT title, phone, hire_date FROM employees WHERE first_name = "Nancy" AND last_name = "Edwards"
What country did the player who scored 73-73-65=211 come from?
CREATE TABLE table_name_6 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_6 WHERE score = 73 - 73 - 65 = 211
What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10,666?
CREATE TABLE table_name_53 (total_foreign_born__1000_ INTEGER, born_in_a_non_eu_state__1000_ VARCHAR, total_population__1000_ VARCHAR)
SELECT MAX(total_foreign_born__1000_) FROM table_name_53 WHERE born_in_a_non_eu_state__1000_ = 685 AND total_population__1000_ > 10 OFFSET 666
Name the IATA with a City of budapest?
CREATE TABLE table_name_3 (iata VARCHAR, city VARCHAR)
SELECT iata FROM table_name_3 WHERE city = "budapest"
How many runs did they get against new south wales in 2002/03?
CREATE TABLE table_name_13 (runs VARCHAR, opponent VARCHAR, season VARCHAR)
SELECT runs FROM table_name_13 WHERE opponent = "new south wales" AND season = "2002/03"
Who is ranked 2?
CREATE TABLE table_25220821_4 (rider VARCHAR, rank VARCHAR)
SELECT rider FROM table_25220821_4 WHERE rank = 2
What is the height when the player is from Los Angeles?
CREATE TABLE table_24055352_1 (height VARCHAR, hometown VARCHAR)
SELECT height FROM table_24055352_1 WHERE hometown = "Los Angeles"
Which batter has a uni# of 31?
CREATE TABLE table_name_17 (bats VARCHAR, uni_number VARCHAR)
SELECT bats FROM table_name_17 WHERE uni_number = 31
List the phone numbers of all employees.
CREATE TABLE EMPLOYEE (Phone VARCHAR)
SELECT Phone FROM EMPLOYEE
What is the name of the episode with a night rank of 9?
CREATE TABLE table_19805130_3 (episode VARCHAR, rank__night_ VARCHAR)
SELECT episode FROM table_19805130_3 WHERE rank__night_ = "9"
What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5?
CREATE TABLE table_name_4 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_4 WHERE time_retired = "+16.874 secs" AND grid < 5
What is the duration for nickolas grace as the actor?
CREATE TABLE table_name_36 (duration VARCHAR, actor VARCHAR)
SELECT duration FROM table_name_36 WHERE actor = "nickolas grace"
What is the lowest score that has alastair forsyth as the player?
CREATE TABLE table_name_28 (score INTEGER, player VARCHAR)
SELECT MIN(score) FROM table_name_28 WHERE player = "alastair forsyth"
What is the average round in which a Safety with an overall rank higher than 89 was drafted?
CREATE TABLE table_name_41 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT AVG(round) FROM table_name_41 WHERE position = "safety" AND overall > 89
What team was the Away team when the Tie no was 3?
CREATE TABLE table_name_55 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_55 WHERE tie_no = "3"
Which entrant has 49 points and a Mclaren M7A chassis?
CREATE TABLE table_name_66 (entrant VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_66 WHERE points = "49" AND chassis = "mclaren m7a"
How much money does the player with a to par less than 4 and a score of 74-72-68-73=287 have?
CREATE TABLE table_name_75 (money___$__ VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_75 WHERE to_par < 4 AND score = 74 - 72 - 68 - 73 = 287
When esv ingolstadt is the oberbayern b what is the niederbayern?
CREATE TABLE table_23224961_1 (niederbayern VARCHAR, oberbayern_b VARCHAR)
SELECT niederbayern FROM table_23224961_1 WHERE oberbayern_b = "ESV Ingolstadt"
Which papers have "Stephanie Weirich" as an author?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich"
What is the roll for the school with state authority and a decile of 9?
CREATE TABLE table_name_42 (roll VARCHAR, authority VARCHAR, decile VARCHAR)
SELECT roll FROM table_name_42 WHERE authority = "state" AND decile = 9
What is the money list rank for player Doug Barron?
CREATE TABLE table_29504351_2 (money_list_rank INTEGER, player VARCHAR)
SELECT MAX(money_list_rank) FROM table_29504351_2 WHERE player = "Doug Barron"
How many laps have a race time of 3:31:24?
CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR)
SELECT laps FROM table_2226343_1 WHERE race_time = "3:31:24"
How many rounds have 6,150 as attendance?
CREATE TABLE table_21350934_2 (round VARCHAR, attendance VARCHAR)
SELECT round FROM table_21350934_2 WHERE attendance = "6,150"
On which award show was Bad Girls nominated for Most Popular Drama in 2004?
CREATE TABLE table_name_66 (award_show VARCHAR, year VARCHAR, category VARCHAR)
SELECT award_show FROM table_name_66 WHERE year = 2004 AND category = "most popular drama"
For players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?
CREATE TABLE table_name_5 (matches INTEGER, average VARCHAR, goals VARCHAR, team VARCHAR)
SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = "ca osasuna" AND average < 1.06
How many poles for the Netherlands?
CREATE TABLE table_19487922_1 (poles INTEGER, country VARCHAR)
SELECT MAX(poles) FROM table_19487922_1 WHERE country = "Netherlands"
What is the lowest position for a driver with 2 points?
CREATE TABLE table_23385853_19 (pos INTEGER, points VARCHAR)
SELECT MAX(pos) FROM table_23385853_19 WHERE points = 2
Who was the winning driver for Hendrick Motorsports in a Chevrolet Impala SS?
CREATE TABLE table_1769428_2 (winning_driver VARCHAR, team VARCHAR, make VARCHAR)
SELECT winning_driver FROM table_1769428_2 WHERE team = "Hendrick Motorsports" AND make = "Chevrolet Impala SS"
What is the rank number for a placing of 28.5 and a total less than 92.7?
CREATE TABLE table_name_30 (rank VARCHAR, placings VARCHAR, total VARCHAR)
SELECT COUNT(rank) FROM table_name_30 WHERE placings = "28.5" AND total < 92.7
Which Start has a Duration of 6 months 2 days?
CREATE TABLE table_name_55 (start VARCHAR, duration VARCHAR)
SELECT start FROM table_name_55 WHERE duration = "6 months 2 days"
what is the 2001 % for the status widowed or surviving partner?
CREATE TABLE table_273617_6 (status VARCHAR)
SELECT 2001 AS __percentage FROM table_273617_6 WHERE status = "Widowed or surviving partner"
How many minutes were played when there were 18 points and the opponent was Chicago Bulls?
CREATE TABLE table_name_55 (minutes_played VARCHAR, points VARCHAR, opponent VARCHAR)
SELECT COUNT(minutes_played) FROM table_name_55 WHERE points = 18 AND opponent = "chicago bulls"
Who directed the episode with 6.37 million viewers?
CREATE TABLE table_27927185_1 (directed_by VARCHAR, viewers__millions_ VARCHAR)
SELECT directed_by FROM table_27927185_1 WHERE viewers__millions_ = "6.37"
Which Stadium has a Visiting team of pittsburgh steelers?
CREATE TABLE table_name_44 (stadium VARCHAR, visiting_team VARCHAR)
SELECT stadium FROM table_name_44 WHERE visiting_team = "pittsburgh steelers"
Which kit maker have Trond Sollied as a manager?
CREATE TABLE table_name_44 (kit_maker VARCHAR, manager VARCHAR)
SELECT kit_maker FROM table_name_44 WHERE manager = "trond sollied"
What is Score, when Record is "4-1"?
CREATE TABLE table_name_79 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_79 WHERE record = "4-1"
What is the score of the game that was played against Maria Kondratieva?
CREATE TABLE table_name_35 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_35 WHERE opponent = "maria kondratieva"
What film did ian mackinnon direct that was in the short film 2007 prix uip category?
CREATE TABLE table_name_55 (film VARCHAR, category VARCHAR, director_s_ VARCHAR)
SELECT film FROM table_name_55 WHERE category = "short film 2007 prix uip" AND director_s_ = "ian mackinnon"
Who was the lead when Ritvars Gulbis was the skip?
CREATE TABLE table_name_10 (lead VARCHAR, skip VARCHAR)
SELECT lead FROM table_name_10 WHERE skip = "ritvars gulbis"
When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?
CREATE TABLE table_name_5 (accreditation_type VARCHAR, accreditation_level VARCHAR, company_name VARCHAR)
SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = "joyn" AND company_name = "nokia corporation"
what is the highest round when the overall is less than 17?
CREATE TABLE table_name_32 (round INTEGER, overall INTEGER)
SELECT MAX(round) FROM table_name_32 WHERE overall < 17
How many Silvers that have a Rank of 2?
CREATE TABLE table_name_2 (silver VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_2 WHERE rank = "2"
What date did Week 9 begin?
CREATE TABLE table_name_27 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_27 WHERE week = 9
Which Bronze has a Silver smaller than 1, and a Total larger than 3?
CREATE TABLE table_name_94 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT AVG(bronze) FROM table_name_94 WHERE silver < 1 AND total > 3
Who was the away team when Carlton was the home team?
CREATE TABLE table_14312471_1 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_14312471_1 WHERE home_team = "Carlton"
what is the sum of the member when the saros is more than 127, gamma is less than 1.1508 and the magnitude is 0.742?
CREATE TABLE table_name_11 (member INTEGER, magnitude VARCHAR, saros VARCHAR, gamma VARCHAR)
SELECT SUM(member) FROM table_name_11 WHERE saros > 127 AND gamma < 1.1508 AND magnitude = 0.742
How many semifinalists where from peru?
CREATE TABLE table_30018460_1 (semifinalists VARCHAR, country_territory VARCHAR)
SELECT semifinalists FROM table_30018460_1 WHERE country_territory = "Peru"
What is the first episode number?
CREATE TABLE table_15187735_20 (episode INTEGER)
SELECT MIN(episode) FROM table_15187735_20
How many games against for team guarani with under 3 draws?
CREATE TABLE table_name_84 (against INTEGER, team VARCHAR, drawn VARCHAR)
SELECT SUM(against) FROM table_name_84 WHERE team = "guarani" AND drawn < 3
Who received the reward on the episode where the finish was "3rd voted out day 8"?
CREATE TABLE table_1272844_2 (reward VARCHAR, finish VARCHAR)
SELECT reward FROM table_1272844_2 WHERE finish = "3rd voted Out Day 8"
What college has a team of new york jets?
CREATE TABLE table_name_74 (college VARCHAR, team VARCHAR)
SELECT college FROM table_name_74 WHERE team = "new york jets"
What is the ICAO code for the airport with RBA as its IATA code?
CREATE TABLE table_name_1 (icao VARCHAR, iata VARCHAR)
SELECT icao FROM table_name_1 WHERE iata = "rba"
What school/club had pick 33?
CREATE TABLE table_name_31 (school_club_team VARCHAR, pick VARCHAR)
SELECT school_club_team FROM table_name_31 WHERE pick = 33
What was the nation that had 59 totals?
CREATE TABLE table_name_75 (nation VARCHAR, total VARCHAR)
SELECT nation FROM table_name_75 WHERE total = 59
what is 2000 when 2012 is w and 2011 is 4r?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT 2000 FROM table_name_54 WHERE 2012 = "w" AND 2011 = "4r"
Where was the game which ended in a 4-1 w?
CREATE TABLE table_name_64 (location VARCHAR, result VARCHAR)
SELECT location FROM table_name_64 WHERE result = "4-1 w"
What is the lowest number of events a tournament with more than 1 top-10 and more than 0 wins has?
CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, wins VARCHAR)
SELECT MIN(events) FROM table_name_77 WHERE top_10 > 1 AND wins > 0
What's the number of wins when the flags were less than 8 and 52.11% of wins?
CREATE TABLE table_name_60 (wins VARCHAR, percentage_wins VARCHAR, flags VARCHAR)
SELECT COUNT(wins) FROM table_name_60 WHERE percentage_wins = "52.11%" AND flags < 8
What was the total attendance October 22, 1972?
CREATE TABLE table_name_18 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_18 WHERE date = "october 22, 1972"
Which Date has a Game smaller than 4, and an Opponent of calgary flames, and a Score of 4โ€“5?
CREATE TABLE table_name_83 (date VARCHAR, score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_83 WHERE game < 4 AND opponent = "calgary flames" AND score = "4โ€“5"
What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?
CREATE TABLE table_name_25 (county VARCHAR, ihsaa_football_class VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_25 WHERE ihsaa_football_class = "aaaaa" AND mascot = "grizzly cubs"
Which Week 7 Oct 12 has a Week 11 Nov 9 of week 11 nov 9?
CREATE TABLE table_name_15 (week_7_oct_12 VARCHAR, week_11_nov_9 VARCHAR)
SELECT week_7_oct_12 FROM table_name_15 WHERE week_11_nov_9 = "week 11 nov 9"
What's was the 2008 during the Year End Ranking?
CREATE TABLE table_name_44 (tournament VARCHAR)
SELECT 2008 FROM table_name_44 WHERE tournament = "year end ranking"
What is the enrollment for the Redhawks?
CREATE TABLE table_27361255_1 (enrollment VARCHAR, team_nickname VARCHAR)
SELECT COUNT(enrollment) FROM table_27361255_1 WHERE team_nickname = "RedHawks"
What is the platform for the game of the third-person shooter genre?
CREATE TABLE table_name_65 (platform_s_ VARCHAR, genre VARCHAR)
SELECT platform_s_ FROM table_name_65 WHERE genre = "third-person shooter"
WHAT IS THE HIGHEST WINS WITH A SERIES OF BRITISH FORMULA THREE, SEASON 2005, POLES SMALLER THAN 0?
CREATE TABLE table_name_89 (wins INTEGER, poles VARCHAR, series VARCHAR, season VARCHAR)
SELECT MAX(wins) FROM table_name_89 WHERE series = "british formula three" AND season = "2005" AND poles < 0
What is the average Bronze, when Nation is "North Korea", and when Total is greater than 5?
CREATE TABLE table_name_53 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT AVG(bronze) FROM table_name_53 WHERE nation = "north korea" AND total > 5
How many partys have a candidate first elected in 1923?
CREATE TABLE table_1342256_33 (party VARCHAR, first_elected VARCHAR)
SELECT COUNT(party) FROM table_1342256_33 WHERE first_elected = 1923
On what date was the score for set 3 22โ€“25?
CREATE TABLE table_name_32 (date VARCHAR, set_3 VARCHAR)
SELECT date FROM table_name_32 WHERE set_3 = "22โ€“25"
Which name has a percentage of 0.59%?
CREATE TABLE table_name_28 (name VARCHAR, percentage VARCHAR)
SELECT name FROM table_name_28 WHERE percentage = "0.59%"
What Player is from Argentina and whose position is a guard-forward?
CREATE TABLE table_name_9 (player VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT player FROM table_name_9 WHERE position = "guard-forward" AND nationality = "argentina"
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
1
Edit dataset card