answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT declination___j2000__ FROM table_name_34 WHERE right_ascension___j2000__ = "11h53m41.9s"
What is the declination with a right ascension of 11h53m41.9s?
CREATE TABLE table_name_34 (declination___j2000__ VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = "caithness, sutherland and easter ross"
Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?
CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR)
SELECT jockey FROM table_22265261_1 WHERE position = "7th"
Who was the jockey in 7th position?
CREATE TABLE table_22265261_1 (jockey VARCHAR, position VARCHAR)
SELECT SUM(draws) FROM table_name_30 WHERE losses < 1
What are the draws when the losses are less than 1?
CREATE TABLE table_name_30 (draws INTEGER, losses INTEGER)
SELECT MIN(game) FROM table_23486853_6 WHERE opponent = "Buffalo Sabres"
What was the game number when the opposing team was the Buffalo Sabres?
CREATE TABLE table_23486853_6 (game INTEGER, opponent VARCHAR)
SELECT MIN(round) FROM table_1137704_2 WHERE grand_prix = "German grand_prix"
whatthe minimum round where grand prix is german grand prix
CREATE TABLE table_1137704_2 (round INTEGER, grand_prix VARCHAR)
SELECT SUM(crowd) FROM table_name_53 WHERE home_team = "wollongong hawks"
What was the number of the crowd when the Wollongong Hawks were the home team?
CREATE TABLE table_name_53 (crowd INTEGER, home_team VARCHAR)
SELECT to_par FROM table_name_59 WHERE player = "larry rinker"
What is To par, when Player is "Larry Rinker"?
CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR)
SELECT lineup FROM table_name_21 WHERE location = "washington dc"
Name the lineup for washington dc
CREATE TABLE table_name_21 (lineup VARCHAR, location VARCHAR)
SELECT MAX(rank) FROM table_14752049_1 WHERE country = "Germany"
What rank is associated with Germany?
CREATE TABLE table_14752049_1 (rank INTEGER, country VARCHAR)
SELECT MIN(game) FROM table_name_53 WHERE attendance = 71 OFFSET 962
What's the game with an attendance of 71,962?
CREATE TABLE table_name_53 (game INTEGER, attendance VARCHAR)
SELECT SUM(lost) FROM table_name_10 WHERE points > 21 AND draw = 2
What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?
CREATE TABLE table_name_10 (lost INTEGER, points VARCHAR, draw VARCHAR)
SELECT record FROM table_name_13 WHERE date = "january 4"
What was the record on January 4?
CREATE TABLE table_name_13 (record VARCHAR, date VARCHAR)
SELECT MIN(played) FROM table_name_97 WHERE points = "28-10" AND goals_for > 29
Which is the lowest played with 28-10 points and goals higher than 29?
CREATE TABLE table_name_97 (played INTEGER, points VARCHAR, goals_for VARCHAR)
SELECT latitude FROM table_18600760_19 WHERE water__sqmi_ = "0.288"
what is the latitude in the township where wate is 0.288
CREATE TABLE table_18600760_19 (latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT name FROM table_name_77 WHERE reserved_for___sc___st__none_ = "st" AND constituency_number = "196"
What is the name when the reserved is (sc / st /none) of st, with a constituency number 196?
CREATE TABLE table_name_77 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT SUM(points) FROM table_name_53 WHERE year > 1993 AND entrant = "sasol jordan"
For the Entrant of Sasol Jordan, add up all the points with a Year larger than 1993.
CREATE TABLE table_name_53 (points INTEGER, year VARCHAR, entrant VARCHAR)
SELECT country FROM table_2764267_2 WHERE currency = "US dollar"
Name the country for the us dollar
CREATE TABLE table_2764267_2 (country VARCHAR, currency VARCHAR)
SELECT opponents FROM table_name_50 WHERE h___a = "a" AND result_f___a = "2 – 0" AND attendance > 30 OFFSET 000
Which Opponent has a H / A of a, and a Result F – A of 2 – 0, and a Attendance larger than 30,000?
CREATE TABLE table_name_50 (opponents VARCHAR, attendance VARCHAR, h___a VARCHAR, result_f___a VARCHAR)
SELECT date FROM table_name_64 WHERE home_team = "adelaide 36ers"
On what date was Adelaide 36ers the home team?
CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR)
SELECT AVG(games) FROM table_name_75 WHERE team = "olympiacos" AND rebounds < 17
What's the mean game number for the olympiacos team when there's less than 17 rebounds?
CREATE TABLE table_name_75 (games INTEGER, team VARCHAR, rebounds VARCHAR)
SELECT MIN(super_league) FROM table_28068645_8 WHERE champions_league = 0
List the lowest super league for a 0 champion league.
CREATE TABLE table_28068645_8 (super_league INTEGER, champions_league VARCHAR)
SELECT MIN(total) FROM table_name_54 WHERE rank > 2 AND bronze = 1 AND silver > 0 AND gold < 0
What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?
CREATE TABLE table_name_54 (total INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT kit_manufacturer FROM table_name_90 WHERE team = "everton"
Which Kit Manufacturer supports team Everton?
CREATE TABLE table_name_90 (kit_manufacturer VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_71 WHERE date = "june 15"
Who was the opponent on June 15?
CREATE TABLE table_name_71 (opponent VARCHAR, date VARCHAR)
SELECT period FROM table_name_74 WHERE country = "south korea" AND peak_position = "#24"
Name the period for south korea with peak position of #24
CREATE TABLE table_name_74 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
SELECT COUNT(fin_pos) FROM table_17244483_1 WHERE time_retired = "+10.8098"
How many positions did the car with a final time of +10.8098 finish in?
CREATE TABLE table_17244483_1 (fin_pos VARCHAR, time_retired VARCHAR)
SELECT title FROM table_name_44 WHERE last_issue = "ongoing" AND first_issue = "february 2009"
What is the title that was first published in February 2009 and is still ongoing?
CREATE TABLE table_name_44 (title VARCHAR, last_issue VARCHAR, first_issue VARCHAR)
SELECT draw FROM table_name_57 WHERE match = "8" AND team = "lpż gdańsk"
What was the draw for Lpż Gdańsk with a match of 8?
CREATE TABLE table_name_57 (draw VARCHAR, match VARCHAR, team VARCHAR)
SELECT MAX(pos) FROM table_20090682_4 WHERE driver = "Brendan Sole"
what is the lowest position of brendan sole
CREATE TABLE table_20090682_4 (pos INTEGER, driver VARCHAR)
SELECT pick FROM table_name_94 WHERE college = "georgia tech"
What's the pick for Georgia tech?
CREATE TABLE table_name_94 (pick VARCHAR, college VARCHAR)
SELECT try_bonus FROM table_name_83 WHERE played = "18" AND points_for = "204"
What try bonus has 18 as the played of and 204 as the points?
CREATE TABLE table_name_83 (try_bonus VARCHAR, played VARCHAR, points_for VARCHAR)
SELECT MIN(first_elected) FROM table_1341598_44 WHERE candidates = "Tom Loeffler (R) 80.6% Joe Sullivan (D) 19.4%"
What year were the election results tom loeffler (r) 80.6% joe sullivan (d) 19.4%?
CREATE TABLE table_1341598_44 (first_elected INTEGER, candidates VARCHAR)
SELECT home_team AS score FROM table_name_66 WHERE venue = "glenferrie oval"
What is the home team's score at glenferrie oval?
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
SELECT SUM(total) FROM table_name_68 WHERE silver = "1" AND nation = "spain"
How many medals for spain with 1 silver?
CREATE TABLE table_name_68 (total INTEGER, silver VARCHAR, nation VARCHAR)
SELECT year_s__won FROM table_name_84 WHERE player = "payne stewart"
What year did player payne stewart win?
CREATE TABLE table_name_84 (year_s__won VARCHAR, player VARCHAR)
SELECT COUNT(male_rank) FROM table_2701625_1 WHERE country = "Fiji"
Name the total number of male rank for fiji
CREATE TABLE table_2701625_1 (male_rank VARCHAR, country VARCHAR)
SELECT series FROM table_11748792_2 WHERE sunday = "Alice Levine Jamie East"
List all of the shows with Alice Levine Jamie East is the Sunday presenter.
CREATE TABLE table_11748792_2 (series VARCHAR, sunday VARCHAR)
SELECT lname FROM authors WHERE fname = "Amal"
Find the last name of the author with first name "Amal".
CREATE TABLE authors (lname VARCHAR, fname VARCHAR)
SELECT tries_for FROM table_name_45 WHERE try_bonus = "correct as of 2 june 2009"
How many tries did the club with a try bonus of correct as of 2 June 2009 have?
CREATE TABLE table_name_45 (tries_for VARCHAR, try_bonus VARCHAR)
SELECT COUNT(guest_s_) FROM table_29135051_3 WHERE broadcast_date = "11September2012"
how many guest stars did the episode that was broadcasted 11september2012 have
CREATE TABLE table_29135051_3 (guest_s_ VARCHAR, broadcast_date VARCHAR)
SELECT qual_1 FROM table_name_27 WHERE team = "rusport" AND name = "justin wilson"
What was the qualifying 1 time for Rusport and Justin Wilson?
CREATE TABLE table_name_27 (qual_1 VARCHAR, team VARCHAR, name VARCHAR)
SELECT MIN(election) FROM table_name_4 WHERE municipality = "cinisello balsamo"
What is the lowest election that has cinisello balsamo as the municipality?
CREATE TABLE table_name_4 (election INTEGER, municipality VARCHAR)
SELECT circuit FROM table_13642023_2 WHERE rnd = 5 AND gtu_winning_team = "#59 Brumos Porsche - Audi"
On what circuit was the GTU winning team #59 Brumos Porsche - Audi in round 5?
CREATE TABLE table_13642023_2 (circuit VARCHAR, rnd VARCHAR, gtu_winning_team VARCHAR)
SELECT score FROM table_name_69 WHERE outcome = "winner" AND opponent = "angela haynes"
What is Score, when Outcome is Winner, and when Opponent is Angela Haynes?
CREATE TABLE table_name_69 (score VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT district FROM table_2668352_5 WHERE incumbent = "Joseph Desha"
What is every district for incumbent Joseph Desha?
CREATE TABLE table_2668352_5 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(crowd) FROM table_name_64 WHERE away_team = "footscray"
What was the crowd population for Footscray as an away team?
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR)
SELECT commandery AS capital FROM table_278229_1 WHERE commandery = "Nanhai 南海"
When nanhai 南海 is the commandery what is the commandery capital?
CREATE TABLE table_278229_1 (commandery VARCHAR)
SELECT MAX(losses) FROM table_name_91 WHERE central_murray = "lake boga" AND wins < 10
What is the highest number of losses of the central murray of lake boga, which has less than 10 wins?
CREATE TABLE table_name_91 (losses INTEGER, central_murray VARCHAR, wins VARCHAR)
SELECT zodiac_sign FROM table_20354_5 WHERE thai_name = "มกราคม"
What's the zodiac sign for the month with Thai name มกราคม?
CREATE TABLE table_20354_5 (zodiac_sign VARCHAR, thai_name VARCHAR)
SELECT winner FROM table_name_51 WHERE rally_leader = "c. atkinson" AND name = "agia sotira 1"
Name the winner with rally leader of c. atkinson and name of agia sotira 1
CREATE TABLE table_name_51 (winner VARCHAR, rally_leader VARCHAR, name VARCHAR)
SELECT manufacturer FROM table_name_85 WHERE quantity = 1 AND lmmr_name = "great mountain"
Which Manufacturer has a Quantity of 1, and has the LMMR name Great Mountain?
CREATE TABLE table_name_85 (manufacturer VARCHAR, quantity VARCHAR, lmmr_name VARCHAR)
SELECT christians FROM table_14598_5 WHERE composition = "Work Participation Rate"
What is the christian amount where work participation rate is the composition?
CREATE TABLE table_14598_5 (christians VARCHAR, composition VARCHAR)
SELECT away_team FROM table_name_14 WHERE stadium = "adelaide oval"
Which team was hosted at Adelaide Oval?
CREATE TABLE table_name_14 (away_team VARCHAR, stadium VARCHAR)
SELECT class FROM table_name_45 WHERE city_of_license = "black mountain, north carolina"
What class is the city of black mountain, north carolina?
CREATE TABLE table_name_45 (class VARCHAR, city_of_license VARCHAR)
SELECT SUM(crowd) FROM table_name_78 WHERE home_team = "essendon"
How big was the crowd for Essendon?
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)
SELECT product_id, COUNT(DISTINCT order_id) FROM Order_items GROUP BY product_id
Show the product ids and the number of unique orders containing each product.
CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR)
SELECT socket FROM table_name_27 WHERE part_number_s_ = "adh2350iaa5do"
What is the socket for the processor with part number ADH2350IAA5DO?
CREATE TABLE table_name_27 (socket VARCHAR, part_number_s_ VARCHAR)
SELECT COUNT(episode) FROM table_2102945_1 WHERE viewers__in_millions_ = "7.4"
When there are 7.4 million viewers how many episodes are there?
CREATE TABLE table_2102945_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT location FROM table_name_14 WHERE home_ground = "mong kok stadium"
Which Location has a Home Ground of Mong kok stadium?
CREATE TABLE table_name_14 (location VARCHAR, home_ground VARCHAR)
SELECT high_assists FROM table_name_56 WHERE date = "november 13"
Who had the highest assists on the November 13 game?
CREATE TABLE table_name_56 (high_assists VARCHAR, date VARCHAR)
SELECT opponent FROM table_24560733_1 WHERE record = "5-2"
Which opponent led to a 5-2 record?
CREATE TABLE table_24560733_1 (opponent VARCHAR, record VARCHAR)
SELECT date FROM table_name_71 WHERE week < 2
What day did they play before week 2?
CREATE TABLE table_name_71 (date VARCHAR, week INTEGER)
SELECT listed FROM table_name_29 WHERE location = "mcclain"
On what date was the bridge located in McClain listed?
CREATE TABLE table_name_29 (listed VARCHAR, location VARCHAR)
SELECT act FROM table_23429629_4 WHERE place_came = "1st Place (Won the Series)"
During the 1st Place (Won the Series), who was the act?
CREATE TABLE table_23429629_4 (act VARCHAR, place_came VARCHAR)
SELECT competition FROM table_name_85 WHERE result = "2-0" AND location = "ferreiras" AND assist_pass = "casey nogueira"
Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?
CREATE TABLE table_name_85 (competition VARCHAR, assist_pass VARCHAR, result VARCHAR, location VARCHAR)
SELECT title FROM table_name_25 WHERE rank > 11 AND worldwide_gross = "$131,002,597"
What is the Title of the Film with a Rank greater than 11 and Worldwide Gross of $131,002,597?
CREATE TABLE table_name_25 (title VARCHAR, rank VARCHAR, worldwide_gross VARCHAR)
SELECT result FROM table_name_31 WHERE competition = "world group, consolation round"
What is the result for world group, consolation round?
CREATE TABLE table_name_31 (result VARCHAR, competition VARCHAR)
SELECT MAX(wins) FROM table_name_29 WHERE byes < 1
Which wins have less than 1 bye?
CREATE TABLE table_name_29 (wins INTEGER, byes INTEGER)
SELECT venue FROM table_name_23 WHERE batting_team = "west indies"
Where did the west indies batting team play at?
CREATE TABLE table_name_23 (venue VARCHAR, batting_team VARCHAR)
SELECT AVG(year) FROM table_name_84 WHERE date = "december 26"
What is the average year of the games with the date December 26?
CREATE TABLE table_name_84 (year INTEGER, date VARCHAR)
SELECT trance__n_himalaya_zone FROM table_10638523_1 WHERE high_hill_zone = "25%"
What is the percentage of the trance- n himalaya zone that corresponds with the high hill zone is 25%?
CREATE TABLE table_10638523_1 (trance__n_himalaya_zone VARCHAR, high_hill_zone VARCHAR)
SELECT MIN(wins) FROM table_name_88 WHERE goals_conceded < 26 AND draws = 1 AND goals_scored < 74
What is the smallest number of wins where goals conceded are below 26, draws are 1 and goals scored are below 74?
CREATE TABLE table_name_88 (wins INTEGER, goals_scored VARCHAR, goals_conceded VARCHAR, draws VARCHAR)
SELECT opponent FROM table_name_16 WHERE location = "wonju chiak indoor gym, south korea"
Which Opponent has Location Wonju Chiak Indoor Gym, South Korea?
CREATE TABLE table_name_16 (opponent VARCHAR, location VARCHAR)
SELECT opponent FROM table_1341522_38 WHERE district = "Ohio12"
who is the the opponent with district being ohio12
CREATE TABLE table_1341522_38 (opponent VARCHAR, district VARCHAR)
SELECT MAX(points) FROM table_name_95 WHERE top_goal_scorer = "khaled msakni (10)" AND final_standing < 12
What is the highest points when the top goal scorer was Khaled Msakni (10), and the final standing is less than 12?
CREATE TABLE table_name_95 (points INTEGER, top_goal_scorer VARCHAR, final_standing VARCHAR)
SELECT result FROM table_name_86 WHERE competition = "friendly match"
What was the result for a friendly match?
CREATE TABLE table_name_86 (result VARCHAR, competition VARCHAR)
SELECT character FROM table_25173505_13 WHERE special_edition = "Koichi Sakaguchi"
who is the character where the special edition is koichi sakaguchi?
CREATE TABLE table_25173505_13 (character VARCHAR, special_edition VARCHAR)
SELECT result FROM table_name_59 WHERE opponent = "leeds" AND date = "20/03/2008"
What result was a date of 20/03/2008 with leeds as the opponent
CREATE TABLE table_name_59 (result VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT genre FROM table_name_16 WHERE language = "hindi" AND network = "star gold"
What Genre has Hindi as the Language and Star Gold as the Network?
CREATE TABLE table_name_16 (genre VARCHAR, language VARCHAR, network VARCHAR)
SELECT production_code FROM table_25851971_1 WHERE written_by = "Anthony Sparks"
What was the production code of the episode written by Anthony Sparks?
CREATE TABLE table_25851971_1 (production_code VARCHAR, written_by VARCHAR)
SELECT no_party_preference FROM table_27003186_3 WHERE other = "10.1%"
What is the no party preference when other is 10.1%?
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, other VARCHAR)
SELECT COUNT(points) FROM table_name_95 WHERE year < 1955
How many points were there before 1955?
CREATE TABLE table_name_95 (points VARCHAR, year INTEGER)
SELECT place FROM table_name_15 WHERE weapon = "35mm fire" AND date = "27 may 1982"
What is Place, when Weapon is "35mm fire", and when Date is "27 May 1982"?
CREATE TABLE table_name_15 (place VARCHAR, weapon VARCHAR, date VARCHAR)
SELECT mens_singles FROM table_12266757_1 WHERE mixed_doubles = "Stellan Mohlin Kerstin Ståhl , AIK"
Who won the Mens Singles when the Mixed doubles went to Stellan Mohlin Kerstin Ståhl , Aik?
CREATE TABLE table_12266757_1 (mens_singles VARCHAR, mixed_doubles VARCHAR)
SELECT score FROM table_name_33 WHERE visitor = "miami"
What is the score when Miami is the visitor?
CREATE TABLE table_name_33 (score VARCHAR, visitor VARCHAR)
SELECT 2 AS nd_member FROM table_name_46 WHERE elected = "1461"
Who is the 2nd member elected in 1461?
CREATE TABLE table_name_46 (elected VARCHAR)
SELECT ages FROM table_name_48 WHERE dance = "cha-cha-cha" AND pair = "mitchell & jessica"
How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?
CREATE TABLE table_name_48 (ages VARCHAR, dance VARCHAR, pair VARCHAR)
SELECT record FROM table_name_89 WHERE date = "june 22"
Name the record on june 22
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)
SELECT theme FROM table_name_73 WHERE week__number = "top 24 (12 men)"
What was the theme during the week # of top 24 (12 men)
CREATE TABLE table_name_73 (theme VARCHAR, week__number VARCHAR)
SELECT AVG(runner_up) FROM table_name_62 WHERE university = "national university" AND total_championships > 2
What is the average number of runner-up that National University, which has more than 2 total championships, has?
CREATE TABLE table_name_62 (runner_up INTEGER, university VARCHAR, total_championships VARCHAR)
SELECT cfl_team FROM table_28059992_5 WHERE college = "York"
What CFL team got the player from york?
CREATE TABLE table_28059992_5 (cfl_team VARCHAR, college VARCHAR)
SELECT english_title FROM table_14631909_1 WHERE author = "Mariusz Szczygieł"
What is the English version of Mariusz Szczygieł book?
CREATE TABLE table_14631909_1 (english_title VARCHAR, author VARCHAR)
SELECT title FROM table_23916272_6 WHERE season__number = 8
List the title for the season episode number of 8.
CREATE TABLE table_23916272_6 (title VARCHAR, season__number VARCHAR)
SELECT class FROM table_name_64 WHERE race = "charlotte camel gt 500"
What is the class of the Charlotte Camel gt 500 race?
CREATE TABLE table_name_64 (class VARCHAR, race VARCHAR)
SELECT AVG(points) FROM table_name_88 WHERE goalsagainst = 285 AND season = "2006–07" AND games < 70
Goalsagainst of 285, and a Season of 2006–07, and a Games smaller than 70 has what average points?
CREATE TABLE table_name_88 (points INTEGER, games VARCHAR, goalsagainst VARCHAR, season VARCHAR)
SELECT blocks_per_game FROM table_25774493_3 WHERE field_goal_percentage = ".594 (2nd)"
What were the blocks per game in the selection where the field goal percentage was .594 (2nd)?
CREATE TABLE table_25774493_3 (blocks_per_game VARCHAR, field_goal_percentage VARCHAR)
SELECT MAX(week) FROM table_name_51 WHERE opponent = "carolina panthers"
What is the highest week that has carolina panthers as the opponent?
CREATE TABLE table_name_51 (week INTEGER, opponent VARCHAR)
SELECT points_for FROM table_13940275_5 WHERE points_against = "556"
what's the points for with points against being 556
CREATE TABLE table_13940275_5 (points_for VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_91 WHERE home_team = "essendon"
On which date was Essendon the home team?
CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR)