answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT Name, Birth_Date FROM people ORDER BY Name
List the names and birth dates of people in ascending alphabetical order of name.
CREATE TABLE people (Name VARCHAR, Birth_Date VARCHAR)
SELECT venue FROM table_name_55 WHERE position = "7th"
What venue did he finish 7th?
CREATE TABLE table_name_55 (venue VARCHAR, position VARCHAR)
SELECT home_team FROM table_name_13 WHERE away_team = "geelong"
Who was Geelong's home opponent?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT lost FROM table_12828723_3 WHERE points_for = "594"
what's the loss with points for being 594
CREATE TABLE table_12828723_3 (lost VARCHAR, points_for VARCHAR)
SELECT Earnings FROM poker_player ORDER BY Earnings DESC
List the earnings of poker players in descending order.
CREATE TABLE poker_player (Earnings VARCHAR)
SELECT COUNT(points) FROM table_name_18 WHERE played > 14
What is the Points with a Played larger than 14?
CREATE TABLE table_name_18 (points VARCHAR, played INTEGER)
SELECT nationality FROM table_name_79 WHERE position = "c"
What is the nationality of the C?
CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR)
SELECT year FROM table_name_15 WHERE label - Nr = 88146
Which Year has a Label-Nr of 88146?
CREATE TABLE table_name_15 (year VARCHAR, label VARCHAR, Nr VARCHAR)
SELECT season FROM table_name_10 WHERE wins = "29" AND finish = "3rd"
In which season were there Wins of 29 and a Finished place of 3rd?
CREATE TABLE table_name_10 (season VARCHAR, wins VARCHAR, finish VARCHAR)
SELECT score FROM table_name_52 WHERE attendance = "4 679"
What is the Score that has an Attendance of 4 679?
CREATE TABLE table_name_52 (score VARCHAR, attendance VARCHAR)
SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = "graeme brown"
Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown
CREATE TABLE table_name_8 (points_classification_navy_blue_jersey VARCHAR, general_classification_yellow_jersey VARCHAR)
SELECT partner FROM table_name_22 WHERE surface = "carpet"
Who was his partner when he played on carpet?
CREATE TABLE table_name_22 (partner VARCHAR, surface VARCHAR)
SELECT prime_mover FROM table_name_87 WHERE model = "fm cfa-16-4"
What is Prime Mover of Model FM CFA-16-4?
CREATE TABLE table_name_87 (prime_mover VARCHAR, model VARCHAR)
SELECT player FROM table_name_15 WHERE to_par = "e" AND score = 67 - 73 = 140
Which player has a to par of e and a score of 67-73=140?
CREATE TABLE table_name_15 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_89 WHERE week = 8
Who were the opponents on Week 8?
CREATE TABLE table_name_89 (opponent VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_36 WHERE date = "october 19, 2003"
what is the attendance on october 19, 2003?
CREATE TABLE table_name_36 (attendance VARCHAR, date VARCHAR)
SELECT time FROM table_name_95 WHERE notes = "q" AND country = "australia"
What time has q as the notes, and Australia as the country?
CREATE TABLE table_name_95 (time VARCHAR, notes VARCHAR, country VARCHAR)
SELECT acceleration_0_100km_h__0_62mph_ FROM table_1857216_1 WHERE production = "2002-2006"
What is the acceleration 0-100km/h that was produced in 2002-2006?
CREATE TABLE table_1857216_1 (acceleration_0_100km_h__0_62mph_ VARCHAR, production VARCHAR)
SELECT COUNT(max__number_of_players) FROM table_name_24 WHERE developer = "sega" AND main_title___alternate_title_s_ = "hang-on (cartridge version)"
What is the maximum number of players for the sega game, hang-on (cartridge version)?
CREATE TABLE table_name_24 (max__number_of_players VARCHAR, developer VARCHAR, main_title___alternate_title_s_ VARCHAR)
SELECT score_in_the_final FROM table_name_7 WHERE championship = "french open"
What was the score of the French Open?
CREATE TABLE table_name_7 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT revising_convention_s_ FROM table_2001348_1 WHERE field = "trimmers and stokers"
What was the revising convention of the field 'trimmers and stokers'?
CREATE TABLE table_2001348_1 (revising_convention_s_ VARCHAR, field VARCHAR)
SELECT MIN(track) FROM table_name_98 WHERE production_credits = "margret arranged by e. mergency"
What is the first track where the production credit is margret arranged by e. mergency?
CREATE TABLE table_name_98 (track INTEGER, production_credits VARCHAR)
SELECT AVG(points) FROM table_name_45 WHERE position = 8
How many Points has a Position of 8?
CREATE TABLE table_name_45 (points INTEGER, position VARCHAR)
SELECT no4 FROM table_name_46 WHERE no5 = "susana telmo"
Who is the no. 4 team that has the no. 5 player Susana Telmo?
CREATE TABLE table_name_46 (no4 VARCHAR, no5 VARCHAR)
SELECT Name FROM artwork WHERE TYPE <> "Program Talent Show"
List the name of artworks whose type is not "Program Talent Show".
CREATE TABLE artwork (Name VARCHAR, TYPE VARCHAR)
SELECT SUM(year) FROM table_name_85 WHERE community_award = "jarrod harbrow"
Which Year has a Community Award of jarrod harbrow?
CREATE TABLE table_name_85 (year INTEGER, community_award VARCHAR)
SELECT slalom FROM table_name_98 WHERE super_g = "4"
Which Slalom has a Super G of 4?
CREATE TABLE table_name_98 (slalom VARCHAR, super_g VARCHAR)
SELECT date_in_service FROM table_24837750_1 WHERE installed_capacity__mw_ = "135"
When did this wind farm started service with a capacity of 135 MW?
CREATE TABLE table_24837750_1 (date_in_service VARCHAR, installed_capacity__mw_ VARCHAR)
SELECT airdate FROM table_23122988_1 WHERE headliner = "Rhod Gilbert"
What date did the show air when Rhod Gilbert was the headliner?
CREATE TABLE table_23122988_1 (airdate VARCHAR, headliner VARCHAR)
SELECT player FROM table_name_97 WHERE score = "6–4, 7–6 (7–5)"
Which Player has a Score of 6–4, 7–6 (7–5)?
CREATE TABLE table_name_97 (player VARCHAR, score VARCHAR)
SELECT friday FROM table_name_25 WHERE tuesday = "jay mohr sports"
What is shown on Friday when Tuesday is Jay Mohr Sports?
CREATE TABLE table_name_25 (friday VARCHAR, tuesday VARCHAR)
SELECT platform FROM table_name_97 WHERE system = "nintendo ds" AND name = "nds4droid"
What platform is nds4droid on for the nintendo ds?
CREATE TABLE table_name_97 (platform VARCHAR, system VARCHAR, name VARCHAR)
SELECT MIN(total_points) FROM table_name_73 WHERE details = "2001 nrl grand final"
For the match that had detail of 2001 nrl grand final, what was the lowest total points?
CREATE TABLE table_name_73 (total_points INTEGER, details VARCHAR)
SELECT pop__1996_ FROM table_2134521_1 WHERE area__km²_ = "9909.31"
How many people lived in the census division spread out on 9909.31 km2 in 1996?
CREATE TABLE table_2134521_1 (pop__1996_ VARCHAR, area__km²_ VARCHAR)
SELECT position FROM table_name_86 WHERE round > 21
What Position has a Round that's larger than 21?
CREATE TABLE table_name_86 (position VARCHAR, round INTEGER)
SELECT candidates FROM table_1342315_10 WHERE district = "Georgia 4"
Who ran for office at the Georgia 4 district in this election?
CREATE TABLE table_1342315_10 (candidates VARCHAR, district VARCHAR)
SELECT COUNT(rank_final) FROM table_name_68 WHERE year > 2008 AND apparatus = "balance beam" AND rank_qualifying > 4
Count the Rank-Final which has a Year larger than 2008, and an Apparatus of balance beam, and a Rank-Qualifying larger than 4?
CREATE TABLE table_name_68 (rank_final VARCHAR, rank_qualifying VARCHAR, year VARCHAR, apparatus VARCHAR)
SELECT persian FROM table_name_84 WHERE domari = "na"
What Persian word has the same meaning as the Domari word na?
CREATE TABLE table_name_84 (persian VARCHAR, domari VARCHAR)
SELECT MIN(red_cards) FROM table_name_55 WHERE season = "1998/1999" AND games > 41
Which Red Cards has a Season of 1998/1999, and a Games larger than 41?
CREATE TABLE table_name_55 (red_cards INTEGER, season VARCHAR, games VARCHAR)
SELECT buena_vista_edition FROM table_25173505_13 WHERE special_edition = "Koichi Sakaguchi"
who is the buena vista edidtion where special edition is koichi sakaguchi?
CREATE TABLE table_25173505_13 (buena_vista_edition VARCHAR, special_edition VARCHAR)
SELECT MIN(week) FROM table_name_43 WHERE opponent = "at san francisco 49ers"
Opponent of at san francisco 49ers had what lowest week?
CREATE TABLE table_name_43 (week INTEGER, opponent VARCHAR)
SELECT current_car FROM table_name_54 WHERE number_of_cars = 1 AND year_started = 1999
Which Current car has a Number of cars of 1, and a Year started of 1999?
CREATE TABLE table_name_54 (current_car VARCHAR, number_of_cars VARCHAR, year_started VARCHAR)
SELECT MAX(joined) FROM table_1969577_1 WHERE institution = "Molloy College"
Name the most joined for molloy college
CREATE TABLE table_1969577_1 (joined INTEGER, institution VARCHAR)
SELECT nation FROM table_name_74 WHERE second = "glenys bakker"
Glenys Bakker was second for which nation?
CREATE TABLE table_name_74 (nation VARCHAR, second VARCHAR)
SELECT height_in_ft FROM table_name_11 WHERE school_club_team_country = "illinois"
What is the height in feet of the Illinois player?
CREATE TABLE table_name_11 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT position FROM table_24540893_6 WHERE school = "Kent State"
What position does the player from kent state play?
CREATE TABLE table_24540893_6 (position VARCHAR, school VARCHAR)
SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010
Find the name of students who took any class in the years of 2009 and 2010.
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (id VARCHAR)
SELECT venue FROM table_name_63 WHERE year = 2005 AND result = "8th"
What is Venue, when Year is 2005, and when Result is 8th?
CREATE TABLE table_name_63 (venue VARCHAR, year VARCHAR, result VARCHAR)
SELECT SUM(distance) FROM table_name_73 WHERE county = "faulkner" AND total < 1.5
How much Distance has a County of faulkner, and a Total smaller than 1.5?
CREATE TABLE table_name_73 (distance INTEGER, county VARCHAR, total VARCHAR)
SELECT COUNT(pick) FROM table_name_51 WHERE college = "hawaii" AND overall < 122
How many Picks have a College of hawaii, and an Overall smaller than 122?
CREATE TABLE table_name_51 (pick VARCHAR, college VARCHAR, overall VARCHAR)
SELECT chassis FROM table_name_61 WHERE entrant = "trivellato racing team"
Can you tell me the Chassis that has the Entrant of trivellato racing team?
CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR)
SELECT dates_administered FROM table_20597634_3 WHERE scott_mcadams__d_ = "23%"
When 23% scott mcadams (d) what are the dates administered?
CREATE TABLE table_20597634_3 (dates_administered VARCHAR, scott_mcadams__d_ VARCHAR)
SELECT type FROM table_name_42 WHERE incorporated_in = "hong kong" AND principal_activities = "travel agency" AND company = "cathay pacific holidays"
What is the type for the Cathay Pacific Holidays company, an incorporation of Hong Kong and listed activities as Travel Agency?
CREATE TABLE table_name_42 (type VARCHAR, company VARCHAR, incorporated_in VARCHAR, principal_activities VARCHAR)
SELECT result FROM table_name_74 WHERE score = "2 – 0" AND competition = "2006 fifa world cup qualification"
Which Result has a Score of 2 – 0, and a Competition of 2006 fifa world cup qualification?
CREATE TABLE table_name_74 (result VARCHAR, score VARCHAR, competition VARCHAR)
SELECT est FROM table_name_96 WHERE state_province = "illinois" AND city = "chicago" AND league = "nfl"
In what year was the NFL team in chicago illinois established?
CREATE TABLE table_name_96 (est VARCHAR, league VARCHAR, state_province VARCHAR, city VARCHAR)
SELECT SUM(height__m_) FROM table_name_22 WHERE height__ft_ < 380.6
What is the total height in meters for the building that has a less than 380.6 feet height?
CREATE TABLE table_name_22 (height__m_ INTEGER, height__ft_ INTEGER)
SELECT MAX(first_elected) FROM table_name_73 WHERE party = "dem" AND district > 24 AND home_city_town = "berlin"
Which First elected is the highest one that has a Party of dem, and a District larger than 24, and a Home city/town of berlin?
CREATE TABLE table_name_73 (first_elected INTEGER, home_city_town VARCHAR, party VARCHAR, district VARCHAR)
SELECT nfl_recap FROM table_name_70 WHERE date = "december 24, 2005"
What was the NFL Recap of the game held on December 24, 2005?
CREATE TABLE table_name_70 (nfl_recap VARCHAR, date VARCHAR)
SELECT no FROM table_26745820_1 WHERE distance = "4168km"
what is the no when the distance is 4168km?
CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR)
SELECT class FROM table_name_96 WHERE quantity = 4
what is the class when the quantity is 4?
CREATE TABLE table_name_96 (class VARCHAR, quantity VARCHAR)
SELECT tournament FROM table_name_50 WHERE opponent = "laura gildemeister"
In what Tournament was laura Gildemeister the Opponent?
CREATE TABLE table_name_50 (tournament VARCHAR, opponent VARCHAR)
SELECT home_team FROM table_name_21 WHERE away_team = "lincoln city"
What is the home team that had an away team of lincoln city?
CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_64 WHERE result = "10–0" AND score = "3–0"
What is the Venue with a Result of 10–0, and a Score with 3–0?
CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR, score VARCHAR)
SELECT AVG(election_year) FROM table_name_61 WHERE birth_state = "lost connecticut"
What is the election year of the president with a Birth State of lost connecticut?
CREATE TABLE table_name_61 (election_year INTEGER, birth_state VARCHAR)
SELECT MIN(production_no) FROM table_1439096_1
What is the lowest production number?
CREATE TABLE table_1439096_1 (production_no INTEGER)
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 2 AND rank < 4 AND silver < 1
What is the total for the team with fewer than 2 bronze, ranked less than 4 and fewer than 1 silver?
CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT series FROM table_name_38 WHERE title = "egghead rides again"
What series was called Egghead Rides Again?
CREATE TABLE table_name_38 (series VARCHAR, title VARCHAR)
SELECT MAX(position) FROM table_name_16 WHERE against < 49 AND drawn = 4
Which Position has an Against smaller than 49, and a Drawn of 4?
CREATE TABLE table_name_16 (position INTEGER, against VARCHAR, drawn VARCHAR)
SELECT attendance FROM table_name_33 WHERE record = "6–8"
Record of 6–8 had what attendance?
CREATE TABLE table_name_33 (attendance VARCHAR, record VARCHAR)
SELECT player FROM table_1965650_11 WHERE college_junior_club_team = "University of Michigan (NCAA)"
Who came from the University of Michigan (NCAA) team?
CREATE TABLE table_1965650_11 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT nationality FROM table_name_15 WHERE nba_team = "phoenix suns" AND pick = 52
What is the nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns?
CREATE TABLE table_name_15 (nationality VARCHAR, nba_team VARCHAR, pick VARCHAR)
SELECT date FROM table_name_47 WHERE winning_driver = "graham hill" AND circuit = "nürburgring"
What is the date of the circuit of nürburgring, which had Graham Hill as the winning driver?
CREATE TABLE table_name_47 (date VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT part_4 FROM table_name_88 WHERE class = "7b"
What is the part 4 entry for class 7b?
CREATE TABLE table_name_88 (part_4 VARCHAR, class VARCHAR)
SELECT COUNT(place) FROM table_name_10 WHERE artist = "rosie hunter" AND draw > 1
What is the Place of the Song by Artist Rosie Hunter with a Draw of 1 or larger?
CREATE TABLE table_name_10 (place VARCHAR, artist VARCHAR, draw VARCHAR)
SELECT Country FROM market ORDER BY Country
List all countries of markets in ascending alphabetical order.
CREATE TABLE market (Country VARCHAR)
SELECT australian FROM table_name_50 WHERE examples = "elysium, emeritus, epitome, erotica"
What is Australian, when Examples is "elysium, emeritus, epitome, erotica"?
CREATE TABLE table_name_50 (australian VARCHAR, examples VARCHAR)
SELECT teleplay_by FROM table_26914076_4 WHERE directed_by = "Tim Robbins"
Who wrote the teleplay for the episode directed by Tim Robbins?
CREATE TABLE table_26914076_4 (teleplay_by VARCHAR, directed_by VARCHAR)
SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1
Find the name and country of origin for all artists who have release at least one song of resolution above 900.
CREATE TABLE song (artist_name VARCHAR, resolution INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)
SELECT score FROM table_name_10 WHERE game > 49 AND opponent = "pittsburgh ironmen"
What is Score, when Game is greater than 49, and when Opponent is "Pittsburgh Ironmen"?
CREATE TABLE table_name_10 (score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT total FROM table_name_99 WHERE year_s__won = "1977"
What is the total for the year (s) won in 1977?
CREATE TABLE table_name_99 (total VARCHAR, year_s__won VARCHAR)
SELECT COUNT(profit_before_taxation__s) AS $m_ FROM table_161591_2 WHERE operating_profit__s$m_ = "717.1"
How many years was the operating profit (s$m) 717.1?
CREATE TABLE table_161591_2 (profit_before_taxation__s VARCHAR, operating_profit__s$m_ VARCHAR)
SELECT MAX(year) FROM table_name_36 WHERE venue = "gothenburg, sweden"
When is the latest year the venue is in gothenburg, sweden?
CREATE TABLE table_name_36 (year INTEGER, venue VARCHAR)
SELECT score FROM table_name_4 WHERE away_team = "west ham united"
What was the score when the away team was West Ham United?
CREATE TABLE table_name_4 (score VARCHAR, away_team VARCHAR)
SELECT directed_by FROM table_21726793_1 WHERE production_code = "2T5710"
who directed the production code 2t5710?
CREATE TABLE table_21726793_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT AVG(pick) FROM table_name_7 WHERE player = "jay bruchak" AND round < 6
How many picks on average did Jay Bruchak have before round 6?
CREATE TABLE table_name_7 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT surface FROM table_name_74 WHERE opponents_in_the_final = "mark edmondson sherwood stewart" AND tournament = "dallas , u.s."
which Surface has Opponents in the final of mark edmondson sherwood stewart, and a Tournament of dallas , u.s.?
CREATE TABLE table_name_74 (surface VARCHAR, opponents_in_the_final VARCHAR, tournament VARCHAR)
SELECT name FROM table_name_17 WHERE website = "liderinformativo.com"
What is the name of the newspaper with the website liderinformativo.com ?
CREATE TABLE table_name_17 (name VARCHAR, website VARCHAR)
SELECT competition FROM table_name_85 WHERE score = "7–0"
What competition has a Score of 7–0?
CREATE TABLE table_name_85 (competition VARCHAR, score VARCHAR)
SELECT score FROM table_name_35 WHERE competition = "vfl reserves" AND venue = "mcg" AND year = "1971"
In 1971 at MCG, what was the score of the VFL Reserves?
CREATE TABLE table_name_35 (score VARCHAR, year VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT top_speed FROM table_name_4 WHERE model = "slk200k" AND power = "122kw (163hp)"
What is the top speed of the SLK200K that produces 122kw (163hp)?
CREATE TABLE table_name_4 (top_speed VARCHAR, model VARCHAR, power VARCHAR)
SELECT tamil_months FROM table_name_89 WHERE english_transliteration = "mun-pani"
What are the months in Tamil that has an english transliteration of Mun-pani?
CREATE TABLE table_name_89 (tamil_months VARCHAR, english_transliteration VARCHAR)
SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 2
What are the names of parties with at least 2 events?
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR)
SELECT state FROM table_name_47 WHERE appointment = "jul 12, 2001"
What state has an appointment for jul 12, 2001?
CREATE TABLE table_name_47 (state VARCHAR, appointment VARCHAR)
SELECT visitor FROM table_name_15 WHERE series = "2 – 1"
Which Visitor has a Series of 2 – 1?
CREATE TABLE table_name_15 (visitor VARCHAR, series VARCHAR)
SELECT COUNT(position) FROM table_15463188_17 WHERE season = "2009"
How many players with a position are listed for the 2009 season?
CREATE TABLE table_15463188_17 (position VARCHAR, season VARCHAR)
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_doubles = "Anneke Feinya Agustin Wenny Setiawati"
When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?
CREATE TABLE table_14319023_2 (mixed_doubles VARCHAR, girls_doubles VARCHAR)
SELECT score FROM table_name_23 WHERE home_team = "notts county"
What score has notts county as the home team?
CREATE TABLE table_name_23 (score VARCHAR, home_team VARCHAR)
SELECT episode FROM table_28688313_1 WHERE _number = 19
What are the titles of episodes numbered 19?
CREATE TABLE table_28688313_1 (episode VARCHAR, _number VARCHAR)
SELECT COUNT(bronze) FROM table_name_45 WHERE nation = "u.s. virgin islands" AND gold < 0
What is the total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has?
CREATE TABLE table_name_45 (bronze VARCHAR, nation VARCHAR, gold VARCHAR)
SELECT départ_de_la_main_gauche FROM table_name_26 WHERE mode = "do"
What is the Depart de la main gauche of the do Mode?
CREATE TABLE table_name_26 (départ_de_la_main_gauche VARCHAR, mode VARCHAR)