answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne"
When melbourne was the home team what was their score?
CREATE TABLE table_name_46 (home_team VARCHAR)
SELECT date FROM table_name_85 WHERE venue = "mcg"
What was the date of the game at MCG?
CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)
SELECT division FROM table_name_68 WHERE team = "derbyshire falcons"
Which division is the Derbyshire Falcons in?
CREATE TABLE table_name_68 (division VARCHAR, team VARCHAR)
SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = "S04 E01"
What's the original air date of the episode with a broadcast order s04 e01?
CREATE TABLE table_1231892_4 (us_air_date VARCHAR, broadcast_order VARCHAR)
SELECT island FROM table_name_74 WHERE summit = "haleakalā"
What's the island with a summit of Haleakalā?
CREATE TABLE table_name_74 (island VARCHAR, summit VARCHAR)
SELECT pinyin FROM table_16162581_1 WHERE date__ce_ = "657"
Name the pinyin for 657 date
CREATE TABLE table_16162581_1 (pinyin VARCHAR, date__ce_ VARCHAR)
SELECT SUM(year) FROM table_name_39 WHERE from_album = "the thing"
How many years have a Form album of the thing?
CREATE TABLE table_name_39 (year INTEGER, from_album VARCHAR)
SELECT pete_du_pont FROM table_name_13 WHERE pat_robertson = "16%"
When Pat Robertson was at 16%, what did Pete du Pont have?
CREATE TABLE table_name_13 (pete_du_pont VARCHAR, pat_robertson VARCHAR)
SELECT score FROM table_name_76 WHERE player = "dow finsterwald"
What is Score, when Player is "Dow Finsterwald"?
CREATE TABLE table_name_76 (score VARCHAR, player VARCHAR)
SELECT away_team FROM table_name_97 WHERE venue = "arden street oval"
Which team plays at the Arden Street Oval?
CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 14
What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows?
CREATE TABLE table_name_78 (Severe INTEGER, tropical_cyclones VARCHAR, tropical_lows VARCHAR)
SELECT salmonella FROM table_10321124_1 WHERE shigella = "IpgC"
what's the salmonella with shigella being ipgc
CREATE TABLE table_10321124_1 (salmonella VARCHAR, shigella VARCHAR)
SELECT COUNT(*) FROM Band
How many bands are there?
CREATE TABLE Band (Id VARCHAR)
SELECT MAX(silver) FROM table_name_42 WHERE gold < 0
What is the largest silver value associated with 0 golds?
CREATE TABLE table_name_42 (silver INTEGER, gold INTEGER)
SELECT timeslot FROM table_name_21 WHERE calls = "wrko"
Tell me the timeslot of calls of wrko
CREATE TABLE table_name_21 (timeslot VARCHAR, calls VARCHAR)
SELECT title FROM table_17355933_1 WHERE directed_by = "Nelson McCormick"
Which seasons were directed by Nelson McCormick?
CREATE TABLE table_17355933_1 (title VARCHAR, directed_by VARCHAR)
SELECT poll_source FROM table_name_2 WHERE peg_luksik = "9%" AND dates_administered = "may 12, 2010"
Which Poll source has a Peg Luksik of 9%, and Dates administered of may 12, 2010?
CREATE TABLE table_name_2 (poll_source VARCHAR, peg_luksik VARCHAR, dates_administered VARCHAR)
SELECT state FROM table_name_91 WHERE name = "diamond lake" AND gnis_feature_id = 1579127
Which state has a Name of diamond lake, and a GNIS Feature ID of 1579127?
CREATE TABLE table_name_91 (state VARCHAR, name VARCHAR, gnis_feature_id VARCHAR)
SELECT MAX(gold) FROM table_name_15 WHERE total = 11 AND silver > 4
When the total was 11 and silver was greater than 4 what was the highest gold?
CREATE TABLE table_name_15 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT length FROM table_name_23 WHERE date = "august 15"
What is the length of the race on August 15?
CREATE TABLE table_name_23 (length VARCHAR, date VARCHAR)
SELECT completed FROM table_name_33 WHERE type = "church" AND list_entry_number = 1068071
What is the completed date of the church with list entry number 1068071?
CREATE TABLE table_name_33 (completed VARCHAR, type VARCHAR, list_entry_number VARCHAR)
SELECT sspec_number FROM table_name_2 WHERE part_number_s_ = "cw8064701470802"
what is the sspec number when the part number is cw8064701470802?
CREATE TABLE table_name_2 (sspec_number VARCHAR, part_number_s_ VARCHAR)
SELECT title FROM table_2430014_8 WHERE episode_no = 2
What is the title of episode 2?
CREATE TABLE table_2430014_8 (title VARCHAR, episode_no VARCHAR)
SELECT outcome FROM table_name_56 WHERE opponent_in_final = "nina bratchikova kathrin wörle"
Name the outcome that had an opponent in final of nina bratchikova kathrin wörle
CREATE TABLE table_name_56 (outcome VARCHAR, opponent_in_final VARCHAR)
SELECT population_census_2009 FROM table_16278894_1 WHERE county = "Kisumu"
What was the population in Kisumu county as of 2009?
CREATE TABLE table_16278894_1 (population_census_2009 VARCHAR, county VARCHAR)
SELECT gold FROM table_name_56 WHERE year = 2006
What Gold has the Year of 2006?
CREATE TABLE table_name_56 (gold VARCHAR, year VARCHAR)
SELECT venue FROM table_name_4 WHERE rank = "3"
Which venue is rank 3?
CREATE TABLE table_name_4 (venue VARCHAR, rank VARCHAR)
SELECT format FROM table_name_89 WHERE label = "columbia" AND catalog < 88697411432 AND date = "october 24, 2008"
Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008?
CREATE TABLE table_name_89 (format VARCHAR, date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT airdate FROM table_24399615_4 WHERE cable_rank = "17"
What date did the episode air that had a ranking of 17 for cable?
CREATE TABLE table_24399615_4 (airdate VARCHAR, cable_rank VARCHAR)
SELECT nation FROM table_name_87 WHERE gold > 1 AND silver = 4
Which nations have more than 1 gold medal and 4 silver medals?
CREATE TABLE table_name_87 (nation VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT player FROM table_name_91 WHERE school_club_team = "tampa"
Who is the player who went to school at Tampa?
CREATE TABLE table_name_91 (player VARCHAR, school_club_team VARCHAR)
SELECT SUM(total) FROM table_name_45 WHERE nation = "austria" AND gold < 0
What is the full amount of Total for Austria when the number of gold is less than 0?
CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT date FROM table_20745759_1 WHERE attendance = 9372
Name the date for attendance 9372
CREATE TABLE table_20745759_1 (date VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_57 WHERE date = "august 29"
What was the opponent on August 29?
CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR)
SELECT country FROM table_name_98 WHERE label = "atco records" AND format = "mc"
What Country with a MC Format has a ATCO Records Label?
CREATE TABLE table_name_98 (country VARCHAR, label VARCHAR, format VARCHAR)
SELECT SUM(route) FROM table_name_33 WHERE rank > 63 AND mountain_pass = "separation summit"
What is the route that has a rank higher than 63, and Separation Summit as its mountain pass?
CREATE TABLE table_name_33 (route INTEGER, rank VARCHAR, mountain_pass VARCHAR)
SELECT school FROM table_name_17 WHERE colors = "navy blue orange"
What School has Colors of navy blue orange?
CREATE TABLE table_name_17 (school VARCHAR, colors VARCHAR)
SELECT MAX(draw) FROM table_name_19 WHERE competition = "soviet league" AND dynamo > 34
what is the most draw when the competition is soviet league and dynamo is more than 34?
CREATE TABLE table_name_19 (draw INTEGER, competition VARCHAR, dynamo VARCHAR)
SELECT visitor FROM table_name_50 WHERE decision = "dipietro" AND date = "october 27"
Who is the visiting team when Dipietro received a decision on October 27?
CREATE TABLE table_name_50 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
SELECT COUNT(average) FROM table_name_98 WHERE preliminaries > 9.25 AND interview > 9.44 AND evening_gown = 9.77
How many average scores have preliminary scores over 9.25, interview scores more than 9.44, and evening gown scores of 9.77?
CREATE TABLE table_name_98 (average VARCHAR, evening_gown VARCHAR, preliminaries VARCHAR, interview VARCHAR)
SELECT COUNT(average_climb___percentage_) FROM table_16654785_2 WHERE length__m_ = 375
How many have a length of 375?
CREATE TABLE table_16654785_2 (average_climb___percentage_ VARCHAR, length__m_ VARCHAR)
SELECT position FROM table_name_24 WHERE player = "herbert s. graver"
Player of herbert s. graver has what position?
CREATE TABLE table_name_24 (position VARCHAR, player VARCHAR)
SELECT T1.name, T1.age, T1.job FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' AND T2.year = (SELECT MAX(YEAR) FROM PersonFriend WHERE friend = 'Alice')
Find the name, age, and job title of persons who are friends with Alice for the longest years.
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR, year VARCHAR); CREATE TABLE Person (name VARCHAR, age VARCHAR, job VARCHAR); CREATE TABLE PersonFriend (YEAR INTEGER, friend VARCHAR)
SELECT result FROM table_name_55 WHERE round > 3
What is the result of a round greater than 3?
CREATE TABLE table_name_55 (result VARCHAR, round INTEGER)
SELECT airdate FROM table_name_34 WHERE episode_no < 4 AND bbc_one_weekly_ranking = 6
What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?
CREATE TABLE table_name_34 (airdate VARCHAR, episode_no VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT opponent FROM table_name_9 WHERE loss = "travers (0–2)"
What was the opponent at the game that had a loss of Travers (0–2)?
CREATE TABLE table_name_9 (opponent VARCHAR, loss VARCHAR)
SELECT MAX(position) FROM table_18018214_1 WHERE draws = 7
What is the highest position a team with 7 draws earned?
CREATE TABLE table_18018214_1 (position INTEGER, draws VARCHAR)
SELECT injunctive FROM table_name_99 WHERE simple_past = "गरुँला garũlā 'i will (probably) do'"
What is the injunctive for the Simple Past of गरुँला garũlā 'I will (probably) do'?
CREATE TABLE table_name_99 (injunctive VARCHAR, simple_past VARCHAR)
SELECT score FROM table_name_43 WHERE country = "united states" AND player = "bob tway"
What is Score, when Country is "United States", and when Player is "Bob Tway"?
CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT label FROM table_name_57 WHERE region = "canada"
What was the label in the region of Canada?
CREATE TABLE table_name_57 (label VARCHAR, region VARCHAR)
SELECT replaced_by FROM table_17201869_3 WHERE outgoing_manager = "José Ángel Ziganda"
Who replaced outgoing manager José Ángel Ziganda?
CREATE TABLE table_17201869_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT score FROM table_name_24 WHERE date = "22 september 1972"
What is the score on 22 September 1972?
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
SELECT role FROM table_name_82 WHERE tournament = "1st division honduras"
What is the Role in the 1st Division Honduras Tournament?
CREATE TABLE table_name_82 (role VARCHAR, tournament VARCHAR)
SELECT record FROM table_name_77 WHERE home = "pittsburgh" AND points = 35
What is the record of the game with 35 points and pittsburgh as the home team?
CREATE TABLE table_name_77 (record VARCHAR, home VARCHAR, points VARCHAR)
SELECT AVG(pl_gp) FROM table_name_32 WHERE reg_gp = 97 AND pick__number < 70
What is the average PI GP when the pick is smaller tha 70 and the reg GP is 97?
CREATE TABLE table_name_32 (pl_gp INTEGER, reg_gp VARCHAR, pick__number VARCHAR)
SELECT skip FROM table_name_22 WHERE third = "martina baumann"
What skip has martina baumann as the third?
CREATE TABLE table_name_22 (skip VARCHAR, third VARCHAR)
SELECT location FROM table_name_37 WHERE years_in_gfl = "1979-" AND nickname = "saints"
What is the location of the Saints having 1979- as Years in GFL?
CREATE TABLE table_name_37 (location VARCHAR, years_in_gfl VARCHAR, nickname VARCHAR)
SELECT collaboration FROM table_name_99 WHERE status = "pre-clinical" AND indication = "autoimmune disease and inflammation"
What company collaborated in pre-clinical autoimmune disease and inflammation?
CREATE TABLE table_name_99 (collaboration VARCHAR, status VARCHAR, indication VARCHAR)
SELECT MIN(earnings___) AS $__ FROM table_1697190_2
what was Casey Martin's minimum yearly earnings?
CREATE TABLE table_1697190_2 (earnings___ INTEGER)
SELECT ship FROM table_name_89 WHERE hull_no = "aor-6"
Name the ship with hull number of aor-6
CREATE TABLE table_name_89 (ship VARCHAR, hull_no VARCHAR)
SELECT pick__number FROM table_2897457_7 WHERE player = "Scott Zygulski"
What are Scott Zygulski's pick numbers?
CREATE TABLE table_2897457_7 (pick__number VARCHAR, player VARCHAR)
SELECT COUNT(nationality) FROM table_16494599_10 WHERE player = "Casey Jacobsen"
How many nationalities does athlete Casey Jacobsen have?
CREATE TABLE table_16494599_10 (nationality VARCHAR, player VARCHAR)
SELECT film FROM table_name_1 WHERE year < 2002
Which film was made before 2002?
CREATE TABLE table_name_1 (film VARCHAR, year INTEGER)
SELECT atlantic_europe FROM table_22860_1 WHERE age__before_ = "10,000 years"
What is the Atlantic Europe when age is 10,000 years?
CREATE TABLE table_22860_1 (atlantic_europe VARCHAR, age__before_ VARCHAR)
SELECT player FROM table_name_45 WHERE to_par = "+2"
Which player has +2 to par?
CREATE TABLE table_name_45 (player VARCHAR, to_par VARCHAR)
SELECT example_meaning_in_english FROM table_name_1 WHERE tone = "mid rising-falling"
What is the example in English for a tone of mid rising-falling?
CREATE TABLE table_name_1 (example_meaning_in_english VARCHAR, tone VARCHAR)
SELECT AVG(week) FROM table_name_53 WHERE game_site = "memorial stadium"
what week number was at memorial stadium?
CREATE TABLE table_name_53 (week INTEGER, game_site VARCHAR)
SELECT round FROM table_name_3 WHERE res = "win" AND event = "rof 29: aftershock"
What round did he win rof 29: aftershock in?
CREATE TABLE table_name_3 (round VARCHAR, res VARCHAR, event VARCHAR)
SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Completed' INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = 'Part'
Show the names of customers who have both an order in completed status and an order in part status.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR)
SELECT AVG(lost) FROM table_name_91 WHERE points > 13
Which Lost has Points larger than 13?
CREATE TABLE table_name_91 (lost INTEGER, points INTEGER)
SELECT surface FROM table_name_62 WHERE tournament = "olbia"
Which Surface has a Tournament of olbia?
CREATE TABLE table_name_62 (surface VARCHAR, tournament VARCHAR)
SELECT venue FROM table_name_57 WHERE away_team = "collingwood"
Where did Collingwood play ae the away team?
CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR)
SELECT result FROM table_name_42 WHERE opponent = "zab judah"
What is the result of the match with Zab Judah as the opponent?
CREATE TABLE table_name_42 (result VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_14102379_4 WHERE stadium = "Cotton Bowl"
how many attendance with stadium being cotton bowl
CREATE TABLE table_14102379_4 (attendance VARCHAR, stadium VARCHAR)
SELECT MAX(no_in_season) FROM table_21312845_1 WHERE directed_by = "Chris Long"
What is the latest episode in the season directed by Chris Long?
CREATE TABLE table_21312845_1 (no_in_season INTEGER, directed_by VARCHAR)
SELECT COUNT(production_code) FROM table_25548213_1 WHERE directed_by = "Linda Mendoza"
List the number of episodes directed by linda mendoza.
CREATE TABLE table_25548213_1 (production_code VARCHAR, directed_by VARCHAR)
SELECT hdr_output___exr_, _hdr, _logluv_, _etc_ FROM table_name_63 WHERE "name" = "name"
What's the HDR Output that has a name of name?
CREATE TABLE table_name_63 (hdr_output___exr_ VARCHAR, _hdr VARCHAR, _logluv_ VARCHAR, _etc_ VARCHAR)
SELECT tues_23_aug FROM table_30058355_3 WHERE thurs_25_aug = "24' 31.87 92.282mph"
What is every entry for Tuesday August 23 when Thursday August 25 is 24' 31.87 92.282mph?
CREATE TABLE table_30058355_3 (tues_23_aug VARCHAR, thurs_25_aug VARCHAR)
SELECT nationality FROM table_name_89 WHERE goals = 14
Which nation had 14 goals?
CREATE TABLE table_name_89 (nationality VARCHAR, goals VARCHAR)
SELECT enrollment FROM table_1969634_1 WHERE location = "Garden City, New York"
What is the total enrollment for the school in garden city, new york?
CREATE TABLE table_1969634_1 (enrollment VARCHAR, location VARCHAR)
SELECT venue FROM table_name_61 WHERE result = "w" AND date = "3 march 2010"
What is the venue of the match with a w result on 3 March 2010?
CREATE TABLE table_name_61 (venue VARCHAR, result VARCHAR, date VARCHAR)
SELECT SUM(shirt_no) FROM table_name_9 WHERE height = 188
What is the Shirt No for the person whose height is 188?
CREATE TABLE table_name_9 (shirt_no INTEGER, height VARCHAR)
SELECT social_ao FROM table_name_83 WHERE external_co = "simonas savickas" AND internal_co = "pieter kuijsten"
What Social AO has an External CO of simonas savickas, and an Internal CO of pieter kuijsten?
CREATE TABLE table_name_83 (social_ao VARCHAR, external_co VARCHAR, internal_co VARCHAR)
SELECT school FROM table_name_32 WHERE location = "south bend" AND mascot = "indians"
What school has south bend as the location, with indians as the mascot?
CREATE TABLE table_name_32 (school VARCHAR, location VARCHAR, mascot VARCHAR)
SELECT circuit FROM table_1140105_6 WHERE race_name = "XI Syracuse Grand Prix"
What is the name of the circuit where the race xi Syracuse grand prix was held?
CREATE TABLE table_1140105_6 (circuit VARCHAR, race_name VARCHAR)
SELECT current_affiliation FROM table_name_62 WHERE years_owned = "1955–1995"
What is the current affiliation when the years owned is between 1955–1995?
CREATE TABLE table_name_62 (current_affiliation VARCHAR, years_owned VARCHAR)
SELECT percentage_of_land_area FROM table_15555661_2 WHERE percentage_protected = "15.28"
What is the percentage of land area in the ecozone that the percentage protected is 15.28?
CREATE TABLE table_15555661_2 (percentage_of_land_area VARCHAR, percentage_protected VARCHAR)
SELECT date FROM table_name_42 WHERE result = "0–0"
Which Date has a Result of 0–0?
CREATE TABLE table_name_42 (date VARCHAR, result VARCHAR)
SELECT visitor FROM table_name_17 WHERE decision = "mason" AND date = "january 29"
On January 29, who had the decision of Mason?
CREATE TABLE table_name_17 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
SELECT home FROM table_name_85 WHERE date = "january 4"
Who was the home team on January 4?
CREATE TABLE table_name_85 (home VARCHAR, date VARCHAR)
SELECT SUM(total_goals) FROM table_name_88 WHERE playoff_apps = "2" AND fa_cup_apps = "2" AND league_cup_goals < 0
How many total goals did the squad with 2 playoff apps, 2 FA Cup Apps, and 0 League Cup goals get?
CREATE TABLE table_name_88 (total_goals INTEGER, league_cup_goals VARCHAR, playoff_apps VARCHAR, fa_cup_apps VARCHAR)
SELECT opponent FROM table_name_47 WHERE score = "5:5"
WHAT OPPONENT HAD A SCORE OF 5:5?
CREATE TABLE table_name_47 (opponent VARCHAR, score VARCHAR)
SELECT vacator FROM table_225102_4 WHERE reason_for_change = "Died January 12, 1826"
Name the vacator for reason for change died january 12, 1826
CREATE TABLE table_225102_4 (vacator VARCHAR, reason_for_change VARCHAR)
SELECT dept_name, building FROM department WHERE budget > (SELECT AVG(budget) FROM department)
What is the name and building of the departments whose budget is more than the average budget?
CREATE TABLE department (dept_name VARCHAR, building VARCHAR, budget INTEGER)
SELECT place FROM table_name_84 WHERE score = 73 - 65 - 73 - 71 = 282
WHAT IS THE PLACE WITH A SCORE OF 73-65-73-71=282?
CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR)
SELECT report FROM table_2241101_1 WHERE year = 2010
What was the report for 2010?
CREATE TABLE table_2241101_1 (report VARCHAR, year VARCHAR)
SELECT SUM(drawn) FROM table_name_17 WHERE points = 6 AND against > 16
Which Drawn has a Points of 6, and a Against larger than 16?
CREATE TABLE table_name_17 (drawn INTEGER, points VARCHAR, against VARCHAR)
SELECT player FROM table_16494599_4 WHERE position = "Guard"
What players play guard?
CREATE TABLE table_16494599_4 (player VARCHAR, position VARCHAR)
SELECT literate_persons___percentage_ FROM table_14598_9 WHERE india_state_ut = "Andaman and Nicobar Islands"
What is the percentage of literate people where india is andaman and Nicobar Islands?
CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, india_state_ut VARCHAR)
SELECT country FROM table_name_58 WHERE score = 73 - 71 - 76 - 70 = 290
What is the Country of the Player with a Score of 73-71-76-70=290?
CREATE TABLE table_name_58 (country VARCHAR, score VARCHAR)