answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT MIN(round) FROM table_name_20 WHERE record = "10-6"
|
CREATE TABLE table_name_20 (round INTEGER, record VARCHAR)
|
Which Round has a Record of 10-6?
|
SELECT opponent FROM table_name_48 WHERE round < 3 AND time = "1:09"
|
CREATE TABLE table_name_48 (opponent VARCHAR, round VARCHAR, time VARCHAR)
|
Which Opponent has a Round smaller than 3, and a Time of 1:09?
|
SELECT time FROM table_name_3 WHERE opponent = "josh branham"
|
CREATE TABLE table_name_3 (time VARCHAR, opponent VARCHAR)
|
Which Time has an Opponent of josh branham?
|
SELECT time FROM table_name_96 WHERE round > 2 AND opponent = "jesse brock"
|
CREATE TABLE table_name_96 (time VARCHAR, round VARCHAR, opponent VARCHAR)
|
Which Time has a Round larger than 2, and an Opponent of jesse brock?
|
SELECT round FROM table_name_36 WHERE event = "nle - capital city carnage"
|
CREATE TABLE table_name_36 (round VARCHAR, event VARCHAR)
|
Which Round has an Event of nle - capital city carnage?
|
SELECT round FROM table_name_6 WHERE opponent = "ryan bixler"
|
CREATE TABLE table_name_6 (round VARCHAR, opponent VARCHAR)
|
Which Round has an Opponent of ryan bixler?
|
SELECT event FROM table_name_47 WHERE record = "19-9"
|
CREATE TABLE table_name_47 (event VARCHAR, record VARCHAR)
|
Which Event has a Record of 19-9?
|
SELECT method FROM table_name_37 WHERE round = 1 AND record = "4–2"
|
CREATE TABLE table_name_37 (method VARCHAR, round VARCHAR, record VARCHAR)
|
Which Method has a Round of 1, and a Record of 4–2?
|
SELECT opponent FROM table_name_84 WHERE time = "4:51"
|
CREATE TABLE table_name_84 (opponent VARCHAR, time VARCHAR)
|
Which Opponent has a Time of 4:51?
|
SELECT AVG(round) FROM table_name_83 WHERE opponent = "jorge magalhaes"
|
CREATE TABLE table_name_83 (round INTEGER, opponent VARCHAR)
|
Which Round has an Opponent of jorge magalhaes?
|
SELECT AVG(round) FROM table_name_52 WHERE location = "bahia, brazil"
|
CREATE TABLE table_name_52 (round INTEGER, location VARCHAR)
|
Which Round has a Location of bahia, brazil?
|
SELECT opponent FROM table_name_2 WHERE event = "jungle fight 5"
|
CREATE TABLE table_name_2 (opponent VARCHAR, event VARCHAR)
|
Which Opponent has an Event of jungle fight 5?
|
SELECT to_par FROM table_name_73 WHERE total < 293 AND player = "tiger woods"
|
CREATE TABLE table_name_73 (to_par VARCHAR, total VARCHAR, player VARCHAR)
|
Tiger Woods with a total less than 293 had what To par?
|
SELECT MAX(total) FROM table_name_27 WHERE player = "bernhard langer"
|
CREATE TABLE table_name_27 (total INTEGER, player VARCHAR)
|
Bernhard Langer maximum total was what?
|
SELECT AVG(total) FROM table_name_39 WHERE finish = "t11"
|
CREATE TABLE table_name_39 (total INTEGER, finish VARCHAR)
|
What is the average of the total when t11 is the finish?
|
SELECT rider FROM table_name_89 WHERE laps < 24 AND grid < 12 AND manufacturer = "aprilia"
|
CREATE TABLE table_name_89 (rider VARCHAR, manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
|
Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?
|
SELECT MIN(laps) FROM table_name_72 WHERE grid = 7
|
CREATE TABLE table_name_72 (laps INTEGER, grid VARCHAR)
|
What were grid 7's laps?
|
SELECT time_retired FROM table_name_5 WHERE laps < 24 AND manufacturer = "aprilia" AND grid < 12 AND rider = "ángel rodríguez"
|
CREATE TABLE table_name_5 (time_retired VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR, manufacturer VARCHAR)
|
Which Time/Retired has Laps smaller than 24, and a Manufacturer of aprilia, and a Grid smaller than 12, and a Rider of ángel rodríguez?
|
SELECT COUNT(laps) FROM table_name_67 WHERE time_retired = "+1:42.517" AND grid > 33
|
CREATE TABLE table_name_67 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
|
How many Laps have a Time/Retired of +1:42.517, and a Grid larger than 33?
|
SELECT chassis___engine FROM table_name_9 WHERE laps = 77
|
CREATE TABLE table_name_9 (chassis___engine VARCHAR, laps VARCHAR)
|
Which chassis-engine had 77 laps?
|
SELECT class FROM table_name_85 WHERE laps < 71 AND team = "liqui moly equipe"
|
CREATE TABLE table_name_85 (class VARCHAR, laps VARCHAR, team VARCHAR)
|
What is the class of team liqui moly equipe, which has less than 71 laps?
|
SELECT team FROM table_name_15 WHERE class = "c1" AND laps > 77 AND driver = "klaus ludwig"
|
CREATE TABLE table_name_15 (team VARCHAR, driver VARCHAR, class VARCHAR, laps VARCHAR)
|
What is the team of driver klaus ludwig, who is class c1 and has more than 77 laps?
|
SELECT driver FROM table_name_14 WHERE chassis___engine = "porsche 956 gti"
|
CREATE TABLE table_name_14 (driver VARCHAR, chassis___engine VARCHAR)
|
Who is the driver of the chassis-engine porsche 956 gti?
|
SELECT team FROM table_name_17 WHERE chassis___engine = "porsche 956 b" AND laps < 79
|
CREATE TABLE table_name_17 (team VARCHAR, chassis___engine VARCHAR, laps VARCHAR)
|
What team has a porsche 956 b chassis-engine with less than 79 laps?
|
SELECT worldwide_gross FROM table_name_65 WHERE director = "joe pytka"
|
CREATE TABLE table_name_65 (worldwide_gross VARCHAR, director VARCHAR)
|
What was the worldwide gross for the film directed by joe pytka?
|
SELECT AVG(rank) FROM table_name_82 WHERE studio = "20th century fox" AND director = "roland emmerich"
|
CREATE TABLE table_name_82 (rank INTEGER, studio VARCHAR, director VARCHAR)
|
What was the average rank for the film directed by roland emmerich under the studio of 20th century fox?
|
SELECT AVG(rank) FROM table_name_90 WHERE director = "michael bay"
|
CREATE TABLE table_name_90 (rank INTEGER, director VARCHAR)
|
What is the average rank for the film directed by michael bay?
|
SELECT 3 AS rd_largest FROM table_name_35 WHERE largest_city = "ardabil"
|
CREATE TABLE table_name_35 (largest_city VARCHAR)
|
What is the 3rd largest where the largest city is Ardabil?
|
SELECT province FROM table_name_73 WHERE largest_city = "birjand"
|
CREATE TABLE table_name_73 (province VARCHAR, largest_city VARCHAR)
|
What province has the largest city of Birjand?
|
SELECT score FROM table_name_58 WHERE date = "september 28"
|
CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR)
|
What was the score on september 28?
|
SELECT date FROM table_name_28 WHERE score = "29-7"
|
CREATE TABLE table_name_28 (date VARCHAR, score VARCHAR)
|
What date was the score 29-7?
|
SELECT COUNT(january) FROM table_name_67 WHERE game < 37 AND opponent = "detroit red wings"
|
CREATE TABLE table_name_67 (january VARCHAR, game VARCHAR, opponent VARCHAR)
|
How much January has a Game smaller than 37, and an Opponent of detroit red wings?
|
SELECT january FROM table_name_55 WHERE opponent = "toronto maple leafs"
|
CREATE TABLE table_name_55 (january VARCHAR, opponent VARCHAR)
|
Which January has an Opponent of toronto maple leafs?
|
SELECT AVG(january) FROM table_name_74 WHERE opponent = "@ detroit red wings"
|
CREATE TABLE table_name_74 (january INTEGER, opponent VARCHAR)
|
Which January has an Opponent of @ detroit red wings?
|
SELECT date FROM table_name_93 WHERE score = "won 1-2"
|
CREATE TABLE table_name_93 (date VARCHAR, score VARCHAR)
|
What date was the score won 1-2?
|
SELECT score FROM table_name_58 WHERE opponent = "bornor regis town"
|
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR)
|
What was the score when Bornor Regis Town was the opponent?
|
SELECT attendance FROM table_name_86 WHERE opponent = "tonbridge angels"
|
CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR)
|
What is the number of people in attendance when Tonbridge Angels is the opponent?
|
SELECT score FROM table_name_81 WHERE attendance = "tbc" AND opponent = "sidley united"
|
CREATE TABLE table_name_81 (score VARCHAR, attendance VARCHAR, opponent VARCHAR)
|
What is the score when the attendance shows TBC, and Sidley United was the opponent?
|
SELECT score FROM table_name_97 WHERE scorers = "match report"
|
CREATE TABLE table_name_97 (score VARCHAR, scorers VARCHAR)
|
What is the score when the scorers show match report?
|
SELECT album FROM table_name_87 WHERE label = "msb 801"
|
CREATE TABLE table_name_87 (album VARCHAR, label VARCHAR)
|
Which Album has a Label of msb 801?
|
SELECT album FROM table_name_84 WHERE label = "tumbleweed 1014"
|
CREATE TABLE table_name_84 (album VARCHAR, label VARCHAR)
|
Which Album has a Label of tumbleweed 1014?
|
SELECT score FROM table_name_72 WHERE tie_no = "12"
|
CREATE TABLE table_name_72 (score VARCHAR, tie_no VARCHAR)
|
What was the score when the tie no was 12?
|
SELECT date FROM table_name_65 WHERE away_team = "carlisle united"
|
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
|
What date was the match against carlisle united?
|
SELECT home_team FROM table_name_11 WHERE away_team = "millwall"
|
CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR)
|
Who was the home team when millwall was the away team?
|
SELECT category FROM table_name_31 WHERE outcome = "nominated" AND year > 2008
|
CREATE TABLE table_name_31 (category VARCHAR, outcome VARCHAR, year VARCHAR)
|
What category was the nominated in after 2008?
|
SELECT year FROM table_name_46 WHERE category = "supernova award"
|
CREATE TABLE table_name_46 (year VARCHAR, category VARCHAR)
|
What year had the supernova award?
|
SELECT category FROM table_name_45 WHERE outcome = "winner"
|
CREATE TABLE table_name_45 (category VARCHAR, outcome VARCHAR)
|
What category was the winner in?
|
SELECT country FROM table_name_7 WHERE iata = "gva"
|
CREATE TABLE table_name_7 (country VARCHAR, iata VARCHAR)
|
what is the country when the iata is gva?
|
SELECT country FROM table_name_34 WHERE city = "cardiff"
|
CREATE TABLE table_name_34 (country VARCHAR, city VARCHAR)
|
what is the country for the city of cardiff?
|
SELECT icao FROM table_name_28 WHERE country = "norway"
|
CREATE TABLE table_name_28 (icao VARCHAR, country VARCHAR)
|
what is the icao when the country is norway?
|
SELECT city FROM table_name_96 WHERE country = "netherlands"
|
CREATE TABLE table_name_96 (city VARCHAR, country VARCHAR)
|
what is the city for the country of netherlands?
|
SELECT airport FROM table_name_41 WHERE city = "düsseldorf"
|
CREATE TABLE table_name_41 (airport VARCHAR, city VARCHAR)
|
what is the airport when the city is düsseldorf?
|
SELECT iata FROM table_name_91 WHERE city = "leipzig"
|
CREATE TABLE table_name_91 (iata VARCHAR, city VARCHAR)
|
what is the iata when the city is leipzig?
|
SELECT record FROM table_name_82 WHERE february = 23
|
CREATE TABLE table_name_82 (record VARCHAR, february VARCHAR)
|
What is the record on February 23?
|
SELECT COUNT(rank) FROM table_name_87 WHERE year < 2002 AND ascent_time = "43:24"
|
CREATE TABLE table_name_87 (rank VARCHAR, year VARCHAR, ascent_time VARCHAR)
|
What was the rank of the rider whose ascent time was 43:24 before the year 2002?
|
SELECT rider FROM table_name_43 WHERE rank < 8 AND year = 2000 AND speed = "18.32 km/h"
|
CREATE TABLE table_name_43 (rider VARCHAR, speed VARCHAR, rank VARCHAR, year VARCHAR)
|
Who is the rider that has a rank of less than 8 in the year 2000, and whose speed was 18.32 km/h?
|
SELECT comp_att FROM table_name_83 WHERE season = "2009"
|
CREATE TABLE table_name_83 (comp_att VARCHAR, season VARCHAR)
|
What is the number of completions and attempts taken in 2009?
|
SELECT comp_att FROM table_name_10 WHERE avg_g = "36.5"
|
CREATE TABLE table_name_10 (comp_att VARCHAR, avg_g VARCHAR)
|
What is the completion/attempts value for the year with an average per game of 36.5?
|
SELECT long FROM table_name_17 WHERE avg_g = "160.9"
|
CREATE TABLE table_name_17 (long VARCHAR, avg_g VARCHAR)
|
What is the long value for the year with an average/game of 160.9?
|
SELECT MAX(attendance) FROM table_name_17 WHERE date = "february 7, 2009" AND points > 49
|
CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, points VARCHAR)
|
What was the highest attendance of February 7, 2009 and more than 49 points?
|
SELECT location FROM table_name_25 WHERE game < 57 AND points > 50
|
CREATE TABLE table_name_25 (location VARCHAR, game VARCHAR, points VARCHAR)
|
Which game has a number lower than 57 and more than 50 points?
|
SELECT MAX(points) FROM table_name_27 WHERE date = "february 10, 2009" AND game > 54
|
CREATE TABLE table_name_27 (points INTEGER, date VARCHAR, game VARCHAR)
|
What game in February 10, 2009 has the most points and a game number larger than 54?
|
SELECT current_streak FROM table_name_50 WHERE last_10_meetings = "lsu, 2-1"
|
CREATE TABLE table_name_50 (current_streak VARCHAR, last_10_meetings VARCHAR)
|
What's the current streak with a last 10 meetings of lsu, 2-1?
|
SELECT probable_future FROM table_name_82 WHERE NOT simple_present_future = "high grade"
|
CREATE TABLE table_name_82 (probable_future VARCHAR, simple_present_future VARCHAR)
|
What is the probable future word for the simple present/future word high grade?
|
SELECT injunctive FROM table_name_99 WHERE simple_past = "गरुँला garũlā 'i will (probably) do'"
|
CREATE TABLE table_name_99 (injunctive VARCHAR, simple_past VARCHAR)
|
What is the injunctive for the Simple Past of गरुँला garũlā 'I will (probably) do'?
|
SELECT took_office FROM table_name_28 WHERE minister = "giorgia meloni"
|
CREATE TABLE table_name_28 (took_office VARCHAR, minister VARCHAR)
|
What is the date of taking office for Giorgia Meloni?
|
SELECT party FROM table_name_85 WHERE minister = "andrea ronchi"
|
CREATE TABLE table_name_85 (party VARCHAR, minister VARCHAR)
|
Which party was Andrea Ronchi from?
|
SELECT MIN(division) FROM table_name_30 WHERE team = "benfica" AND apps = 22
|
CREATE TABLE table_name_30 (division INTEGER, team VARCHAR, apps VARCHAR)
|
What is the lowest Division, when Team is "Benfica", and when Apps is 22?
|
SELECT championship FROM table_name_9 WHERE winning_score = 69 - 71 - 67 - 68 = 275
|
CREATE TABLE table_name_9 (championship VARCHAR, winning_score VARCHAR)
|
What Championship had a winning score of 69-71-67-68=275?
|
SELECT jockey FROM table_name_55 WHERE time = "1:15.89"
|
CREATE TABLE table_name_55 (jockey VARCHAR, time VARCHAR)
|
What is Jockey, when Time is 1:15.89?
|
SELECT time FROM table_name_16 WHERE jockey = "john velazquez" AND trainer = "todd a. pletcher"
|
CREATE TABLE table_name_16 (time VARCHAR, jockey VARCHAR, trainer VARCHAR)
|
What is Time, when Jockey is John Velazquez, and when Trainer is Todd A. Pletcher?
|
SELECT winner FROM table_name_34 WHERE year = 2001
|
CREATE TABLE table_name_34 (winner VARCHAR, year VARCHAR)
|
What is Winner, when Year is 2001?
|
SELECT jockey FROM table_name_10 WHERE winner = "alke"
|
CREATE TABLE table_name_10 (jockey VARCHAR, winner VARCHAR)
|
What is Jockey, when Winner is Alke?
|
SELECT AVG(laps) FROM table_name_42 WHERE time = "+50.653"
|
CREATE TABLE table_name_42 (laps INTEGER, time VARCHAR)
|
What is the average laps for the +50.653 time?
|
SELECT MAX(matches) FROM table_name_78 WHERE points < 8 AND place > 13 AND drawn < 1
|
CREATE TABLE table_name_78 (matches INTEGER, drawn VARCHAR, points VARCHAR, place VARCHAR)
|
What is the highest Matches were the points were smaller than 8, the place was larger than 13, and the drawn is less than 1?
|
SELECT AVG(points) FROM table_name_68 WHERE drawn < 0
|
CREATE TABLE table_name_68 (points INTEGER, drawn INTEGER)
|
What is the average points when the drawn is less than 0?
|
SELECT MIN(gold) FROM table_name_83 WHERE nation = "turkey" AND bronze < 2
|
CREATE TABLE table_name_83 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
|
What was Turkey's lowest gold when there were less than 2 bronze?
|
SELECT AVG(area__sq_mi_) FROM table_name_88 WHERE administrative_division = "hunan" AND national_share___percentage_ < 2.19
|
CREATE TABLE table_name_88 (area__sq_mi_ INTEGER, administrative_division VARCHAR, national_share___percentage_ VARCHAR)
|
What is the average area in square miles for the hunan administrative division with a national share less than 2.19%?
|
SELECT AVG(overall) FROM table_name_83 WHERE college = "central michigan" AND pick = 8
|
CREATE TABLE table_name_83 (overall INTEGER, college VARCHAR, pick VARCHAR)
|
What is Central Michigan's average overall when the pick was 8?
|
SELECT record FROM table_name_37 WHERE opponent = "jeff williams"
|
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR)
|
what is the record when the opponent is jeff williams?
|
SELECT method FROM table_name_97 WHERE round = 1 AND opponent = "bobby mcmaster"
|
CREATE TABLE table_name_97 (method VARCHAR, round VARCHAR, opponent VARCHAR)
|
what is the method for round 1 and the opponent is bobby mcmaster?
|
SELECT location FROM table_name_7 WHERE time = "3:15"
|
CREATE TABLE table_name_7 (location VARCHAR, time VARCHAR)
|
what is the location when the time is 3:15?
|
SELECT record FROM table_name_41 WHERE round < 3 AND time = "4:59"
|
CREATE TABLE table_name_41 (record VARCHAR, round VARCHAR, time VARCHAR)
|
what is the record when the round is before 3 and the time si 4:59?
|
SELECT record FROM table_name_24 WHERE event = "shido usa mma" AND opponent = "raphael assunção"
|
CREATE TABLE table_name_24 (record VARCHAR, event VARCHAR, opponent VARCHAR)
|
what is the record when the event is shido usa mma and the opponent is raphael assunção?
|
SELECT money___$__ FROM table_name_58 WHERE player = "ben crenshaw"
|
CREATE TABLE table_name_58 (money___$__ VARCHAR, player VARCHAR)
|
How much money did Ben Crenshaw earn?
|
SELECT competition FROM table_name_28 WHERE score = "2-1"
|
CREATE TABLE table_name_28 (competition VARCHAR, score VARCHAR)
|
what is the competition when the score is 2-1?
|
SELECT venue FROM table_name_15 WHERE score = "10-0" AND date = "1997-06-22"
|
CREATE TABLE table_name_15 (venue VARCHAR, score VARCHAR, date VARCHAR)
|
what is the venue when the score is 10-0 on 1997-06-22?
|
SELECT venue FROM table_name_66 WHERE competition = "1996 afc asian cup group stage"
|
CREATE TABLE table_name_66 (venue VARCHAR, competition VARCHAR)
|
what is the venue when the competition is 1996 afc asian cup group stage?
|
SELECT competition FROM table_name_35 WHERE date = "1995-08-06"
|
CREATE TABLE table_name_35 (competition VARCHAR, date VARCHAR)
|
what is the competition when the date is 1995-08-06?
|
SELECT COUNT(week) FROM table_name_25 WHERE opponent = "dallas cowboys"
|
CREATE TABLE table_name_25 (week VARCHAR, opponent VARCHAR)
|
What is the total number of weeks that the Giants played against the Dallas Cowboys?
|
SELECT home FROM table_name_62 WHERE away = "hispano"
|
CREATE TABLE table_name_62 (home VARCHAR, away VARCHAR)
|
Which Home has an Away of hispano?
|
SELECT engine FROM table_name_1 WHERE entrant = "mercedes amg petronas f1 team" AND points = "93"
|
CREATE TABLE table_name_1 (engine VARCHAR, entrant VARCHAR, points VARCHAR)
|
What engine has the Mercedes AMG Petronas f1 team, and 93 points?
|
SELECT chassis FROM table_name_32 WHERE points = "4"
|
CREATE TABLE table_name_32 (chassis VARCHAR, points VARCHAR)
|
Which Chassis has 4 points?
|
SELECT opponent FROM table_name_64 WHERE year > 2009 AND score = "7–5, 6–7 (6–8) , 6–1"
|
CREATE TABLE table_name_64 (opponent VARCHAR, year VARCHAR, score VARCHAR)
|
What is Opponent, when Year is greater than 2009, and when Score is 7–5, 6–7 (6–8) , 6–1?
|
SELECT MIN(year) FROM table_name_3 WHERE surface = "hard" AND opponent = "dinara safina"
|
CREATE TABLE table_name_3 (year INTEGER, surface VARCHAR, opponent VARCHAR)
|
What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?
|
SELECT surface FROM table_name_49 WHERE championship = "australian open"
|
CREATE TABLE table_name_49 (surface VARCHAR, championship VARCHAR)
|
What is Surface, when Championship is Australian Open?
|
SELECT outcome FROM table_name_63 WHERE opponent = "victoria azarenka" AND score = "6–2, 2–6, 7–5"
|
CREATE TABLE table_name_63 (outcome VARCHAR, opponent VARCHAR, score VARCHAR)
|
What is Outcome, when Opponent is Victoria Azarenka, and when Score is 6–2, 2–6, 7–5?
|
SELECT series FROM table_name_47 WHERE released_by = "itv studios" AND release_date = "august 15, 2012"
|
CREATE TABLE table_name_47 (series VARCHAR, released_by VARCHAR, release_date VARCHAR)
|
WHAT SERIES WAS RELEASED BY ITV STUDIOS AND A RELEASE DATE OF AUGUST 15, 2012?
|
SELECT episode_no FROM table_name_78 WHERE no_of_dvds = "28"
|
CREATE TABLE table_name_78 (episode_no VARCHAR, no_of_dvds VARCHAR)
|
WHAT IS THE EPISODE NUMBER THAT HAS 28 DVD?
|
SELECT episode_no FROM table_name_58 WHERE region_no > 1 AND no_of_dvds = "32"
|
CREATE TABLE table_name_58 (episode_no VARCHAR, region_no VARCHAR, no_of_dvds VARCHAR)
|
WHAT EPISODE HAS A REGION NUMBER BIGGER THAN 1, AND 32 DVDS?
|
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.