answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT city FROM table_name_61 WHERE icao = "oejn"
Which city has an ICAO of Oejn?
CREATE TABLE table_name_61 (city VARCHAR, icao VARCHAR)
SELECT notes FROM table_name_72 WHERE method = "points" AND event = "adcc 2001 absolute" AND result = "loss"
Tell me the notes with method of points and event of adcc 2001 absolute with result of loss
CREATE TABLE table_name_72 (notes VARCHAR, result VARCHAR, method VARCHAR, event VARCHAR)
SELECT general_classification FROM table_18733814_2 WHERE points_classification = "Alessandro Petacchi" AND young_rider_classification = "Thomas Löfkvist"
When thomas löfkvist is the young rider classification and alessandro petacchi is the points classification who are the general classifications?
CREATE TABLE table_18733814_2 (general_classification VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)
SELECT player FROM table_name_6 WHERE to_par = "e" AND country = "united states"
What player has E as the to par, and The United States as the country?
CREATE TABLE table_name_6 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id
List singer names and number of concerts for each singer.
CREATE TABLE singer_in_concert (singer_id VARCHAR); CREATE TABLE singer (name VARCHAR, singer_id VARCHAR)
SELECT nationality FROM table_name_70 WHERE player = "jon koncak"
What nationality has jon koncak as the player?
CREATE TABLE table_name_70 (nationality VARCHAR, player VARCHAR)
SELECT date FROM table_name_49 WHERE home_team = "footscray"
On what date was the home team Footscray?
CREATE TABLE table_name_49 (date VARCHAR, home_team VARCHAR)
SELECT result FROM table_2668401_12 WHERE incumbent = "Andrew Gregg"
What was the result for Andrew Gregg?
CREATE TABLE table_2668401_12 (result VARCHAR, incumbent VARCHAR)
SELECT rank__timeslot_ FROM table_20971444_3 WHERE viewers__millions_ = "11.59"
Name the rank timeslot for 11.59 viewers
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, viewers__millions_ VARCHAR)
SELECT MAX(assists) FROM table_29743928_3 WHERE country = "Panama"
How many is the high assist total for players from panama?
CREATE TABLE table_29743928_3 (assists INTEGER, country VARCHAR)
SELECT index FROM table_name_23 WHERE country = "singapore" AND name = "chen bangjun andie"
What is the Index number of Chen Bangjun Andie from Singapore?
CREATE TABLE table_name_23 (index VARCHAR, country VARCHAR, name VARCHAR)
SELECT COUNT(round) FROM table_name_24 WHERE overall = 211
How many rounds had an overall of 211?
CREATE TABLE table_name_24 (round VARCHAR, overall VARCHAR)
SELECT title FROM table_name_82 WHERE name = "rinnal"
What is Rinnal's title?
CREATE TABLE table_name_82 (title VARCHAR, name VARCHAR)
SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo"
Name province of 1936 viana do castelo
CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR)
SELECT AVG(crowd) FROM table_name_36 WHERE home_team = "north melbourne"
What is the average crowd size when the home team is North Melbourne?
CREATE TABLE table_name_36 (crowd INTEGER, home_team VARCHAR)
SELECT remaining_places_in_finals FROM table_23995075_2 WHERE teams_that_can_still_qualify = "1" AND teams_that_have_secured_qualification = "0"
How many remaining places in finals when 1 team can still qualify and 0 teams have secured qualification?
CREATE TABLE table_23995075_2 (remaining_places_in_finals VARCHAR, teams_that_can_still_qualify VARCHAR, teams_that_have_secured_qualification VARCHAR)
SELECT rank FROM table_name_93 WHERE silver = 0 AND gold < 2 AND nation = "turkmenistan"
What rank is Turkmenistan, who had 0 silver's and Less than 2 golds?
CREATE TABLE table_name_93 (rank VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT away_team FROM table_16388478_2 WHERE crowd = 13304
What were all the away teams when the crowd was 13304?
CREATE TABLE table_16388478_2 (away_team VARCHAR, crowd VARCHAR)
SELECT report FROM table_name_42 WHERE venue = "hisense arena"
What was the report for the game played at the Hisense Arena?
CREATE TABLE table_name_42 (report VARCHAR, venue VARCHAR)
SELECT division_north FROM table_17881033_1 WHERE division_south = "Kožuf" AND division_southwest = "Ilinden Velmej"
what is the division north when division south was kožuf and division southwest was ilinden velmej
CREATE TABLE table_17881033_1 (division_north VARCHAR, division_south VARCHAR, division_southwest VARCHAR)
SELECT group_12 FROM table_19523142_5 WHERE group_10 = "Persikutim East Kutai"
Who played in group 12 when persikutim east kutai played in group 10?
CREATE TABLE table_19523142_5 (group_12 VARCHAR, group_10 VARCHAR)
SELECT COUNT(_number) FROM table_27862483_3 WHERE date = "April 23"
How many different numbers are there for the game played on April 23?
CREATE TABLE table_27862483_3 (_number VARCHAR, date VARCHAR)
SELECT record FROM table_name_32 WHERE round = "3"
What was the score in Round 3?
CREATE TABLE table_name_32 (record VARCHAR, round VARCHAR)
SELECT original_air_date FROM table_15026994_2 WHERE viewing_figure = "7.27 million"
What original air dates are associated with a viewing figure of 7.27 million?
CREATE TABLE table_15026994_2 (original_air_date VARCHAR, viewing_figure VARCHAR)
SELECT country FROM table_name_18 WHERE player = "retief goosen"
What country is Retief Goosen from?
CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR)
SELECT COUNT(dvd_release) FROM table_19982699_1 WHERE director = "David DeCoteau"
How many dvd releases where directed by david decoteau?
CREATE TABLE table_19982699_1 (dvd_release VARCHAR, director VARCHAR)
SELECT rank FROM table_name_80 WHERE athletes = "andreas kiligkaridis"
What is Andreas Kiligkaridis rank?
CREATE TABLE table_name_80 (rank VARCHAR, athletes VARCHAR)
SELECT dáil FROM table_name_55 WHERE seats = 61
What is the number of the dail with 61 seats?
CREATE TABLE table_name_55 (dáil VARCHAR, seats VARCHAR)
SELECT final_place FROM table_23819979_3 WHERE last_match = "July 25, 2009"
Name the final place for july 25, 2009
CREATE TABLE table_23819979_3 (final_place VARCHAR, last_match VARCHAR)
SELECT MIN(attendance) FROM table_name_29 WHERE score = "5-4" AND loss = "williams (2-4)"
What was the lowest attendance at a game that had a score of 5-4 and a loss of Williams (2-4)?
CREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR, loss VARCHAR)
SELECT winning_driver FROM table_1137694_3 WHERE winning_constructor = "Jordan - Mugen-Honda"
Who drove the winning car constructed by Jordan - Mugen-Honda?
CREATE TABLE table_1137694_3 (winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT COUNT(third_year) FROM table_12148147_2 WHERE first_year = "Pag-unawa"
How many classes are taken in the third year when pag-unawa was taken in the first year?
CREATE TABLE table_12148147_2 (third_year VARCHAR, first_year VARCHAR)
SELECT AVG(overall) FROM table_name_56 WHERE name = "mark fischer"
WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER?
CREATE TABLE table_name_56 (overall INTEGER, name VARCHAR)
SELECT to_par FROM table_name_5 WHERE total < 296
Which to par has a total less than 296?
CREATE TABLE table_name_5 (to_par VARCHAR, total INTEGER)
SELECT MIN(season) FROM table_name_5 WHERE level < 1
Tell me the least season with level less than 1
CREATE TABLE table_name_5 (season INTEGER, level INTEGER)
SELECT type FROM table_name_75 WHERE date = "8 dec 16" AND ship = "duchess of cornwall"
What type has a Date of 8 dec 16, and a Ship of duchess of cornwall?
CREATE TABLE table_name_75 (type VARCHAR, date VARCHAR, ship VARCHAR)
SELECT AVG(year) FROM table_name_21 WHERE miss_fire__3rd_runner_up_ = "caroline medina"
What year was Caroline Medina Miss Fire (3rd Runner-up)?
CREATE TABLE table_name_21 (year INTEGER, miss_fire__3rd_runner_up_ VARCHAR)
SELECT id FROM trip ORDER BY duration LIMIT 1
What is the id of the trip that has the shortest duration?
CREATE TABLE trip (id VARCHAR, duration VARCHAR)
SELECT week_7 FROM table_name_62 WHERE week_3 = "35.90"
What is week 7 when week 3 is 35.90?
CREATE TABLE table_name_62 (week_7 VARCHAR, week_3 VARCHAR)
SELECT party FROM table_1342013_10 WHERE first_elected = 1914
Which party had a person who has been in the seat since 1914?
CREATE TABLE table_1342013_10 (party VARCHAR, first_elected VARCHAR)
SELECT date FROM table_name_41 WHERE result = "5-1"
When was there a result of 5-1?
CREATE TABLE table_name_41 (date VARCHAR, result VARCHAR)
SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa"
What lane was Henrique Barbosa in?
CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR)
SELECT MIN(revenue__) AS $m_ FROM table_name_95 WHERE rank = 14
What is the lowest revenue for the rank of 14?
CREATE TABLE table_name_95 (revenue__ INTEGER, rank VARCHAR)
SELECT COUNT(dominant_religion__2002_) FROM table_2562572_52 WHERE settlement = "Karlovčić"
How many times is the settlement karlovčić?
CREATE TABLE table_2562572_52 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
SELECT conf_record FROM table_27069503_2 WHERE standings = "First" AND season = "2003-04"
What was the conference record for the Pandas when they were first in the standings in the 2003-04 season?
CREATE TABLE table_27069503_2 (conf_record VARCHAR, standings VARCHAR, season VARCHAR)
SELECT member FROM table_11764007_2 WHERE week_sent_to_third_island = "1"
Who was sent to the third island in week 1?
CREATE TABLE table_11764007_2 (member VARCHAR, week_sent_to_third_island VARCHAR)
SELECT high_assists FROM table_23284271_10 WHERE record = "50-26"
Who has the high assists when 50-26 is the record?
CREATE TABLE table_23284271_10 (high_assists VARCHAR, record VARCHAR)
SELECT COUNT(variant) FROM table_28035004_1 WHERE bodybuilder = "Northern Counties"
How many different variants are there for Northern Counties bodybuilder?
CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR)
SELECT MIN(snatch) FROM body_builder
What is the minimum snatch score?
CREATE TABLE body_builder (snatch INTEGER)
SELECT method FROM table_name_75 WHERE round = "2" AND res = "win" AND opponent = "nick gilardi"
What is the method in the round 2 win over Nick Gilardi?
CREATE TABLE table_name_75 (method VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR)
SELECT COUNT(pick__number) FROM table_name_5 WHERE mls_team = "chicago fire"
Chicago fire has a total of a total of how many #s?
CREATE TABLE table_name_5 (pick__number VARCHAR, mls_team VARCHAR)
SELECT date FROM table_name_86 WHERE week > 15
What was the date of the game played after week 15?
CREATE TABLE table_name_86 (date VARCHAR, week INTEGER)
SELECT first_season_in_first_division FROM table_name_63 WHERE first_season_after_most_recent_promotion = "1959" AND name = "alianza"
When was Alianza's first season in first division with a promotion after 1959?
CREATE TABLE table_name_63 (first_season_in_first_division VARCHAR, first_season_after_most_recent_promotion VARCHAR, name VARCHAR)
SELECT MAX(titles) FROM table_name_9 WHERE current_run_since < 2013 AND club = "järve"
What is the highest number of titles won by the Järve club before 2013?
CREATE TABLE table_name_9 (titles INTEGER, current_run_since VARCHAR, club VARCHAR)
SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = "Peninha"
Where was the audition venue where Peninha was the guest fourth judge?
CREATE TABLE table_27615445_1 (audition_venue VARCHAR, guest_fourth_judge VARCHAR)
SELECT season FROM table_name_90 WHERE apps > 2 AND club = "internazionale"
In what Season does the Internazionale Club have more than 2 Apps?
CREATE TABLE table_name_90 (season VARCHAR, apps VARCHAR, club VARCHAR)
SELECT 1 AS st_leg FROM table_name_21 WHERE team_2 = "psv eindhoven"
What is the 1st leg of Team 2 PSV Eindhoven?
CREATE TABLE table_name_21 (team_2 VARCHAR)
SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa"
Which Losses have a Wimmera FL of minyip murtoa?
CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR)
SELECT date__yyyy_mm_dd_ FROM table_26950408_1 WHERE time___utc__ = "03:15:46"
What is the date for the UTC time of 03:15:46?
CREATE TABLE table_26950408_1 (date__yyyy_mm_dd_ VARCHAR, time___utc__ VARCHAR)
SELECT laid_down FROM table_name_37 WHERE pennant = "r29"
What is the laid down date of the destroyer with a r29 pennant?
CREATE TABLE table_name_37 (laid_down VARCHAR, pennant VARCHAR)
SELECT pick__number FROM table_name_49 WHERE round = 10
What is Pick #, when Round is "10"?
CREATE TABLE table_name_49 (pick__number VARCHAR, round VARCHAR)
SELECT record FROM table_name_84 WHERE week = 10
What was the record for the Chargers on Week 10?
CREATE TABLE table_name_84 (record VARCHAR, week VARCHAR)
SELECT MIN(lane) FROM table_name_68 WHERE mark = "8.09 pb"
What's the lowest lane found for a mark of 8.09 pb?
CREATE TABLE table_name_68 (lane INTEGER, mark VARCHAR)
SELECT days_with_rain__year_summer_ FROM table_12837_1 WHERE city_town = "Santiago de Compostela"
What is the days with rain figure for the city of Santiago de Compostela?
CREATE TABLE table_12837_1 (days_with_rain__year_summer_ VARCHAR, city_town VARCHAR)
SELECT rank_number FROM table_22098274_1 WHERE winning_pitcher = "Kelli Miller"
What is the rank # of kelli miller the winning pitcher?
CREATE TABLE table_22098274_1 (rank_number VARCHAR, winning_pitcher VARCHAR)
SELECT home_team FROM table_name_25 WHERE tie_no = "replay" AND date = "19 november 1985" AND away_team = "tranmere rovers"
Which Home team has a Tie no of replay, a Date of 19 november 1985, and an Away team of tranmere rovers?
CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM park WHERE city = 'Atlanta'
How many parks are there in Atlanta city?
CREATE TABLE park (city VARCHAR)
SELECT team FROM table_name_48 WHERE laps = 5
What is the Team with a Lap that is 5?
CREATE TABLE table_name_48 (team VARCHAR, laps VARCHAR)
SELECT MIN(wins) FROM table_24584486_1 WHERE poles = 10
What was the least amount of wins when he had 10 poles?
CREATE TABLE table_24584486_1 (wins INTEGER, poles VARCHAR)
SELECT COUNT(musical_guest_and_song) FROM table_11951237_2 WHERE production_code = "K0519"
How many musical guests and songs were in episodes with a production code k0519?
CREATE TABLE table_11951237_2 (musical_guest_and_song VARCHAR, production_code VARCHAR)
SELECT away_team FROM table_name_59 WHERE venue = "windy hill"
Who was the away team when the venue was Windy Hill?
CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR)
SELECT catalog FROM table_name_74 WHERE label = "alfa records"
What is the catalog number of Alfa records?
CREATE TABLE table_name_74 (catalog VARCHAR, label VARCHAR)
SELECT land___sqmi__ FROM table_18600760_4 WHERE geo_id = 3807717980
Name the land where geo id is 3807717980
CREATE TABLE table_18600760_4 (land___sqmi__ VARCHAR, geo_id VARCHAR)
SELECT COUNT(version) FROM table_28540539_2 WHERE release = "1.0.12"
What's the number of the 1.0.12 release version?
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
SELECT counting_method FROM table_name_89 WHERE basis = "network-centric"
What is the counting method for a network-centric basis?
CREATE TABLE table_name_89 (counting_method VARCHAR, basis VARCHAR)
SELECT score_in_the_final FROM table_22834834_2 WHERE year = 1994
What is the score in the final in the year 1994?
CREATE TABLE table_22834834_2 (score_in_the_final VARCHAR, year VARCHAR)
SELECT eliminated FROM table_24233848_2 WHERE finish = "7th voted Out Day 21"
Name the eliminated 7th voted out day 21
CREATE TABLE table_24233848_2 (eliminated VARCHAR, finish VARCHAR)
SELECT team FROM table_20016339_1 WHERE motorcycle = "Honda"
What's the name of the team who had a Honda motorcycle?
CREATE TABLE table_20016339_1 (team VARCHAR, motorcycle VARCHAR)
SELECT * FROM chip_model
Find the details for all chip models.
CREATE TABLE chip_model (Id VARCHAR)
SELECT MAX(num_of_shops), AVG(Num_of_Factories) FROM manufacturer WHERE open_year < 1990
what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.
CREATE TABLE manufacturer (num_of_shops INTEGER, Num_of_Factories INTEGER, open_year INTEGER)
SELECT COUNT(population__2010_census_) FROM table_232458_1 WHERE pop_density__per_km²_ = "7,447.32"
If the population density is 7,447.32, what is the population total number?
CREATE TABLE table_232458_1 (population__2010_census_ VARCHAR, pop_density__per_km²_ VARCHAR)
SELECT COUNT(original_title) FROM table_22034853_1 WHERE film_title_used_in_nomination = "If the Sun Never Returns"
How many original titles were listed as "If the Sun Never Returns"?
CREATE TABLE table_22034853_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT nfl_team FROM table_14650162_1 WHERE college = "Minnesota"
What is the NFL team of the player whose college is Minnesota?
CREATE TABLE table_14650162_1 (nfl_team VARCHAR, college VARCHAR)
SELECT result FROM table_name_42 WHERE game = "game 3"
What was the result of game 3?
CREATE TABLE table_name_42 (result VARCHAR, game VARCHAR)
SELECT Studio FROM film WHERE Director = "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director = "Walter Hill"
Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill".
CREATE TABLE film (Studio VARCHAR, Director VARCHAR)
SELECT origin FROM table_name_57 WHERE in_service = 1
For the vessel with a listed In service of 1, what is the origin given?
CREATE TABLE table_name_57 (origin VARCHAR, in_service VARCHAR)
SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280
what is the to par for $242,813 with score 68-72-74-66=280
CREATE TABLE table_name_83 (to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT away_team AS score FROM table_name_13 WHERE away_team = "north melbourne"
What is the Away team score for Away team North Melbourne?
CREATE TABLE table_name_13 (away_team VARCHAR)
SELECT date FROM table_name_89 WHERE loss = "lidle (10-8)"
What was the date of the game that had a loss of lidle (10-8)?
CREATE TABLE table_name_89 (date VARCHAR, loss VARCHAR)
SELECT vocal_percussionist FROM table_28715942_6 WHERE track = "Sex Bomb"
Who is the vocal percussionist for Sex Bomb?
CREATE TABLE table_28715942_6 (vocal_percussionist VARCHAR, track VARCHAR)
SELECT home FROM table_name_25 WHERE visitor = "detroit" AND date = "february 29"
Name the home for detroit visitor and date of february 29
CREATE TABLE table_name_25 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT winning_constructor FROM table_name_42 WHERE name = "paris cup"
Tell me the winning constructor for the paris cup
CREATE TABLE table_name_42 (winning_constructor VARCHAR, name VARCHAR)
SELECT SUM(rank) FROM table_name_6 WHERE area__km_2__ = 1050.14
What's the total of Rank that has an Area (KM 2) of 1050.14?
CREATE TABLE table_name_6 (rank INTEGER, area__km_2__ VARCHAR)
SELECT SUM(gold) FROM table_name_23 WHERE total = 5 AND bronze < 2
What is the sum of gold medals won by teams that won 5 total medals and fewer than 2 bronze medals?
CREATE TABLE table_name_23 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT team FROM table_name_37 WHERE losses < 2 AND pos > 1
Which team had fewer than 2 losses and a position number more than 1?
CREATE TABLE table_name_37 (team VARCHAR, losses VARCHAR, pos VARCHAR)
SELECT MIN(decile) FROM table_name_2 WHERE years = "1-6" AND area = "maitland"
What is the lowest decile with 1-6 years and area of Maitland?
CREATE TABLE table_name_2 (decile INTEGER, years VARCHAR, area VARCHAR)
SELECT COUNT(to_par) FROM table_name_65 WHERE year_s__won = "2003" AND total > 145
What is the To par for the player that won in 2003, with a total larger than 145?
CREATE TABLE table_name_65 (to_par VARCHAR, year_s__won VARCHAR, total VARCHAR)
SELECT AVG(crowd) FROM table_name_8 WHERE away_team = "fitzroy"
What was the attendance when Fitzroy played as the away team?
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
SELECT venue FROM table_name_72 WHERE competition = "friendly" AND date = "17 december 1967"
Where was the friendly competition on 17 December 1967 played at?
CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT season FROM table_23224961_2 WHERE mittelfranken_süd = "ASV Nürnberg-Süd"
When asv nürnberg-süd is the mittelfranken süd what is the season?
CREATE TABLE table_23224961_2 (season VARCHAR, mittelfranken_süd VARCHAR)