context stringlengths 27 489 | question stringlengths 12 244 | answer stringlengths 18 557 |
|---|---|---|
CREATE TABLE table_name_53 (Id VARCHAR) | Name the sum of 2010 for 2000 of 17 and 2005 more than 16 | SELECT SUM(2010) FROM table_name_53 WHERE 2000 = 17 AND 2005 > 16 |
CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR) | What is the total of crowd at Venue of mcg? | SELECT SUM(crowd) FROM table_name_7 WHERE venue = "mcg" |
CREATE TABLE table_name_76 (region VARCHAR, area__km_2__ VARCHAR) | Tell me the number of regions with an area of 58.81 | SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81 |
CREATE TABLE table_name_63 (rank VARCHAR, bronze INTEGER) | what is the rank when the bronze is less than 0? | SELECT COUNT(rank) FROM table_name_63 WHERE bronze < 0 |
CREATE TABLE table_name_83 (rank INTEGER, bronze VARCHAR, total VARCHAR) | what is the highest rank when the bronze is less than 1 and the total is less than 1? | SELECT MAX(rank) FROM table_name_83 WHERE bronze < 1 AND total < 1 |
CREATE TABLE table_name_70 (silver INTEGER, gold INTEGER) | what is the lowest amount of silver when the gold is less than 0? | SELECT MIN(silver) FROM table_name_70 WHERE gold < 0 |
CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER) | what is the average number of gold when the rank is more than 5? | SELECT AVG(gold) FROM table_name_5 WHERE rank > 5 |
CREATE TABLE table_name_50 (silver INTEGER, gold VARCHAR, nation VARCHAR) | what is the highest amount of silver when gold is 0 for soviet union? | SELECT MAX(silver) FROM table_name_50 WHERE gold = 0 AND nation = "soviet union" |
CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) | What position does adam rachel play? | SELECT position FROM table_name_35 WHERE player = "adam rachel" |
CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR) | What player has over 1 first apperance and over 32 first team goals? | SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32 |
CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR) | What is the average speed for ships before 1974 with over 1.73 passengers? | SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73 |
CREATE TABLE table_name_11 (vessels VARCHAR, ship_name VARCHAR) | How many vessels are named aqua jewel? | SELECT COUNT(vessels) FROM table_name_11 WHERE ship_name = "aqua jewel" |
CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR) | How many districts in Baltimore City does Cheryl Glenn dictate? | SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn" |
CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR) | Which party belongs to district 41, and is delegated by Jill P. Carter? | SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter" |
CREATE TABLE table_name_31 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR) | Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee? | SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = "health and government operations" |
CREATE TABLE table_name_24 (place_of_birth VARCHAR, committee VARCHAR, district VARCHAR) | Where was the delegate belonging to the Judiciary committee of district 43 born? | SELECT place_of_birth FROM table_name_24 WHERE committee = "judiciary" AND district = 43 |
CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR) | What is the largest district for delegate Cheryl Glenn, that she had taken after 2006? | SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 2006 |
CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR) | What is the highest placing for marie mcneil / robert mccall, with less than 168.58? | SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58 |
CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR) | What was the date of the Mavericks home game? | SELECT date FROM table_name_25 WHERE home = "mavericks" |
CREATE TABLE table_name_12 (displacement__cc_ INTEGER, model VARCHAR) | What is the highest displacement value for the R Fwd Auto Phase1? | SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1" |
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR) | What team played at lake oval while away? | SELECT away_team FROM table_name_51 WHERE venue = "lake oval" |
CREATE TABLE table_name_18 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) | Name the number of silver when gold is less than 1 and bronze is 0 when total is less than 2 | SELECT COUNT(silver) FROM table_name_18 WHERE gold < 1 AND bronze = 0 AND total < 2 |
CREATE TABLE table_name_88 (traffic_direction VARCHAR, street VARCHAR) | What is the traffic direction of 70th street? | SELECT traffic_direction FROM table_name_88 WHERE street = "70th street" |
CREATE TABLE table_name_8 (traffic_direction VARCHAR, street VARCHAR, west VARCHAR, _number_of_lanes VARCHAR) | What is the traffic direction of 64th street with 2nd avenue to the west and 1 lane? | SELECT traffic_direction FROM table_name_8 WHERE west = "2nd avenue" AND _number_of_lanes = "1" AND street = "64th street" |
CREATE TABLE table_name_94 (traffic_direction VARCHAR, street VARCHAR) | What is the traffic direction of 97th street? | SELECT traffic_direction FROM table_name_94 WHERE street = "97th street" |
CREATE TABLE table_name_43 (_number_of_lanes VARCHAR, street VARCHAR) | What is the # of lanes on 20th street? | SELECT _number_of_lanes FROM table_name_43 WHERE street = "20th street" |
CREATE TABLE table_name_40 (driver VARCHAR, entrant VARCHAR) | Who drove the Marlboro Mclaren Peugeot? | SELECT driver FROM table_name_40 WHERE entrant = "marlboro mclaren peugeot" |
CREATE TABLE table_name_93 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR) | What tyre did Mika Salo use for team Lotus? | SELECT tyre FROM table_name_93 WHERE entrant = "team lotus" AND driver = "mika salo" |
CREATE TABLE table_name_99 (driver VARCHAR, entrant VARCHAR) | Which driver drove the Tourtel Larrousse F1? | SELECT driver FROM table_name_99 WHERE entrant = "tourtel larrousse f1" |
CREATE TABLE table_name_92 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR) | Who constructed Gerhard Berger car that went all rounds? | SELECT constructor FROM table_name_92 WHERE rounds = "all" AND driver = "gerhard berger" |
CREATE TABLE table_name_64 (visitor VARCHAR, home VARCHAR, record VARCHAR) | Who visited phoenix with a Record of 2–5–0? | SELECT visitor FROM table_name_64 WHERE home = "phoenix" AND record = "2–5–0" |
CREATE TABLE table_name_17 (decision VARCHAR, record VARCHAR) | What decision had a Record of 3–5–0? | SELECT decision FROM table_name_17 WHERE record = "3–5–0" |
CREATE TABLE table_name_38 (attendance INTEGER, home VARCHAR, record VARCHAR) | What is the low attendance was based in phoenix with a Record of 1–0–0? | SELECT MIN(attendance) FROM table_name_38 WHERE home = "phoenix" AND record = "1–0–0" |
CREATE TABLE table_name_88 (score VARCHAR, home VARCHAR, record VARCHAR) | What was the score did phoenix have with a Record of 3–6–0 at home? | SELECT score FROM table_name_88 WHERE home = "phoenix" AND record = "3–6–0" |
CREATE TABLE table_name_95 (record VARCHAR, home VARCHAR) | What was the record while at home in Anaheim? | SELECT record FROM table_name_95 WHERE home = "anaheim" |
CREATE TABLE table_name_86 (inning VARCHAR, team VARCHAR, date VARCHAR) | Which inning were the Minnesota Twins in on 06-07-1961? | SELECT inning FROM table_name_86 WHERE team = "minnesota twins" AND date = "06-07-1961" |
CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) | Who was the away team at the game held at Arden Street Oval? | SELECT away_team FROM table_name_16 WHERE venue = "arden street oval" |
CREATE TABLE table_name_91 (venue VARCHAR, away_team VARCHAR) | What is the name of the venue that away team footscray played at? | SELECT venue FROM table_name_91 WHERE away_team = "footscray" |
CREATE TABLE table_name_74 (date VARCHAR, venue VARCHAR) | What date was the game played at princes park? | SELECT date FROM table_name_74 WHERE venue = "princes park" |
CREATE TABLE table_name_75 (track VARCHAR, recorded VARCHAR) | How many tracks were Recorded 1964-01-08? | SELECT COUNT(track) FROM table_name_75 WHERE recorded = "1964-01-08" |
CREATE TABLE table_name_61 (translation VARCHAR, composer VARCHAR) | WhatTranslation has a Composer of jacques brel, rod mckuen? | SELECT translation FROM table_name_61 WHERE composer = "jacques brel, rod mckuen" |
CREATE TABLE table_name_31 (recorded VARCHAR, track VARCHAR, translation VARCHAR) | Which recording has a Track larger than 2, and a Translation of the last meal? | SELECT recorded FROM table_name_31 WHERE track > 2 AND translation = "the last meal" |
CREATE TABLE table_name_90 (title VARCHAR, track VARCHAR) | Which title has a Track of 3? | SELECT title FROM table_name_90 WHERE track = 3 |
CREATE TABLE table_name_9 (date VARCHAR, home VARCHAR, record VARCHAR) | When was the home game when the New Jersey team's record became 7-23-7? | SELECT date FROM table_name_9 WHERE home = "new jersey" AND record = "7-23-7" |
CREATE TABLE table_name_86 (college VARCHAR, pick VARCHAR) | What college has a pick of 11? | SELECT college FROM table_name_86 WHERE pick = 11 |
CREATE TABLE table_name_28 (pick INTEGER, college VARCHAR) | What is the average pick of Florida State? | SELECT AVG(pick) FROM table_name_28 WHERE college = "florida state" |
CREATE TABLE table_name_63 (pick INTEGER, college VARCHAR) | What is the average pick of San Diego State? | SELECT AVG(pick) FROM table_name_63 WHERE college = "san diego state" |
CREATE TABLE table_name_64 (fs VARCHAR, sp INTEGER, name VARCHAR, placings VARCHAR) | What is the lowest value for SP+FS for Miljan Begovic with a greater than 189 place? | SELECT MIN(sp) + fs FROM table_name_64 WHERE name = "miljan begovic" AND placings > 189 |
CREATE TABLE table_name_42 (points INTEGER, rank VARCHAR, name VARCHAR) | What is the average points value for a rank less than 12 for David Santee? | SELECT AVG(points) FROM table_name_42 WHERE rank < 12 AND name = "david santee" |
CREATE TABLE table_name_44 (rank VARCHAR, points VARCHAR, sp VARCHAR, fs VARCHAR) | What is the total number for Rank with 185.16 points and a SP+FS value greater than 5? | SELECT COUNT(rank) FROM table_name_44 WHERE points = 185.16 AND sp + fs > 5 |
CREATE TABLE table_name_27 (fs VARCHAR, sp INTEGER, name VARCHAR, points VARCHAR, rank VARCHAR) | What is the largest value for SP+FS with more than 164.56 points for Mitsuru Matsumura in a Rank greater than 1? | SELECT MAX(sp) + fs FROM table_name_27 WHERE points > 164.56 AND rank > 1 AND name = "mitsuru matsumura" |
CREATE TABLE table_name_84 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR) | When phonetic realisation is [[[|u]]], what is the variant with niqqud? | SELECT variant__with_niqqud__ FROM table_name_84 WHERE phonetic_realisation = "[[[|u]]]" |
CREATE TABLE table_name_53 (variant__with_niqqud__ VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR) | When a variant without niqqud is as middle letter: וו with a phonemic value of /v/, what is the variant with niqqud? | SELECT variant__with_niqqud__ FROM table_name_53 WHERE phonemic_value = "/v/" AND without_niqqud = "as middle letter: וו" |
CREATE TABLE table_name_12 (phonetic_realisation VARCHAR, phonemic_value VARCHAR, without_niqqud VARCHAR) | What is the phonetic realisation if the phonemic value is /v/ and the without niqqud is as initial letter: ו? | SELECT phonetic_realisation FROM table_name_12 WHERE phonemic_value = "/v/" AND without_niqqud = "as initial letter: ו" |
CREATE TABLE table_name_96 (english_example VARCHAR, variant__with_niqqud__ VARCHAR) | Give me an english example of a variant with niqqud of וֹ? | SELECT english_example FROM table_name_96 WHERE variant__with_niqqud__ = "וֹ" |
CREATE TABLE table_name_77 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR) | What is the variant with niqqud for a phonetic realisation of [[[|v]]]? | SELECT variant__with_niqqud__ FROM table_name_77 WHERE phonetic_realisation = "[[[|v]]]" |
CREATE TABLE table_name_61 (phonetic_realisation VARCHAR, without_niqqud VARCHAR) | If a variant without niqqud is as final letter: ו or יו, what is the phonetic realisation? | SELECT phonetic_realisation FROM table_name_61 WHERE without_niqqud = "as final letter: ו or יו" |
CREATE TABLE table_name_96 (position VARCHAR, pick VARCHAR) | What position does pick 113 play? | SELECT position FROM table_name_96 WHERE pick = 113 |
CREATE TABLE table_name_7 (school VARCHAR, pick VARCHAR, player VARCHAR) | What is the school of Victor Jones, who was picked further than number 225? | SELECT school FROM table_name_7 WHERE pick > 225 AND player = "victor jones" |
CREATE TABLE table_name_68 (pick VARCHAR, school VARCHAR) | What is the total pick number of Virginia Tech? | SELECT COUNT(pick) FROM table_name_68 WHERE school = "virginia tech" |
CREATE TABLE table_name_57 (position VARCHAR, school VARCHAR) | What is the position of a player from North Carolina? | SELECT position FROM table_name_57 WHERE school = "north carolina" |
CREATE TABLE table_name_4 (home_team VARCHAR) | What is the home team score of St Kilda? | SELECT home_team AS score FROM table_name_4 WHERE home_team = "st kilda" |
CREATE TABLE table_name_19 (date VARCHAR, home_team VARCHAR) | What is the date for home team Collingwood? | SELECT date FROM table_name_19 WHERE home_team = "collingwood" |
CREATE TABLE table_name_52 (home_team VARCHAR) | What is the home team score for St Kilda? | SELECT home_team AS score FROM table_name_52 WHERE home_team = "st kilda" |
CREATE TABLE table_name_97 (named VARCHAR, longitude VARCHAR, diameter__km_ VARCHAR, latitude VARCHAR) | Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3 | SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3 |
CREATE TABLE table_name_61 (named VARCHAR, latitude VARCHAR) | Tell me the named for latitude of 6.4 | SELECT named AS after FROM table_name_61 WHERE latitude = 6.4 |
CREATE TABLE table_name_80 (name VARCHAR, longitude VARCHAR, latitude VARCHAR) | Tell me the name for longitude more than 103.8 and latitude of -11.4 | SELECT name FROM table_name_80 WHERE longitude > 103.8 AND latitude = -11.4 |
CREATE TABLE table_name_65 (longitude INTEGER, diameter__km_ VARCHAR, latitude VARCHAR) | Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4 | SELECT SUM(longitude) FROM table_name_65 WHERE diameter__km_ = 22.6 AND latitude < -12.4 |
CREATE TABLE table_name_48 (overall VARCHAR, nationality VARCHAR, player VARCHAR) | What was the overall pick for Doug Sproule of the United States? | SELECT overall FROM table_name_48 WHERE nationality = "united states" AND player = "doug sproule" |
CREATE TABLE table_name_69 (viewers__m_ INTEGER, share INTEGER) | what is the lowest viewers (m) when the share is more than 13? | SELECT MIN(viewers__m_) FROM table_name_69 WHERE share > 13 |
CREATE TABLE table_name_46 (rating INTEGER, air_date VARCHAR) | what is the average rating when the air date is november 23, 2007? | SELECT AVG(rating) FROM table_name_46 WHERE air_date = "november 23, 2007" |
CREATE TABLE table_name_12 (viewers__m_ VARCHAR, rating VARCHAR, share VARCHAR) | what is the total viewers (m) when the rating is 6.4 and the share is more than 11? | SELECT COUNT(viewers__m_) FROM table_name_12 WHERE rating = 6.4 AND share > 11 |
CREATE TABLE table_name_58 (written_by VARCHAR, directed_by VARCHAR) | Who wrote the episode that was directed by Terry Ingram? | SELECT written_by FROM table_name_58 WHERE directed_by = "terry ingram" |
CREATE TABLE table_name_38 (title VARCHAR, directed_by VARCHAR) | What is the title of the episode that was directed by Roy Dupuis? | SELECT title FROM table_name_38 WHERE directed_by = "roy dupuis" |
CREATE TABLE table_name_10 (directed_by VARCHAR, original_airdate VARCHAR) | Who directed the episode that originally aired on February 25, 2001? | SELECT directed_by FROM table_name_10 WHERE original_airdate = "february 25, 2001" |
CREATE TABLE table_name_95 (episode__number VARCHAR, original_airdate VARCHAR) | What is the episode # of the episode that originally aired on January 21, 2001? | SELECT episode__number FROM table_name_95 WHERE original_airdate = "january 21, 2001" |
CREATE TABLE table_name_21 (directed_by VARCHAR, episode__number VARCHAR) | Who directed episode # 92 (4)? | SELECT directed_by FROM table_name_21 WHERE episode__number = "92 (4)" |
CREATE TABLE table_name_42 (stream_s__and___or_lake_s_ VARCHAR, date_founded VARCHAR) | what is the stream(s) and / or lake(s) when the date founded is 1959? | SELECT stream_s__and___or_lake_s_ FROM table_name_42 WHERE date_founded = 1959 |
CREATE TABLE table_name_20 (area_in_acres__ha_ VARCHAR, park_name VARCHAR) | What is the area in acres (ha) for the park bald eagle state park? | SELECT area_in_acres__ha_ FROM table_name_20 WHERE park_name = "bald eagle state park" |
CREATE TABLE table_name_6 (date_founded INTEGER, county_or_counties VARCHAR) | what is the most recent date founded in elk county? | SELECT MAX(date_founded) FROM table_name_6 WHERE county_or_counties = "elk county" |
CREATE TABLE table_name_77 (date_founded VARCHAR, park_name VARCHAR) | how many parks are name beltzville state park? | SELECT COUNT(date_founded) FROM table_name_77 WHERE park_name = "beltzville state park" |
CREATE TABLE table_name_23 (rank INTEGER, total INTEGER) | Which rank has a total smaller than 1? | SELECT AVG(rank) FROM table_name_23 WHERE total < 1 |
CREATE TABLE table_name_47 (year VARCHAR, english_title VARCHAR) | What is the year for the ocean? | SELECT year FROM table_name_47 WHERE english_title = "the ocean" |
CREATE TABLE table_name_59 (representing VARCHAR, original_title VARCHAR) | Name the representation for om fjorten dage | SELECT representing FROM table_name_59 WHERE original_title = "om fjorten dage" |
CREATE TABLE table_name_35 (representing VARCHAR, original_title VARCHAR) | Name the representing for englar alheimsins | SELECT representing FROM table_name_35 WHERE original_title = "englar alheimsins" |
CREATE TABLE table_name_53 (original_title VARCHAR, year VARCHAR, author VARCHAR) | Name the original title for years before 1977 and author of lagercrantz olof lagercrantz | SELECT original_title FROM table_name_53 WHERE year < 1977 AND author = "lagercrantz olof lagercrantz" |
CREATE TABLE table_name_82 (representing VARCHAR, original_title VARCHAR) | Name the representating for ingenjör andrées luftfärd | SELECT representing FROM table_name_82 WHERE original_title = "ingenjör andrées luftfärd" |
CREATE TABLE table_name_26 (distance VARCHAR, type VARCHAR) | What is the distance for the team time trial? | SELECT distance FROM table_name_26 WHERE type = "team time trial" |
CREATE TABLE table_name_99 (course VARCHAR, date VARCHAR) | What was the course on 13 may? | SELECT course FROM table_name_99 WHERE date = "13 may" |
CREATE TABLE table_name_83 (type VARCHAR, course VARCHAR, date VARCHAR) | What type has rest day as a course and was on 21 may? | SELECT type FROM table_name_83 WHERE course = "rest day" AND date = "21 may" |
CREATE TABLE table_name_3 (race_name VARCHAR, winning_driver VARCHAR) | What's the race name that the driver Innes Ireland won? | SELECT race_name FROM table_name_3 WHERE winning_driver = "innes ireland" |
CREATE TABLE table_name_48 (score VARCHAR, visitor VARCHAR) | What's the score in the home game against the Charlotte Bobcats? | SELECT score FROM table_name_48 WHERE visitor = "charlotte bobcats" |
CREATE TABLE table_name_80 (date VARCHAR, venue VARCHAR) | What was the date of the game played at Victoria Park? | SELECT date FROM table_name_80 WHERE venue = "victoria park" |
CREATE TABLE table_name_71 (home_team VARCHAR, crowd INTEGER) | Who was the home team when the crowd was larger than 13,557? | SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557 |
CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR) | Where did Richmond play as the away team? | SELECT venue FROM table_name_57 WHERE away_team = "richmond" |
CREATE TABLE table_name_97 (years_competed VARCHAR, nickname VARCHAR) | Tell me the years competed for panthers | SELECT years_competed FROM table_name_97 WHERE nickname = "panthers" |
CREATE TABLE table_name_32 (release_date INTEGER, music_label VARCHAR, media VARCHAR, country VARCHAR) | What is the release date of the CD by EG Records in the UK? | SELECT SUM(release_date) FROM table_name_32 WHERE media = "cd" AND country = "uk" AND music_label = "eg records" |
CREATE TABLE table_name_46 (release_date INTEGER, music_label VARCHAR, country VARCHAR) | What is the release date by Editions EG in the Netherlands? | SELECT AVG(release_date) FROM table_name_46 WHERE music_label = "editions eg" AND country = "netherlands" |
CREATE TABLE table_name_36 (music_label VARCHAR, catalogue_number VARCHAR) | What is the music label with the catalogue number enocd 10? | SELECT music_label FROM table_name_36 WHERE catalogue_number = "enocd 10" |
CREATE TABLE table_name_86 (release_date INTEGER, music_label VARCHAR) | What is the release date by Virgin? | SELECT AVG(release_date) FROM table_name_86 WHERE music_label = "virgin" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.