prompt
stringlengths
81
567
completion
stringlengths
18
557
Question: How many pages does the story from 1987-08 have? Context: CREATE TABLE table_name_69 (pages VARCHAR, date VARCHAR) Answer:
SELECT pages FROM table_name_69 WHERE date = "1987-08"
Question: What is the story code of the story published on 2002-12? Context: CREATE TABLE table_name_38 (story VARCHAR, date VARCHAR) Answer:
SELECT story AS code FROM table_name_38 WHERE date = "2002-12"
Question: Which driver drove car Wolf WR3? Context: CREATE TABLE table_name_12 (winning_driver VARCHAR, winning_car VARCHAR) Answer:
SELECT winning_driver FROM table_name_12 WHERE winning_car = "wolf wr3"
Question: Which driver drove car McLaren M23 at the Snetterton Circuit? Context: CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_car VARCHAR, circuit VARCHAR) Answer:
SELECT winning_driver FROM table_name_66 WHERE winning_car = "mclaren m23" AND circuit = "snetterton"
Question: What car did Tony Trimmer drive at the Oulton Park Circuit? Context: CREATE TABLE table_name_35 (winning_car VARCHAR, circuit VARCHAR, winning_driver VARCHAR) Answer:
SELECT winning_car FROM table_name_35 WHERE circuit = "oulton park" AND winning_driver = "tony trimmer"
Question: What date did the International Gold Cup take place? Context: CREATE TABLE table_name_69 (date VARCHAR, name VARCHAR) Answer:
SELECT date FROM table_name_69 WHERE name = "international gold cup"
Question: What's the theme for a series of season 3 with smaller than 148 days? Context: CREATE TABLE table_name_6 (theme VARCHAR, days VARCHAR, series VARCHAR) Answer:
SELECT theme FROM table_name_6 WHERE days < 148 AND series = "season 3"
Question: What is the home team score when the away team is Collingwood? Context: CREATE TABLE table_name_96 (home_team VARCHAR, away_team VARCHAR) Answer:
SELECT home_team AS score FROM table_name_96 WHERE away_team = "collingwood"
Question: What is the crowd size when Geelong is the away team? Context: CREATE TABLE table_name_57 (crowd VARCHAR, away_team VARCHAR) Answer:
SELECT crowd FROM table_name_57 WHERE away_team = "geelong"
Question: What is the highest crowd population when the away team is Geelong? Context: CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR) Answer:
SELECT MAX(crowd) FROM table_name_33 WHERE away_team = "geelong"
Question: What away team plays at Arden Street Oval? Context: CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR) Answer:
SELECT away_team FROM table_name_82 WHERE venue = "arden street oval"
Question: Which name has a pressure of 985hpa (29.09inhg)? Context: CREATE TABLE table_name_56 (name VARCHAR, pressure VARCHAR) Answer:
SELECT name FROM table_name_56 WHERE pressure = "985hpa (29.09inhg)"
Question: What dates was the storm called 07 active? Context: CREATE TABLE table_name_75 (dates_active VARCHAR, name VARCHAR) Answer:
SELECT dates_active FROM table_name_75 WHERE name = "07"
Question: Which building was built in 2015, has less than 40 floors and is larger than 509 feet? Context: CREATE TABLE table_name_33 (metres INTEGER, feet VARCHAR, finalized VARCHAR, floors VARCHAR) Answer:
SELECT MAX(metres) FROM table_name_33 WHERE finalized = "2015" AND floors < 40 AND feet > 509
Question: What is the highest floor for the building measuring 220 meters? Context: CREATE TABLE table_name_97 (floors INTEGER, metres INTEGER) Answer:
SELECT MAX(floors) FROM table_name_97 WHERE metres > 220
Question: How many entries feature a year built of 2010? Context: CREATE TABLE table_name_24 (total VARCHAR, year_built VARCHAR) Answer:
SELECT COUNT(total) FROM table_name_24 WHERE year_built = 2010
Question: What are the numbers for lc models built in 2009? Context: CREATE TABLE table_name_34 (numbers VARCHAR, model VARCHAR, year_built VARCHAR) Answer:
SELECT numbers FROM table_name_34 WHERE model = "lc" AND year_built = 2009
Question: Who has a Record of 5-2? Context: CREATE TABLE table_name_2 (opponent VARCHAR, record VARCHAR) Answer:
SELECT opponent FROM table_name_2 WHERE record = "5-2"
Question: For the race Champion Spark Plug 300, what is the report? Context: CREATE TABLE table_name_78 (report VARCHAR, race_name VARCHAR) Answer:
SELECT report FROM table_name_78 WHERE race_name = "champion spark plug 300"
Question: For the race held at the Cleveland Burke Lakefront Airport circuit, with winning driver Emerson Fittipaldi and pole position Michael Andretti, what was the winning team? Context: CREATE TABLE table_name_15 (winning_team VARCHAR, circuit VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) Answer:
SELECT winning_team FROM table_name_15 WHERE winning_driver = "emerson fittipaldi" AND pole_position = "michael andretti" AND circuit = "cleveland burke lakefront airport"
Question: What is the average number of deaths for earthquakes centered in Damghan? Context: CREATE TABLE table_name_84 (fatalities INTEGER, epicenter VARCHAR) Answer:
SELECT AVG(fatalities) FROM table_name_84 WHERE epicenter = "damghan"
Question: What was the score of the home team when Richmond was the away team? Context: CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) Answer:
SELECT home_team AS score FROM table_name_42 WHERE away_team = "richmond"
Question: What was the result of the match that took place in Perth, featuring a score of 48-12? Context: CREATE TABLE table_name_33 (result VARCHAR, score VARCHAR, city VARCHAR) Answer:
SELECT result FROM table_name_33 WHERE score = "48-12" AND city = "perth"
Question: What was the result of the match in Penrith that featured a score of 48-12? Context: CREATE TABLE table_name_81 (result VARCHAR, score VARCHAR, city VARCHAR) Answer:
SELECT result FROM table_name_81 WHERE score = "48-12" AND city = "penrith"
Question: What is the home team score when st kilda is the away team? Context: CREATE TABLE table_name_51 (home_team VARCHAR, away_team VARCHAR) Answer:
SELECT home_team AS score FROM table_name_51 WHERE away_team = "st kilda"
Question: What is the home team score when st kilda is the away team? Context: CREATE TABLE table_name_64 (home_team VARCHAR, away_team VARCHAR) Answer:
SELECT home_team AS score FROM table_name_64 WHERE away_team = "st kilda"
Question: What venue featured fitzroy as the home squad? Context: CREATE TABLE table_name_62 (venue VARCHAR, home_team VARCHAR) Answer:
SELECT venue FROM table_name_62 WHERE home_team = "fitzroy"
Question: What is the home team score at brunswick street oval? Context: CREATE TABLE table_name_26 (home_team VARCHAR, venue VARCHAR) Answer:
SELECT home_team AS score FROM table_name_26 WHERE venue = "brunswick street oval"
Question: What nationality is the guard from ucla? Context: CREATE TABLE table_name_85 (nationality VARCHAR, position VARCHAR, school_country VARCHAR) Answer:
SELECT nationality FROM table_name_85 WHERE position = "guard" AND school_country = "ucla"
Question: What position is played by farmar, jordan jordan farmar? Context: CREATE TABLE table_name_29 (position VARCHAR, player VARCHAR) Answer:
SELECT position FROM table_name_29 WHERE player = "farmar, jordan jordan farmar"
Question: What region is William R. Johnson Coliseum in? Context: CREATE TABLE table_name_30 (region VARCHAR, venue VARCHAR) Answer:
SELECT region FROM table_name_30 WHERE venue = "william r. johnson coliseum"
Question: What was the host for the round in Nashville? Context: CREATE TABLE table_name_78 (host VARCHAR, city VARCHAR) Answer:
SELECT host FROM table_name_78 WHERE city = "nashville"
Question: What was the host of the round at Hammons Student Center? Context: CREATE TABLE table_name_12 (host VARCHAR, venue VARCHAR) Answer:
SELECT host FROM table_name_12 WHERE venue = "hammons student center"
Question: What city is University Gym (Gold Mine) in? Context: CREATE TABLE table_name_76 (city VARCHAR, venue VARCHAR) Answer:
SELECT city FROM table_name_76 WHERE venue = "university gym (gold mine)"
Question: What city in the east region in North Carolina was the round where the University of Richmond was the host? Context: CREATE TABLE table_name_20 (city VARCHAR, host VARCHAR, region VARCHAR, state VARCHAR) Answer:
SELECT city FROM table_name_20 WHERE region = "east" AND state = "north carolina" AND host = "university of richmond"
Question: What was the host of the round in the Montagne Center in Texas? Context: CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR) Answer:
SELECT host FROM table_name_62 WHERE state = "texas" AND venue = "montagne center"
Question: Which venue had a match played on August 16, 2006? Context: CREATE TABLE table_name_90 (venue VARCHAR, date VARCHAR) Answer:
SELECT venue FROM table_name_90 WHERE date = "august 16, 2006"
Question: Which match was played on April 2, 2006? Context: CREATE TABLE table_name_78 (competition VARCHAR, date VARCHAR) Answer:
SELECT competition FROM table_name_78 WHERE date = "april 2, 2006"
Question: Who is the Constructor for round 5? Context: CREATE TABLE table_name_58 (constructor VARCHAR, rounds VARCHAR) Answer:
SELECT constructor FROM table_name_58 WHERE rounds = "5"
Question: Which round has the mv agusta f4 1000 mt? Context: CREATE TABLE table_name_75 (rounds VARCHAR, motorcycle VARCHAR) Answer:
SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt"
Question: Who does Yamaha Construct for? Context: CREATE TABLE table_name_46 (team VARCHAR, constructor VARCHAR) Answer:
SELECT team FROM table_name_46 WHERE constructor = "yamaha"
Question: Who is riding the Ducati 999 RS in Round 7? Context: CREATE TABLE table_name_31 (rider VARCHAR, rounds VARCHAR, motorcycle VARCHAR) Answer:
SELECT rider FROM table_name_31 WHERE rounds = "7" AND motorcycle = "ducati 999 rs"
Question: Who is the Constructor for the Trac Racing Team? Context: CREATE TABLE table_name_56 (constructor VARCHAR, team VARCHAR) Answer:
SELECT constructor FROM table_name_56 WHERE team = "trac racing team"
Question: What was the away team score when Richmond was the home team? Context: CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR) Answer:
SELECT away_team AS score FROM table_name_80 WHERE home_team = "richmond"
Question: What was the away team score for the game played at the Brunswick Street Oval? Context: CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR) Answer:
SELECT away_team AS score FROM table_name_15 WHERE venue = "brunswick street oval"
Question: Where did Hawthorn play as the away team? Context: CREATE TABLE table_name_89 (venue VARCHAR, away_team VARCHAR) Answer:
SELECT venue FROM table_name_89 WHERE away_team = "hawthorn"
Question: What rank did Poland receive with a time of 1:50.12? Context: CREATE TABLE table_name_43 (rank VARCHAR, nationality VARCHAR, time VARCHAR) Answer:
SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12"
Question: What is arizona state overall lowest? Context: CREATE TABLE table_name_58 (overall INTEGER, school_club_team VARCHAR) Answer:
SELECT MIN(overall) FROM table_name_58 WHERE school_club_team = "arizona state"
Question: What are the fewest losses for a player lower than 3, with wins fewer than 75%, 0 draws and 56 points? Context: CREATE TABLE table_name_76 (lost INTEGER, points VARCHAR, drawn VARCHAR, played VARCHAR, _percentage_won VARCHAR) Answer:
SELECT MIN(lost) FROM table_name_76 WHERE played > 3 AND _percentage_won < 75 AND drawn = 0 AND points = 56
Question: How many tries for the player whose number is greater than 2 and losses are smaller than 0? Context: CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR) Answer:
SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0
Question: What is the number of tries for the player who is larger than 16? Context: CREATE TABLE table_name_81 (tries INTEGER, played INTEGER) Answer:
SELECT SUM(tries) FROM table_name_81 WHERE played > 16
Question: What is the smallest draws for a player larger than 2 with a 100% wins? Context: CREATE TABLE table_name_83 (drawn INTEGER, played VARCHAR, _percentage_won VARCHAR) Answer:
SELECT MIN(drawn) FROM table_name_83 WHERE played > 2 AND _percentage_won > 100
Question: What is the average draws for a player larger than 16 with more than 1 tries and a win percentage smaller than 56.15%? Context: CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, tries VARCHAR, _percentage_won VARCHAR) Answer:
SELECT AVG(drawn) FROM table_name_86 WHERE tries > 1 AND _percentage_won < 56.15 AND played > 16
Question: What was the 2011 Wimbledon result? Context: CREATE TABLE table_name_22 (tournament VARCHAR) Answer:
SELECT 2011 FROM table_name_22 WHERE tournament = "wimbledon"
Question: What was the result of the 2011 US Open when the 2007 was F? Context: CREATE TABLE table_name_59 (tournament VARCHAR) Answer:
SELECT 2011 FROM table_name_59 WHERE 2007 = "f" AND tournament = "us open"
Question: What was the result in 2007 when the 2011 was F and 2009 was W? Context: CREATE TABLE table_name_16 (Id VARCHAR) Answer:
SELECT 2007 FROM table_name_16 WHERE 2011 = "f" AND 2009 = "w"
Question: Which tournament had the result of a W in 2009? Context: CREATE TABLE table_name_67 (tournament VARCHAR) Answer:
SELECT tournament FROM table_name_67 WHERE 2009 = "w"
Question: Which 2009 tournament had Grand Slams? Context: CREATE TABLE table_name_58 (tournament VARCHAR) Answer:
SELECT tournament FROM table_name_58 WHERE 2009 = "grand slams"
Question: Which tournament had the result with 2009 was F and 2010 was F? Context: CREATE TABLE table_name_61 (tournament VARCHAR) Answer:
SELECT tournament FROM table_name_61 WHERE 2009 = "f" AND 2010 = "f"
Question: What was the date of the game when Hawthorn was the home team? Context: CREATE TABLE table_name_54 (date VARCHAR, home_team VARCHAR) Answer:
SELECT date FROM table_name_54 WHERE home_team = "hawthorn"
Question: Which season had a margin of 10? Context: CREATE TABLE table_name_48 (season VARCHAR, margin VARCHAR) Answer:
SELECT season FROM table_name_48 WHERE margin = 10
Question: What did the Tournament of Australian Championships, with an A in 1969, get in 1954? Context: CREATE TABLE table_name_28 (tournament VARCHAR) Answer:
SELECT 1954 FROM table_name_28 WHERE 1969 = "a" AND tournament = "australian championships"
Question: What did the Tournament of SR get in 1951? Context: CREATE TABLE table_name_25 (tournament VARCHAR) Answer:
SELECT 1951 FROM table_name_25 WHERE tournament = "sr"
Question: What did the tournament with a QF in 1969 get in 1956-1968? Context: CREATE TABLE table_name_31 (Id VARCHAR) Answer:
SELECT 1956 AS _1968 FROM table_name_31 WHERE 1969 = "qf"
Question: What did the tournament that got an A in 1945 get in 1949? Context: CREATE TABLE table_name_22 (Id VARCHAR) Answer:
SELECT 1949 FROM table_name_22 WHERE 1945 = "a"
Question: When did Geelong play as the home team? Context: CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR) Answer:
SELECT date FROM table_name_65 WHERE home_team = "geelong"
Question: When North Melbourne played as the away team, what was the crowd numbers? Context: CREATE TABLE table_name_56 (crowd VARCHAR, away_team VARCHAR) Answer:
SELECT crowd FROM table_name_56 WHERE away_team = "north melbourne"
Question: How many rounds did Honester Davidson play? Context: CREATE TABLE table_name_95 (round VARCHAR, player VARCHAR) Answer:
SELECT COUNT(round) FROM table_name_95 WHERE player = "honester davidson"
Question: What School or Club team has an overall score of 21? Context: CREATE TABLE table_name_15 (school_club_team VARCHAR, overall VARCHAR) Answer:
SELECT school_club_team FROM table_name_15 WHERE overall = 21
Question: What total number of Overalls has a round that was smaller than 1? Context: CREATE TABLE table_name_86 (overall VARCHAR, round INTEGER) Answer:
SELECT COUNT(overall) FROM table_name_86 WHERE round < 1
Question: What player is a kicker? Context: CREATE TABLE table_name_33 (player VARCHAR, position VARCHAR) Answer:
SELECT player FROM table_name_33 WHERE position = "kicker"
Question: What position and school/club team of Oklahoma state has an overall less than 410 and a round smaller than 5? Context: CREATE TABLE table_name_17 (position VARCHAR, school_club_team VARCHAR, overall VARCHAR, round VARCHAR) Answer:
SELECT position FROM table_name_17 WHERE overall < 410 AND round < 5 AND school_club_team = "oklahoma state"
Question: Which player plays forward and is from Kentucky? Context: CREATE TABLE table_name_43 (player VARCHAR, position VARCHAR, school_country VARCHAR) Answer:
SELECT player FROM table_name_43 WHERE position = "forward" AND school_country = "kentucky"
Question: What team was the away team for the venue punt road oval? Context: CREATE TABLE table_name_4 (away_team VARCHAR, venue VARCHAR) Answer:
SELECT away_team FROM table_name_4 WHERE venue = "punt road oval"
Question: What is the highest ranked player who opposed Westmeath? Context: CREATE TABLE table_name_3 (rank INTEGER, opposition VARCHAR) Answer:
SELECT MAX(rank) FROM table_name_3 WHERE opposition = "westmeath"
Question: What is Tony O'Sullivan's county? Context: CREATE TABLE table_name_67 (county VARCHAR, player VARCHAR) Answer:
SELECT county FROM table_name_67 WHERE player = "tony o'sullivan"
Question: What Network has Punjabi as the Language? Context: CREATE TABLE table_name_71 (network VARCHAR, language VARCHAR) Answer:
SELECT network FROM table_name_71 WHERE language = "punjabi"
Question: What Genre has Hindi as the Language and Star Gold as the Network? Context: CREATE TABLE table_name_16 (genre VARCHAR, language VARCHAR, network VARCHAR) Answer:
SELECT genre FROM table_name_16 WHERE language = "hindi" AND network = "star gold"
Question: What is the Origin of Programming for the Network NDTV India? Context: CREATE TABLE table_name_98 (origin_of_programming VARCHAR, network VARCHAR) Answer:
SELECT origin_of_programming FROM table_name_98 WHERE network = "ndtv india"
Question: What is the Origin of Programming for the Network MTV India? Context: CREATE TABLE table_name_43 (origin_of_programming VARCHAR, network VARCHAR) Answer:
SELECT origin_of_programming FROM table_name_43 WHERE network = "mtv india"
Question: What is the Language for Network PTC Punjabi? Context: CREATE TABLE table_name_28 (language VARCHAR, network VARCHAR) Answer:
SELECT language FROM table_name_28 WHERE network = "ptc punjabi"
Question: What Genre has the Network Zee TV? Context: CREATE TABLE table_name_93 (genre VARCHAR, network VARCHAR) Answer:
SELECT genre FROM table_name_93 WHERE network = "zee tv"
Question: What team was the home team at the venue junction oval? Context: CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR) Answer:
SELECT home_team FROM table_name_74 WHERE venue = "junction oval"
Question: What away team played when the home team was south melbourne? Context: CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) Answer:
SELECT away_team FROM table_name_33 WHERE home_team = "south melbourne"
Question: What team was the home team when Richmond was the away team? Context: CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR) Answer:
SELECT home_team FROM table_name_36 WHERE away_team = "richmond"
Question: What was the score when geelong was the away team? Context: CREATE TABLE table_name_45 (home_team VARCHAR) Answer:
SELECT home_team AS score FROM table_name_45 WHERE home_team = "geelong"
Question: What was the CB CW for the year of 1982? Context: CREATE TABLE table_name_89 (cb_cw VARCHAR, year VARCHAR) Answer:
SELECT cb_cw FROM table_name_89 WHERE year = 1982
Question: What is the most current year that had a BB CW of 78? Context: CREATE TABLE table_name_8 (year INTEGER, bb_cw VARCHAR) Answer:
SELECT MAX(year) FROM table_name_8 WHERE bb_cw = "78"
Question: What was the North Melbourne's score when they played as the home team? Context: CREATE TABLE table_name_52 (home_team VARCHAR) Answer:
SELECT home_team AS score FROM table_name_52 WHERE home_team = "north melbourne"
Question: What was the attendance at the St Kilda home game? Context: CREATE TABLE table_name_54 (crowd INTEGER, home_team VARCHAR) Answer:
SELECT AVG(crowd) FROM table_name_54 WHERE home_team = "st kilda"
Question: What was the attendance when the VFL played Junction Oval? Context: CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR) Answer:
SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "junction oval"
Question: Where did Melbourne play as the away team? Context: CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) Answer:
SELECT venue FROM table_name_95 WHERE away_team = "melbourne"
Question: What is Fitzroy's home field? Context: CREATE TABLE table_name_82 (venue VARCHAR, home_team VARCHAR) Answer:
SELECT venue FROM table_name_82 WHERE home_team = "fitzroy"
Question: Who was the away team at punt road oval? Context: CREATE TABLE table_name_5 (away_team VARCHAR, venue VARCHAR) Answer:
SELECT away_team FROM table_name_5 WHERE venue = "punt road oval"
Question: What was the away team score at victoria park? Context: CREATE TABLE table_name_62 (away_team VARCHAR, venue VARCHAR) Answer:
SELECT away_team AS score FROM table_name_62 WHERE venue = "victoria park"
Question: Who was the home team in the game played at arden street oval? Context: CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR) Answer:
SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval"
Question: What was St Kilda's away team score? Context: CREATE TABLE table_name_21 (away_team VARCHAR) Answer:
SELECT away_team AS score FROM table_name_21 WHERE away_team = "st kilda"
Question: Who was home team South Melbourne's opponent? Context: CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR) Answer:
SELECT away_team FROM table_name_13 WHERE home_team = "south melbourne"
Question: What was the music for the team who earned a score of 13 (5, 4, 4)? Context: CREATE TABLE table_name_99 (music VARCHAR, score VARCHAR) Answer:
SELECT music FROM table_name_99 WHERE score = "13 (5, 4, 4)"
Question: What was the music of the team that was eliminated? Context: CREATE TABLE table_name_7 (music VARCHAR, result VARCHAR) Answer:
SELECT music FROM table_name_7 WHERE result = "eliminated"