answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT venue FROM table_name_31 WHERE score = "3-0" AND date = "december 7, 2002"
|
CREATE TABLE table_name_31 (venue VARCHAR, score VARCHAR, date VARCHAR)
|
What venue hosted a match with a 3-0 score on December 7, 2002?
|
SELECT competition FROM table_name_23 WHERE score = "2-0" AND venue = "amman"
|
CREATE TABLE table_name_23 (competition VARCHAR, score VARCHAR, venue VARCHAR)
|
What competition resulted in 2-0 score, hosted in Amman?
|
SELECT date FROM table_name_29 WHERE venue = "kuwait city"
|
CREATE TABLE table_name_29 (date VARCHAR, venue VARCHAR)
|
On what date was Kuwait City a venue?
|
SELECT opponent FROM table_name_70 WHERE record = "26β32"
|
CREATE TABLE table_name_70 (opponent VARCHAR, record VARCHAR)
|
Who did the Mariners play when their record was 26β32?
|
SELECT time_retired FROM table_name_37 WHERE laps = 49 AND constructor = "vanwall"
|
CREATE TABLE table_name_37 (time_retired VARCHAR, laps VARCHAR, constructor VARCHAR)
|
What was the Vanwall time/retired with 49 laps?
|
SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 1
|
CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
|
How many laps did the grid 1 engine have?
|
SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = "engine" AND driver = "luigi piotti"
|
CREATE TABLE table_name_19 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
|
What was the highest lap for Luigi Piotti with more than 13 grid and a time/retired engine?
|
SELECT MIN(pick__number) FROM table_name_16 WHERE position = "cornerback" AND round < 1
|
CREATE TABLE table_name_16 (pick__number INTEGER, position VARCHAR, round VARCHAR)
|
What Cornerback has the lowest Pick # and Round of less than 1?
|
SELECT position FROM table_name_25 WHERE pick__number = 77
|
CREATE TABLE table_name_25 (position VARCHAR, pick__number VARCHAR)
|
What is the Position of Pick #77?
|
SELECT COUNT(attendance) FROM table_name_52 WHERE date = "august 12"
|
CREATE TABLE table_name_52 (attendance VARCHAR, date VARCHAR)
|
How many attended the game on August 12?
|
SELECT MAX(crowd) FROM table_name_62 WHERE home_team = "hawthorn"
|
CREATE TABLE table_name_62 (crowd INTEGER, home_team VARCHAR)
|
What is the largest crowd with Home team of hawthorn?
|
SELECT home_team AS score FROM table_name_91 WHERE away_team = "fitzroy"
|
CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR)
|
What is the home team score with Fitzroy as away team?
|
SELECT home_team FROM table_name_59 WHERE venue = "glenferrie oval"
|
CREATE TABLE table_name_59 (home_team VARCHAR, venue VARCHAR)
|
What is glenferrie oval's home team?
|
SELECT super_g FROM table_name_8 WHERE overall = "16"
|
CREATE TABLE table_name_8 (super_g VARCHAR, overall VARCHAR)
|
What is the Super G value for the season that has an Overall score of 16?
|
SELECT MIN(season) FROM table_name_34 WHERE super_g = "33"
|
CREATE TABLE table_name_34 (season INTEGER, super_g VARCHAR)
|
What is the oldest season that had a listed Super G score of 33?
|
SELECT season FROM table_name_70 WHERE overall = "77"
|
CREATE TABLE table_name_70 (season VARCHAR, overall VARCHAR)
|
What year's Season had an Overall of 77?
|
SELECT MAX(rank) FROM table_name_13 WHERE earnings___$__ > 533 OFFSET 929
|
CREATE TABLE table_name_13 (rank INTEGER, earnings___$__ INTEGER)
|
What is the high rank for players earning over $533,929?
|
SELECT player FROM table_name_51 WHERE wins = 3 AND rank > 3
|
CREATE TABLE table_name_51 (player VARCHAR, wins VARCHAR, rank VARCHAR)
|
What player has 3 wins and ranks above 3rd?
|
SELECT time_retired FROM table_name_14 WHERE driver = "emerson fittipaldi"
|
CREATE TABLE table_name_14 (time_retired VARCHAR, driver VARCHAR)
|
What is the Time/Retired for emerson fittipaldi?
|
SELECT long FROM table_name_60 WHERE car = 26
|
CREATE TABLE table_name_60 (long VARCHAR, car VARCHAR)
|
What is the long for the player with 26 carries?
|
SELECT COUNT(car) FROM table_name_86 WHERE long = "2"
|
CREATE TABLE table_name_86 (car VARCHAR, long VARCHAR)
|
How many carries for the player with a 2 yard long?
|
SELECT long FROM table_name_78 WHERE car < 30 AND yards = "0"
|
CREATE TABLE table_name_78 (long VARCHAR, car VARCHAR, yards VARCHAR)
|
What is the long for the player with under 30 carries and 0 yards?
|
SELECT AVG(wins) FROM table_name_85 WHERE division = "central" AND reds_season < 2000 AND losses < 81
|
CREATE TABLE table_name_85 (wins INTEGER, losses VARCHAR, division VARCHAR, reds_season VARCHAR)
|
How many wins were there in the 2000 season in the central division with less than 81 losses?
|
SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = "17" AND reds_season = 1989
|
CREATE TABLE table_name_59 (win_percentage INTEGER, reds_season VARCHAR, gb_ VARCHAR, c_ VARCHAR)
|
What was the lowest percentages of wins in 1989 with a GB [c] of 17?
|
SELECT AVG(losses) FROM table_name_61 WHERE mlb_season = "1943"
|
CREATE TABLE table_name_61 (losses INTEGER, mlb_season VARCHAR)
|
How many losses did the 1943 MLB have?
|
SELECT MIN(wins) FROM table_name_74 WHERE finish = "7th" AND win_percentage > 0.429 AND reds_season < 1915
|
CREATE TABLE table_name_74 (wins INTEGER, reds_season VARCHAR, finish VARCHAR, win_percentage VARCHAR)
|
What was the lowest wins in a season less than 1915 with a 7th finish and 0.429 win %?
|
SELECT gb_[c_] FROM table_name_98 WHERE win_percentage < 0.457 AND wins = 62 AND reds_season = 1900
|
CREATE TABLE table_name_98 (gb_ VARCHAR, c_ VARCHAR, reds_season VARCHAR, win_percentage VARCHAR, wins VARCHAR)
|
In 1900 with 62 wins and a win percentage less than 0.457, what was the GB [c]?
|
SELECT record FROM table_name_77 WHERE score = "7β6 (12)"
|
CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR)
|
Which record has a score of 7β6 (12)?
|
SELECT date FROM table_name_62 WHERE record = "59β59"
|
CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR)
|
On what date was the record 59β59?
|
SELECT loss FROM table_name_57 WHERE date = "august 21"
|
CREATE TABLE table_name_57 (loss VARCHAR, date VARCHAR)
|
What loss occurred on August 21?
|
SELECT MAX(1985) FROM table_name_27 WHERE 1990 = 93
|
CREATE TABLE table_name_27 (Id VARCHAR)
|
What is the highest 1985 value that has a 1990 value of 93?
|
SELECT MAX(2000) FROM table_name_51 WHERE 2010 = 82 AND 2005 < 74
|
CREATE TABLE table_name_51 (Id VARCHAR)
|
What is the highest 2000 value that has a 2010 value of 82 and a 2005 value less than 74?
|
SELECT SUM(1995) FROM table_name_7 WHERE year = "jiangxi" AND 2008 > 67
|
CREATE TABLE table_name_7 (year VARCHAR)
|
What is the 1995 value with a Jiangxi year and a 2008 value bigger than 67?
|
SELECT MIN(2009) FROM table_name_18 WHERE 2010 = 141 AND 1985 > 165
|
CREATE TABLE table_name_18 (Id VARCHAR)
|
What is the lowest 2009 value with a 2010 value of 141 and a 1985 value bigger than 165?
|
SELECT SUM(1995) FROM table_name_35 WHERE 2005 > 74 AND 2008 = 84 AND 2000 < 80
|
CREATE TABLE table_name_35 (Id VARCHAR)
|
What is the 1995 value with a 2005 value bigger than 74, a 2008 value of 84, and a 2000 value less than 80?
|
SELECT label FROM table_name_24 WHERE year > 2004
|
CREATE TABLE table_name_24 (label VARCHAR, year INTEGER)
|
What label is after 2004?
|
SELECT format, _special_notes FROM table_name_23 WHERE title = "the pact: ...of the gods"
|
CREATE TABLE table_name_23 (format VARCHAR, _special_notes VARCHAR, title VARCHAR)
|
What is the Format and Special Notes for of the pact: ...of the gods?
|
SELECT title FROM table_name_98 WHERE tracks = "noxialicht"
|
CREATE TABLE table_name_98 (title VARCHAR, tracks VARCHAR)
|
What movie has noxialicht as a track?
|
SELECT MIN(gold) FROM table_name_81 WHERE rank = "12"
|
CREATE TABLE table_name_81 (gold INTEGER, rank VARCHAR)
|
What is the lowest gold medals of a rank 12 team?
|
SELECT COUNT(bronze) FROM table_name_67 WHERE silver > 8 AND total = 50
|
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
|
What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals?
|
SELECT AVG(gold) FROM table_name_65 WHERE nation = "uzbekistan" AND total < 24
|
CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR, total VARCHAR)
|
What is the average gold medals Uzbekistan, which has less than 24 total medals, has?
|
SELECT open_cup FROM table_name_18 WHERE year > 1993
|
CREATE TABLE table_name_18 (open_cup VARCHAR, year INTEGER)
|
Which open cup was after 1993?
|
SELECT AVG(year) FROM table_name_27 WHERE playoffs = "champion"
|
CREATE TABLE table_name_27 (year INTEGER, playoffs VARCHAR)
|
Which year had playoffs of champion?
|
SELECT division FROM table_name_93 WHERE year = 1993
|
CREATE TABLE table_name_93 (division VARCHAR, year VARCHAR)
|
What divisions was in the year 1993?
|
SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = "441st tcg" AND serial = "14"
|
CREATE TABLE table_name_9 (uk_base VARCHAR, troop_carrier_group VARCHAR, serial VARCHAR)
|
Which UK base has 441st tcg Troop carrier group and 14 as their seir serial?
|
SELECT drop_zone AS Time FROM table_name_27 WHERE troop_carrier_group = "439th tcg" AND _number_of_c_47s > 36
|
CREATE TABLE table_name_27 (drop_zone VARCHAR, troop_carrier_group VARCHAR, _number_of_c_47s VARCHAR)
|
What is the Drop Zone time for the 439th tcg Troop Carrier Group with more tham 36 C-47s?
|
SELECT grid FROM table_name_40 WHERE constructor = "maserati" AND laps = 14
|
CREATE TABLE table_name_40 (grid VARCHAR, constructor VARCHAR, laps VARCHAR)
|
What was the grid placement for the Maserati that completed 14 laps?
|
SELECT constructor FROM table_name_69 WHERE driver = "tony brooks"
|
CREATE TABLE table_name_69 (constructor VARCHAR, driver VARCHAR)
|
What company built the car driven by Tony Brooks?
|
SELECT score FROM table_name_54 WHERE date = "may 2"
|
CREATE TABLE table_name_54 (score VARCHAR, date VARCHAR)
|
What is the score on the date of May 2?
|
SELECT visitor FROM table_name_74 WHERE date = "april 30"
|
CREATE TABLE table_name_74 (visitor VARCHAR, date VARCHAR)
|
What city was a visitor on the date of April 30?
|
SELECT visitor FROM table_name_5 WHERE date = "april 22"
|
CREATE TABLE table_name_5 (visitor VARCHAR, date VARCHAR)
|
On the date of April 22, which city was a visitor?
|
SELECT visitor FROM table_name_20 WHERE home = "ottawa" AND date = "april 26"
|
CREATE TABLE table_name_20 (visitor VARCHAR, home VARCHAR, date VARCHAR)
|
What visitor has Ottawa as a home and a date of April 26?
|
SELECT date_of_birth__age_ FROM table_name_46 WHERE player = "paino hehea"
|
CREATE TABLE table_name_46 (date_of_birth__age_ VARCHAR, player VARCHAR)
|
What is Paino Hehea's date of birth?
|
SELECT location FROM table_name_66 WHERE record = "3-0"
|
CREATE TABLE table_name_66 (location VARCHAR, record VARCHAR)
|
I want to know the location that has a record of 3-0
|
SELECT record FROM table_name_63 WHERE round > 1
|
CREATE TABLE table_name_63 (record VARCHAR, round INTEGER)
|
Tell me the record for round more than 1
|
SELECT method FROM table_name_71 WHERE opponent = "jerry bohlander"
|
CREATE TABLE table_name_71 (method VARCHAR, opponent VARCHAR)
|
I want to know the method for opponent of jerry bohlander
|
SELECT player FROM table_name_62 WHERE club = "bologna milan"
|
CREATE TABLE table_name_62 (player VARCHAR, club VARCHAR)
|
Who belongs to the Bologna Milan club?
|
SELECT opponent FROM table_name_23 WHERE date = "june 6"
|
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)
|
Who is the opponent on June 6?
|
SELECT date FROM table_name_67 WHERE field = "commerce bank ballpark"
|
CREATE TABLE table_name_67 (date VARCHAR, field VARCHAR)
|
What is the date of the game at Commerce Bank Ballpark?
|
SELECT result FROM table_name_98 WHERE field = "bishop kearney field" AND date = "august 2"
|
CREATE TABLE table_name_98 (result VARCHAR, field VARCHAR, date VARCHAR)
|
What is the result of the game at Bishop Kearney Field on August 2?
|
SELECT opponent FROM table_name_86 WHERE field = "homewood field"
|
CREATE TABLE table_name_86 (opponent VARCHAR, field VARCHAR)
|
Who was the opponent of the game at Homewood field?
|
SELECT result FROM table_name_24 WHERE field = "bishop kearney field" AND date = "august 2"
|
CREATE TABLE table_name_24 (result VARCHAR, field VARCHAR, date VARCHAR)
|
What is the result of the game at Bishop Kearney Field on August 2?
|
SELECT time FROM table_name_92 WHERE speed = "102.962mph"
|
CREATE TABLE table_name_92 (time VARCHAR, speed VARCHAR)
|
What is the time of the rider with a speed of 102.962mph?
|
SELECT rider FROM table_name_52 WHERE time = "1:27.37.22"
|
CREATE TABLE table_name_52 (rider VARCHAR, time VARCHAR)
|
Who is the rider who had the time of 1:27.37.22?
|
SELECT rider FROM table_name_57 WHERE rank < 10 AND time = "1:26.31.20"
|
CREATE TABLE table_name_57 (rider VARCHAR, rank VARCHAR, time VARCHAR)
|
Who is the rider who has a rank lower than 10, and a time of 1:26.31.20?
|
SELECT date FROM table_name_33 WHERE circuit = "indianapolis"
|
CREATE TABLE table_name_33 (date VARCHAR, circuit VARCHAR)
|
What date was the Circuit of Indianapolis?
|
SELECT constructor FROM table_name_21 WHERE race = "argentine grand prix"
|
CREATE TABLE table_name_21 (constructor VARCHAR, race VARCHAR)
|
Who was the Constructor at the Argentine Grand Prix?
|
SELECT date FROM table_name_83 WHERE circuit = "indianapolis"
|
CREATE TABLE table_name_83 (date VARCHAR, circuit VARCHAR)
|
What was the date of the Circuit of Indianapolis?
|
SELECT winning_driver FROM table_name_96 WHERE race = "argentine grand prix"
|
CREATE TABLE table_name_96 (winning_driver VARCHAR, race VARCHAR)
|
Who was the winning driver of the Argentine Grand Prix?
|
SELECT report FROM table_name_34 WHERE pole_position = "juan manuel fangio" AND tyre = "c"
|
CREATE TABLE table_name_34 (report VARCHAR, pole_position VARCHAR, tyre VARCHAR)
|
What was Juan Manuel Fangio's reported pole position and the tire of C?
|
SELECT SUM(attendance) FROM table_name_59 WHERE home = "montreal" AND date = "march 24"
|
CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, date VARCHAR)
|
What was the Attendance when the Home team was Montreal, on the Date of March 24?
|
SELECT score FROM table_name_8 WHERE date = "march 15"
|
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
|
What was the Score on March 15?
|
SELECT school_club_team FROM table_name_48 WHERE player = "dell curry"
|
CREATE TABLE table_name_48 (school_club_team VARCHAR, player VARCHAR)
|
What school does Dell Curry play for?
|
SELECT school_club_team FROM table_name_35 WHERE player = "john crotty"
|
CREATE TABLE table_name_35 (school_club_team VARCHAR, player VARCHAR)
|
What school does John Crotty play for?
|
SELECT school_club_team FROM table_name_76 WHERE player = "wayne cooper"
|
CREATE TABLE table_name_76 (school_club_team VARCHAR, player VARCHAR)
|
What school does Wayne Cooper play for?
|
SELECT player FROM table_name_84 WHERE long > 8 AND yards = "73"
|
CREATE TABLE table_name_84 (player VARCHAR, long VARCHAR, yards VARCHAR)
|
Who has greater than 8 Long and a 73 Yards?
|
SELECT MAX(long) FROM table_name_84 WHERE yards = "26" AND car < 9
|
CREATE TABLE table_name_84 (long INTEGER, yards VARCHAR, car VARCHAR)
|
Who has a highest Long with 26 Yards and less than 9 Car?
|
SELECT MAX(long) FROM table_name_91 WHERE car = 59
|
CREATE TABLE table_name_91 (long INTEGER, car VARCHAR)
|
Who has the highest Long with 59 Car?
|
SELECT Previous AS rank FROM table_name_92 WHERE nationality = "italy" AND points > 100
|
CREATE TABLE table_name_92 (Previous VARCHAR, nationality VARCHAR, points VARCHAR)
|
Tell me the previous rank for italy with points more than 100
|
SELECT SUM(rank) FROM table_name_58 WHERE nationality = "australia" AND points < 79
|
CREATE TABLE table_name_58 (rank INTEGER, nationality VARCHAR, points VARCHAR)
|
Tell me the sum of rank for australia when points are less than 79
|
SELECT s_motor_ship___s_naval_trawler FROM table_name_13 WHERE grand_total = 20
|
CREATE TABLE table_name_13 (s_motor_ship___s_naval_trawler VARCHAR, grand_total VARCHAR)
|
How many ships for the nation with grand total of 20?
|
SELECT escorts FROM table_name_74 WHERE cruisers = "6"
|
CREATE TABLE table_name_74 (escorts VARCHAR, cruisers VARCHAR)
|
How many escorts does the nation with 6 cruisers have?
|
SELECT street_address FROM table_name_70 WHERE floors = 44
|
CREATE TABLE table_name_70 (street_address VARCHAR, floors VARCHAR)
|
Which address has 44 floors?
|
SELECT AVG(total__kg_) FROM table_name_22 WHERE bodyweight = 73.28 AND snatch < 75
|
CREATE TABLE table_name_22 (total__kg_ INTEGER, bodyweight VARCHAR, snatch VARCHAR)
|
What is the total for the person with 73.28 bodyweight and fewer snatches than 75?
|
SELECT name FROM table_name_15 WHERE bodyweight = 73.6
|
CREATE TABLE table_name_15 (name VARCHAR, bodyweight VARCHAR)
|
Which person has a bodyweight of 73.6?
|
SELECT AVG(total__kg_) FROM table_name_7 WHERE snatch > 87.5 AND bodyweight > 74.8
|
CREATE TABLE table_name_7 (total__kg_ INTEGER, snatch VARCHAR, bodyweight VARCHAR)
|
What is the total for the player with more snatches than 87.5 and bodyweight more than 74.8?
|
SELECT SUM(bodyweight) FROM table_name_91 WHERE clean_ & _jerk = 82.5 AND total__kg_ < 152.5
|
CREATE TABLE table_name_91 (bodyweight INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
|
What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5?
|
SELECT home_team AS score FROM table_name_75 WHERE away_team = "essendon"
|
CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR)
|
Name the home team when the away team was essendon
|
SELECT away_team AS score FROM table_name_36 WHERE home_team = "university"
|
CREATE TABLE table_name_36 (away_team VARCHAR, home_team VARCHAR)
|
Name the away team score for home team of university
|
SELECT venue FROM table_name_54 WHERE away_team = "geelong"
|
CREATE TABLE table_name_54 (venue VARCHAR, away_team VARCHAR)
|
Name the venue for geelong away team
|
SELECT venue FROM table_name_6 WHERE away_team = "richmond"
|
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
|
Name the venue when the away team was richmond
|
SELECT away_team AS score FROM table_name_25 WHERE away_team = "geelong"
|
CREATE TABLE table_name_25 (away_team VARCHAR)
|
Name the away team score for geelong away team
|
SELECT home_team AS score FROM table_name_32 WHERE venue = "brunswick street oval"
|
CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR)
|
When the venue was brunswick street oval what was the home teams score?
|
SELECT SUM(draw) FROM table_name_18 WHERE artist = "wendy fierce"
|
CREATE TABLE table_name_18 (draw INTEGER, artist VARCHAR)
|
How many draws feature artist wendy fierce?
|
SELECT song FROM table_name_77 WHERE place > 2 AND draw = 1
|
CREATE TABLE table_name_77 (song VARCHAR, place VARCHAR, draw VARCHAR)
|
What song is later than place 2 and has a draw number of 1?
|
SELECT date FROM table_name_64 WHERE home_team = "collingwood"
|
CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR)
|
What day did Collingwood play as the home team?
|
SELECT away_team FROM table_name_26 WHERE venue = "princes park"
|
CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR)
|
Who was the away team at Princes Park?
|
SELECT away_team FROM table_name_68 WHERE home_team = "hawthorn"
|
CREATE TABLE table_name_68 (away_team VARCHAR, home_team VARCHAR)
|
Who was Hawthorn's away opponent?
|
SELECT record FROM table_name_45 WHERE streak = "l1" AND score = "l 95β111"
|
CREATE TABLE table_name_45 (record VARCHAR, streak VARCHAR, score VARCHAR)
|
Name the record that has a stream of l1 and score of l 95β111
|
SELECT attendance FROM table_name_71 WHERE visitor = "washington wizards"
|
CREATE TABLE table_name_71 (attendance VARCHAR, visitor VARCHAR)
|
Name the attendance for when the washington wizards was visiting
|
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.