answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT SUM(team_wins) FROM table_name_60 WHERE individual_winners < 1 AND total_wins > 1 | CREATE TABLE table_name_60 (team_wins INTEGER, individual_winners VARCHAR, total_wins VARCHAR) | Which Team wins has an Individual winner smaller than 1 and Total win larger than 1? |
SELECT MAX(team_wins) FROM table_name_48 WHERE nation = "sweden" AND individual_wins < 1 | CREATE TABLE table_name_48 (team_wins INTEGER, nation VARCHAR, individual_wins VARCHAR) | Which Team Win is from sweden and has a Individual win smaller than 1 |
SELECT original_channel FROM table_name_19 WHERE programme = "going for gold" | CREATE TABLE table_name_19 (original_channel VARCHAR, programme VARCHAR) | Which channel did Going for Gold air on? |
SELECT new_channel_s_ FROM table_name_19 WHERE programme = "gladiators" | CREATE TABLE table_name_19 (new_channel_s_ VARCHAR, programme VARCHAR) | What channel is Gladiators on? |
SELECT date_s__of_return FROM table_name_67 WHERE original_channel = "bbc one" AND programme = "going for gold" | CREATE TABLE table_name_67 (date_s__of_return VARCHAR, original_channel VARCHAR, programme VARCHAR) | When did Going for Gold return in BBC One? |
SELECT faith FROM table_name_40 WHERE name = "belswains" | CREATE TABLE table_name_40 (faith VARCHAR, name VARCHAR) | Which faith has a name of Belswains? |
SELECT name FROM table_name_62 WHERE type = "primary" AND dcsf_number = 2045 | CREATE TABLE table_name_62 (name VARCHAR, type VARCHAR, dcsf_number VARCHAR) | Which school is a primary school with DCSF number 2045? |
SELECT position FROM table_name_96 WHERE round < 3 AND overall < 48 | CREATE TABLE table_name_96 (position VARCHAR, round VARCHAR, overall VARCHAR) | Which position had fewer rounds than 3, and an overall of less than 48? |
SELECT MAX(pick__number) FROM table_name_2 WHERE name = "adam podlesh" AND overall < 101 | CREATE TABLE table_name_2 (pick__number INTEGER, name VARCHAR, overall VARCHAR) | Which highest pick number's name was Adam Podlesh, when the overall was less than 101? |
SELECT ihsaa_class FROM table_name_97 WHERE city = "batesville" | CREATE TABLE table_name_97 (ihsaa_class VARCHAR, city VARCHAR) | What is the IHSAA class in Batesville? |
SELECT city FROM table_name_84 WHERE ihsaa_football_class = "aaa" AND enrollment < 676 AND school = "lawrenceburg" | CREATE TABLE table_name_84 (city VARCHAR, school VARCHAR, ihsaa_football_class VARCHAR, enrollment VARCHAR) | Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in? |
SELECT school FROM table_name_34 WHERE city = "brookville" | CREATE TABLE table_name_34 (school VARCHAR, city VARCHAR) | What school is in Brookville? |
SELECT score FROM table_name_29 WHERE record = "36β61" | CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) | Which Score has a Record of 36β61? |
SELECT MIN(attendance) FROM table_name_63 WHERE record = "34β51" | CREATE TABLE table_name_63 (attendance INTEGER, record VARCHAR) | Which Attendance has a Record of 34β51? |
SELECT loss FROM table_name_71 WHERE date = "july 2" | CREATE TABLE table_name_71 (loss VARCHAR, date VARCHAR) | Which Loss has a Date of july 2? |
SELECT tournament FROM table_name_4 WHERE 2001 = "a" AND 2008 = "a" AND 2010 = "qf" | CREATE TABLE table_name_4 (tournament VARCHAR) | Which tournament's 2001 and 2008 were a when 2010 was qf? |
SELECT tournament FROM table_name_25 WHERE 2001 = "a" AND 2006 = "a" | CREATE TABLE table_name_25 (tournament VARCHAR) | Which tournament's 2001 and 2006s were a? |
SELECT 2007 FROM table_name_60 WHERE 2009 = "qf" AND 2000 = "a" | CREATE TABLE table_name_60 (Id VARCHAR) | Which 2007 had a 2009 taht was qf when its 2000 was a? |
SELECT 2008 FROM table_name_16 WHERE 1998 = "a" AND 2009 = "sf" AND 2006 = "a" | CREATE TABLE table_name_16 (Id VARCHAR) | Which 2008 had a 1998 and 2006 that were a when 2009 was sf? |
SELECT AVG(floors) FROM table_name_10 WHERE name = "citic square" | CREATE TABLE table_name_10 (floors INTEGER, name VARCHAR) | What is the number of floors for the Citic Square? |
SELECT height_m___ft FROM table_name_26 WHERE name = "shanghai world plaza" | CREATE TABLE table_name_26 (height_m___ft VARCHAR, name VARCHAR) | What is the height for the Shanghai World Plaza? |
SELECT MAX(week) FROM table_name_76 WHERE attendance < 51 OFFSET 423 | CREATE TABLE table_name_76 (week INTEGER, attendance INTEGER) | What week had a lower attendance than 51,423 but was still higher than the other weeks? |
SELECT MAX(vertices) FROM table_name_28 WHERE dual_archimedean_solid = "truncated dodecahedron" | CREATE TABLE table_name_28 (vertices INTEGER, dual_archimedean_solid VARCHAR) | Which Vertices have a Dual Archimedean solid of truncated dodecahedron? |
SELECT MIN(edges) FROM table_name_29 WHERE dual_archimedean_solid = "truncated icosidodecahedron" AND vertices > 62 | CREATE TABLE table_name_29 (edges INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR) | Which Edges have a Dual Archimedean solid of truncated icosidodecahedron, and Vertices larger than 62? |
SELECT AVG(faces) FROM table_name_39 WHERE dual_archimedean_solid = "truncated icosahedron" AND vertices > 32 | CREATE TABLE table_name_39 (faces INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR) | Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32? |
SELECT set_2 FROM table_name_70 WHERE set_3 = "20β25" | CREATE TABLE table_name_70 (set_2 VARCHAR, set_3 VARCHAR) | Which Set 2 has a Set 3 of 20β25? |
SELECT total FROM table_name_26 WHERE set_2 = "20β25" AND score = "1β3" | CREATE TABLE table_name_26 (total VARCHAR, set_2 VARCHAR, score VARCHAR) | Which Total has a Set 2 of 20β25, and a Score of 1β3? |
SELECT set_3 FROM table_name_86 WHERE score = "3β2" AND set_2 = "25β23" AND time = "19:00" | CREATE TABLE table_name_86 (set_3 VARCHAR, time VARCHAR, score VARCHAR, set_2 VARCHAR) | Which Set 3 has a Score of 3β2, and a Set 2 of 25β23, and a Time of 19:00? |
SELECT total FROM table_name_9 WHERE score = "1β3" AND set_1 = "29β31" | CREATE TABLE table_name_9 (total VARCHAR, score VARCHAR, set_1 VARCHAR) | Which Total has a Score of 1β3, and a Set 1 of 29β31? |
SELECT date FROM table_name_62 WHERE time = "11:00" AND set_3 = "25β18" | CREATE TABLE table_name_62 (date VARCHAR, time VARCHAR, set_3 VARCHAR) | Which Date has a Time of 11:00, and a Set 3 of 25β18? |
SELECT total FROM table_name_53 WHERE set_3 = "13β25" | CREATE TABLE table_name_53 (total VARCHAR, set_3 VARCHAR) | Which Total has a Set 3 of 13β25? |
SELECT result FROM table_name_98 WHERE category = "best musical revival" | CREATE TABLE table_name_98 (result VARCHAR, category VARCHAR) | What was the result for the best musical revival category? |
SELECT area_served FROM table_name_46 WHERE on_air_id = "abc canberra" | CREATE TABLE table_name_46 (area_served VARCHAR, on_air_id VARCHAR) | Name the area served for on-air ID of abc canberra |
SELECT frequency FROM table_name_18 WHERE on_air_id = "1way fm" | CREATE TABLE table_name_18 (frequency VARCHAR, on_air_id VARCHAR) | Name the frequency with on-air ID of 1way fm |
SELECT purpose FROM table_name_13 WHERE on_air_id = "2xx" | CREATE TABLE table_name_13 (purpose VARCHAR, on_air_id VARCHAR) | Name the purpose for on-air ID of 2xx |
SELECT frequency FROM table_name_79 WHERE purpose = "community" AND callsign = "1vfm" | CREATE TABLE table_name_79 (frequency VARCHAR, purpose VARCHAR, callsign VARCHAR) | Name the frequency for community purpose and callsign of 1vfm |
SELECT band FROM table_name_88 WHERE frequency = "102.3" | CREATE TABLE table_name_88 (band VARCHAR, frequency VARCHAR) | Name the band with frequency of 102.3 |
SELECT loss FROM table_name_4 WHERE opponent = "la new bears" AND save = "mac suzuki" | CREATE TABLE table_name_4 (loss VARCHAR, opponent VARCHAR, save VARCHAR) | What was the loss of the game against with LA New Bears with a save of Mac Suzuki? |
SELECT date FROM table_name_74 WHERE save = "||3,073" | CREATE TABLE table_name_74 (date VARCHAR, save VARCHAR) | What was the date of the game with a save of ||3,073? |
SELECT 2004 FROM table_name_41 WHERE tournament = "french open" | CREATE TABLE table_name_41 (tournament VARCHAR) | Which 2004 has a Tournament of french open? |
SELECT 2003 FROM table_name_99 WHERE 2013 = "1r" AND 2007 = "2r" | CREATE TABLE table_name_99 (Id VARCHAR) | Which 2003 has a 2013 of 1r, and a 2007 of 2r? |
SELECT 2007 FROM table_name_32 WHERE tournament = "grand slam sr" | CREATE TABLE table_name_32 (tournament VARCHAR) | Which 2007 has a Tournament of grand slam sr? |
SELECT 2008 FROM table_name_54 WHERE career_win_loss = "25β40" | CREATE TABLE table_name_54 (career_win_loss VARCHAR) | Which 2008 has a Career Win-Loss of 25β40? |
SELECT career_win_loss FROM table_name_76 WHERE 2001 = "1β1" | CREATE TABLE table_name_76 (career_win_loss VARCHAR) | Which Career Win-Loss has a 2001 of 1β1? |
SELECT 2012 FROM table_name_75 WHERE 2007 = "1r" AND 2008 = "1r" AND 2013 = "2r" | CREATE TABLE table_name_75 (Id VARCHAR) | Which 2012 has a 2007 of 1r, and a 2008 of 1r, and a 2013 of 2r? |
SELECT college_junior_club_team__league_ FROM table_name_11 WHERE round = 9 AND nationality = "canada" | CREATE TABLE table_name_11 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR) | What college or club did the round 9 draft pick from Canada come from? |
SELECT player FROM table_name_43 WHERE round > 5 AND college_junior_club_team__league_ = "dynamo-2 moscow (rus)" | CREATE TABLE table_name_43 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR) | Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5? |
SELECT position FROM table_name_72 WHERE nationality = "finland" | CREATE TABLE table_name_72 (position VARCHAR, nationality VARCHAR) | What position does the draft pick from Finland play? |
SELECT MIN(round) FROM table_name_43 WHERE player = "ian forbes" | CREATE TABLE table_name_43 (round INTEGER, player VARCHAR) | What is the lowest round number that Ian Forbes was picked in the draft? |
SELECT coach FROM table_name_19 WHERE year = "1953" | CREATE TABLE table_name_19 (coach VARCHAR, year VARCHAR) | Who was the coach in 1953? |
SELECT time FROM table_name_82 WHERE nfl_recap = "recap" AND game_site = "arrowhead stadium" | CREATE TABLE table_name_82 (time VARCHAR, nfl_recap VARCHAR, game_site VARCHAR) | What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap? |
SELECT opponent FROM table_name_97 WHERE game_site = "arrowhead stadium" | CREATE TABLE table_name_97 (opponent VARCHAR, game_site VARCHAR) | What was the Opponent at Arrowhead Stadium? |
SELECT result FROM table_name_88 WHERE week > 4 AND time = "5:15 p.m." AND record = "4β7" | CREATE TABLE table_name_88 (result VARCHAR, record VARCHAR, week VARCHAR, time VARCHAR) | What was the Result of the game after Week 4 with a Time of 5:15 p.m. and a Record of 4β7? |
SELECT MAX(november) FROM table_name_80 WHERE record = "11-7-3" AND game > 21 | CREATE TABLE table_name_80 (november INTEGER, record VARCHAR, game VARCHAR) | When in November were they 11-7-3 with over 21 games? |
SELECT school FROM table_name_54 WHERE team_name = "trojans" | CREATE TABLE table_name_54 (school VARCHAR, team_name VARCHAR) | What school had a team name of the Trojans? |
SELECT date FROM table_name_50 WHERE site = "michigan stadium β’ ann arbor, mi" | CREATE TABLE table_name_50 (date VARCHAR, site VARCHAR) | What date was the Site michigan stadium β’ ann arbor, mi? |
SELECT site FROM table_name_34 WHERE result = "l7-33" | CREATE TABLE table_name_34 (site VARCHAR, result VARCHAR) | What is the site of the game with a Result of l7-33? |
SELECT opponent FROM table_name_6 WHERE result = "w48-0" | CREATE TABLE table_name_6 (opponent VARCHAR, result VARCHAR) | What is the name of the Opponent when the Result was w48-0? |
SELECT date FROM table_name_45 WHERE site = "memorial stadium β’ minneapolis, mn" AND opponent = "northwestern" | CREATE TABLE table_name_45 (date VARCHAR, site VARCHAR, opponent VARCHAR) | What is the Date at memorial stadium β’ minneapolis, mn, and an Opponent of northwestern? |
SELECT result FROM table_name_63 WHERE date = "10/11/1930" | CREATE TABLE table_name_63 (result VARCHAR, date VARCHAR) | What is the Result of the game on 10/11/1930? |
SELECT COUNT(game) FROM table_name_65 WHERE opponent = "buffalo sabres" | CREATE TABLE table_name_65 (game VARCHAR, opponent VARCHAR) | What is the total number of games played against the Buffalo Sabres? |
SELECT SUM(april) FROM table_name_50 WHERE points = 95 AND record = "41β25β10β3" AND game < 79 | CREATE TABLE table_name_50 (april INTEGER, game VARCHAR, points VARCHAR, record VARCHAR) | Which April has Points of 95, and a Record of 41β25β10β3, and a Game smaller than 79? |
SELECT COUNT(points) FROM table_name_49 WHERE score = "1β3" AND game > 82 | CREATE TABLE table_name_49 (points VARCHAR, score VARCHAR, game VARCHAR) | How many Points have a Score of 1β3, and a Game larger than 82? |
SELECT MIN(game) FROM table_name_14 WHERE points < 92 | CREATE TABLE table_name_14 (game INTEGER, points INTEGER) | Which Game is the lowest one that has Points smaller than 92? |
SELECT MAX(april) FROM table_name_4 WHERE score = "2β4" AND game < 76 | CREATE TABLE table_name_4 (april INTEGER, score VARCHAR, game VARCHAR) | Which April is the smallest one that has a Score of 2β4, and a Game smaller than 76? |
SELECT MAX(points) FROM table_name_88 WHERE difference = "1" AND drawn = 0 | CREATE TABLE table_name_88 (points INTEGER, difference VARCHAR, drawn VARCHAR) | What is the high point total associated with a difference of 1 and 0 draws? |
SELECT COUNT(position) FROM table_name_83 WHERE difference = "- 6" AND lost = 3 AND drawn > 4 | CREATE TABLE table_name_83 (position VARCHAR, drawn VARCHAR, difference VARCHAR, lost VARCHAR) | What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws? |
SELECT round FROM table_name_56 WHERE scorers = "di matteo" | CREATE TABLE table_name_56 (round VARCHAR, scorers VARCHAR) | Which round has the scorer of Di Matteo? |
SELECT MIN(attendance) FROM table_name_59 WHERE result = "2-0" | CREATE TABLE table_name_59 (attendance INTEGER, result VARCHAR) | What is the lowest attendance of a game that has the result of 2-0? |
SELECT metric_value FROM table_name_4 WHERE unit = "dolia" | CREATE TABLE table_name_4 (metric_value VARCHAR, unit VARCHAR) | What Metric value has a Unit of dolia? |
SELECT russian FROM table_name_60 WHERE ratio = "40" | CREATE TABLE table_name_60 (russian VARCHAR, ratio VARCHAR) | What Russian has a Ratio of 40? |
SELECT avoirdupois_value FROM table_name_37 WHERE russian = "Π±Π΅ΡΠΊΠΎΠ²Π΅Ρ" | CREATE TABLE table_name_37 (avoirdupois_value VARCHAR, russian VARCHAR) | What Avoirdupois value has a Russian of Π±Π΅ΡΠΊΠΎΠ²Π΅Ρ? |
SELECT russian FROM table_name_16 WHERE avoirdupois_value = "0.686 gr" | CREATE TABLE table_name_16 (russian VARCHAR, avoirdupois_value VARCHAR) | What Russian has an Avoirdupois value of 0.686 gr? |
SELECT unit FROM table_name_55 WHERE ratio = "1/32" | CREATE TABLE table_name_55 (unit VARCHAR, ratio VARCHAR) | What Unit has a Ratio of 1/32? |
SELECT ratio FROM table_name_57 WHERE unit = "zolotnik" | CREATE TABLE table_name_57 (ratio VARCHAR, unit VARCHAR) | What Ratio has a Unit of zolotnik? |
SELECT player FROM table_name_21 WHERE position = "wr" AND school_club_team = "new mexico" | CREATE TABLE table_name_21 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) | What player from New Mexico plays the WR position? |
SELECT uni_number FROM table_name_22 WHERE bats = "r" AND surname = "timms" | CREATE TABLE table_name_22 (uni_number VARCHAR, bats VARCHAR, surname VARCHAR) | What's the Uni# of Timms, who has bats of R? |
SELECT opponent FROM table_name_37 WHERE game = 29 | CREATE TABLE table_name_37 (opponent VARCHAR, game VARCHAR) | What team were the Opponent in Game 29? |
SELECT first_contact_with_hitler FROM table_name_60 WHERE age_at_death = "31" | CREATE TABLE table_name_60 (first_contact_with_hitler VARCHAR, age_at_death VARCHAR) | When did the woman who died at 31 first contact Hitlers? |
SELECT relationship FROM table_name_95 WHERE age_at_death = "96" | CREATE TABLE table_name_95 (relationship VARCHAR, age_at_death VARCHAR) | What is the relationship of the woman who died at 96? |
SELECT life FROM table_name_93 WHERE name = "stefanie rabatsch" | CREATE TABLE table_name_93 (life VARCHAR, name VARCHAR) | What is the lifespan of Stefanie Rabatsch? |
SELECT car__number FROM table_name_72 WHERE driver = "brendan gaughan" | CREATE TABLE table_name_72 (car__number VARCHAR, driver VARCHAR) | What is Brendan Gaughan's Car #? |
SELECT COUNT(car__number) FROM table_name_74 WHERE make = "chevrolet" AND driver = "mike skinner" | CREATE TABLE table_name_74 (car__number VARCHAR, make VARCHAR, driver VARCHAR) | What is Mike Skinner's Chevrolet's Car #? |
SELECT pos FROM table_name_29 WHERE driver = "brendan gaughan" | CREATE TABLE table_name_29 (pos VARCHAR, driver VARCHAR) | What is Driver Brendan Gaughan's Pos? |
SELECT 2009 FROM table_name_36 WHERE total > 1 AND 2010 = "4th" | CREATE TABLE table_name_36 (total VARCHAR) | What was the 2009 value for a total over 1 and 4th on 2010? |
SELECT laps FROM table_name_76 WHERE time_retired = "+16.445" | CREATE TABLE table_name_76 (laps VARCHAR, time_retired VARCHAR) | What is the number of laps for the Time/Retired of +16.445? |
SELECT laps FROM table_name_17 WHERE constructor = "honda" AND grid = "13" | CREATE TABLE table_name_17 (laps VARCHAR, constructor VARCHAR, grid VARCHAR) | What is the number of laps for the honda vehicle, with a grid of 13? |
SELECT constructor FROM table_name_15 WHERE driver = "timo glock" | CREATE TABLE table_name_15 (constructor VARCHAR, driver VARCHAR) | What is the name of the company that constructed the vehicle for Timo Glock? |
SELECT grid FROM table_name_99 WHERE driver = "rubens barrichello" | CREATE TABLE table_name_99 (grid VARCHAR, driver VARCHAR) | What is the Grid for Rubens Barrichello? |
SELECT time_retired FROM table_name_80 WHERE constructor = "bmw sauber" AND driver = "nick heidfeld" | CREATE TABLE table_name_80 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) | What is the Time/Retired for the BMW Sauber, and Nick Heidfeld? |
SELECT COUNT(april) FROM table_name_61 WHERE game > 83 | CREATE TABLE table_name_61 (april VARCHAR, game INTEGER) | What were the total number of games in April greater than 83? |
SELECT MIN(games) AS β FROM table_name_88 WHERE position = "wlb" | CREATE TABLE table_name_88 (games INTEGER, position VARCHAR) | Which Gamesβ is the lowest one that has a Position of wlb? |
SELECT MIN(games) AS β FROM table_name_88 WHERE number = 98 | CREATE TABLE table_name_88 (games INTEGER, number VARCHAR) | Which Gamesβ is the lowest one that has a Number of 98? |
SELECT height FROM table_name_28 WHERE name = "josh tabb" | CREATE TABLE table_name_28 (height VARCHAR, name VARCHAR) | What is the height of Josh Tabb? |
SELECT series_ep FROM table_name_22 WHERE segment_c = "stetson hats (part 1)" | CREATE TABLE table_name_22 (series_ep VARCHAR, segment_c VARCHAR) | What series episode has stetson hats (part 1) under segment C? |
SELECT segment_c FROM table_name_22 WHERE segment_b = "s cuckoo clock" | CREATE TABLE table_name_22 (segment_c VARCHAR, segment_b VARCHAR) | What is under segment C when s cuckoo clock is under segment B? |
SELECT segment_c FROM table_name_92 WHERE segment_b = "s pineapple" | CREATE TABLE table_name_92 (segment_c VARCHAR, segment_b VARCHAR) | When segment B is s pineapple, what is the segment C? |
SELECT series_ep FROM table_name_80 WHERE segment_b = "jukeboxes" | CREATE TABLE table_name_80 (series_ep VARCHAR, segment_b VARCHAR) | What series episode has jukeboxes as segment B? |
SELECT MIN(week) FROM table_name_53 WHERE result = "w 30-3" AND attendance < 62 OFFSET 795 | CREATE TABLE table_name_53 (week INTEGER, result VARCHAR, attendance VARCHAR) | What week ended in a result of w 30-3, and had an attendance less than 62,795? |
SELECT format FROM table_name_51 WHERE catalog = 61298 AND date = "september 1984" | CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR, date VARCHAR) | Which Format has a Catalog of 61298, and a Date of september 1984? |
Subsets and Splits