answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT flying_hours FROM table_105344_2 WHERE aircraft_kilometers > 64379058.0
How many hours were flown in each of the years where more than 64379058.0 kilometers were flown?
CREATE TABLE table_105344_2 (flying_hours VARCHAR, aircraft_kilometers INTEGER)
SELECT agg FROM table_name_63 WHERE team_1 = "cd elá nguema"
What is Agg., when Team 1 is CD Elá Nguema?
CREATE TABLE table_name_63 (agg VARCHAR, team_1 VARCHAR)
SELECT COUNT(crowd) FROM table_name_97 WHERE home_team = "melbourne victory"
Im the match where the home team is Melbourne Victory, what was the crowd attendance?
CREATE TABLE table_name_97 (crowd VARCHAR, home_team VARCHAR)
SELECT hometown FROM table_14342367_13 WHERE player = "George W. Gregory"
Where is George W. Gregory from?
CREATE TABLE table_14342367_13 (hometown VARCHAR, player VARCHAR)
SELECT nickname_s_ FROM table_name_65 WHERE location = "elkville, illinois"
What Nickname(s) has a Location of elkville, illinois?
CREATE TABLE table_name_65 (nickname_s_ VARCHAR, location VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE home_team = "footscray"
What was Home team Footscray's score?
CREATE TABLE table_name_52 (home_team VARCHAR)
SELECT at_columbia FROM table_16201038_5 WHERE overall_record = "MU, 3-1"
What is the record at Columbia for the team overall record of MU, 3-1?
CREATE TABLE table_16201038_5 (at_columbia VARCHAR, overall_record VARCHAR)
SELECT SUM(stand) FROM table_name_31 WHERE qual > 589
What is the sum of the stand with a qual more than 589?
CREATE TABLE table_name_31 (stand INTEGER, qual INTEGER)
SELECT MAX(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "86.6"
What is the gdp per capita in 2008 for the region with a combined gross enrollment ratio of 86.6 in 2009?
CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR)
SELECT ranking FROM table_name_25 WHERE gold < 20 AND event = "1976 toronto"
What Ranking has Gold less than 20 and the Event 1976 Toronto?
CREATE TABLE table_name_25 (ranking VARCHAR, gold VARCHAR, event VARCHAR)
SELECT COUNT(silver) FROM table_name_35 WHERE gold = 1 AND bronze < 0
What is the total number of Silver, when Gold is "1", and when Bronze is less than 0?
CREATE TABLE table_name_35 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT division_record FROM table_name_79 WHERE school = "milford"
The Milford School has what Division Record?
CREATE TABLE table_name_79 (division_record VARCHAR, school VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "goverdhan"
What Reserved for (SC / ST /None) with a Name of goverdhan?
CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = "Love Never Dies"
what is the mexico stat where mañana es para siempre is love never dies
CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR)
SELECT _number FROM table_20745746_1 WHERE record = "Loss"
How many games resulted in a loss?
CREATE TABLE table_20745746_1 (_number VARCHAR, record VARCHAR)
SELECT date FROM table_name_21 WHERE saros > 124 AND type = "total" AND magnitude > 1.0535 AND time__greatest_ = "20:55:28"
what is the date when saros is more than 124, the type is total, the magnitude is more than 1.0535 and the time (greatest) is 20:55:28?
CREATE TABLE table_name_21 (date VARCHAR, time__greatest_ VARCHAR, magnitude VARCHAR, saros VARCHAR, type VARCHAR)
SELECT MAX(win__percentage) FROM table_name_91 WHERE drawn = 13
Name the most win % for 13 drawn
CREATE TABLE table_name_91 (win__percentage INTEGER, drawn VARCHAR)
SELECT AVG(total) FROM table_name_3 WHERE rank > 1 AND bronze > 8
What is the average Total with a Rank greater than 1, and a Bronze larger than 8?
CREATE TABLE table_name_3 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(points) FROM table_name_77 WHERE played < 30
What is the average points with less than 30 played?
CREATE TABLE table_name_77 (points INTEGER, played INTEGER)
SELECT area__hectare_ FROM table_name_22 WHERE parish = "worth"
What is the area for Worth Parish?
CREATE TABLE table_name_22 (area__hectare_ VARCHAR, parish VARCHAR)
SELECT score FROM table_17058178_8 WHERE game = 38
What was the final score in game 38?
CREATE TABLE table_17058178_8 (score VARCHAR, game VARCHAR)
SELECT model_number FROM table_name_19 WHERE frequency = "750 mhz" AND socket = "bga2μpga2"
Which model has a frequency of 750 mhz and a socket of bga2μpga2?
CREATE TABLE table_name_19 (model_number VARCHAR, frequency VARCHAR, socket VARCHAR)
SELECT date_of_vacancy FROM table_22297140_3 WHERE outgoing_manager = "Behtash Fariba"
What was the date in which Behtash Fariba left his team?
CREATE TABLE table_22297140_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(dirty_electric_grid_rocky_mountains__denver_) FROM table_23840623_4 WHERE epa_rated_combined_fuel_economy = "102 mpg-e (33kW-hrs/100mi)"
How many dirty electric grid rocky mountains (denver) vehicles have an epa rated combined fuel economy of 102 mpg-e (33kw-hrs/100mi)?
CREATE TABLE table_23840623_4 (dirty_electric_grid_rocky_mountains__denver_ VARCHAR, epa_rated_combined_fuel_economy VARCHAR)
SELECT T1.pName, T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
Find the name and college of students whose decisions are yes in the tryout.
CREATE TABLE tryout (cName VARCHAR, pID VARCHAR, decision VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR)
SELECT agg FROM table_name_12 WHERE team_1 = "seba united"
Name the agg for seba united
CREATE TABLE table_name_12 (agg VARCHAR, team_1 VARCHAR)
SELECT venue FROM table_name_89 WHERE past_season = "2nd"
What Venue has a Past Season of 2nd?
CREATE TABLE table_name_89 (venue VARCHAR, past_season VARCHAR)
SELECT COUNT(position) FROM table_10160447_1 WHERE driver = "Robby Gordon"
what's the total number of position with driver  robby gordon
CREATE TABLE table_10160447_1 (position VARCHAR, driver VARCHAR)
SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = "+15%"
What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%
CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR)
SELECT winnings FROM table_2463383_2 WHERE year = 2004
Name the winnings for 2004
CREATE TABLE table_2463383_2 (winnings VARCHAR, year VARCHAR)
SELECT guests FROM table_26733129_1 WHERE air_date = "7 June 2010"
What were the guests that aired on 7 June 2010?
CREATE TABLE table_26733129_1 (guests VARCHAR, air_date VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 26"
What was the record for May 26?
CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT MIN(silver) FROM table_22355_29
What is the smallest amount of silver?
CREATE TABLE table_22355_29 (silver INTEGER)
SELECT round_of_32 FROM table_18602462_21 WHERE round_of_16 = "Did not advance"
When in round of 16 it was did not advance what was it in round of 32?
CREATE TABLE table_18602462_21 (round_of_32 VARCHAR, round_of_16 VARCHAR)
SELECT COUNT(*) FROM driver
How many drivers are there?
CREATE TABLE driver (Id VARCHAR)
SELECT out_of FROM table_name_31 WHERE source = "united nations" AND rank > 47 AND year < 2003
Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?
CREATE TABLE table_name_31 (out_of VARCHAR, year VARCHAR, source VARCHAR, rank VARCHAR)
SELECT position_in_1960_1961 FROM table_name_2 WHERE clubs = "belenenses"
What position did the Belenenses club occupy in 1960/61?
CREATE TABLE table_name_2 (position_in_1960_1961 VARCHAR, clubs VARCHAR)
SELECT SUM(year) FROM table_name_84 WHERE from_album = "heat wave"
How many years were there albums by heat wave?
CREATE TABLE table_name_84 (year INTEGER, from_album VARCHAR)
SELECT MAX(total_evm_votes) FROM table_24051013_3
What is the highest total for evm votes
CREATE TABLE table_24051013_3 (total_evm_votes INTEGER)
SELECT percentage FROM table_16186152_1 WHERE state_delegate = 1662
What's the percentage when the state delegate is 1662?
CREATE TABLE table_16186152_1 (percentage VARCHAR, state_delegate VARCHAR)
SELECT written_by FROM table_17861265_1 WHERE us_viewers__million_ = "3.03"
Who was the episode writer when the viewers reached 3.03 million in the US?
CREATE TABLE table_17861265_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT death FROM table_name_34 WHERE birth = "6 january 1655"
When did the person born on 6 january 1655 die?
CREATE TABLE table_name_34 (death VARCHAR, birth VARCHAR)
SELECT COUNT(laps) FROM table_name_63 WHERE driver = "tom bridger"
What are the total number of laps for Tom Bridger?
CREATE TABLE table_name_63 (laps VARCHAR, driver VARCHAR)
SELECT COUNT(economy) FROM table_28846752_13 WHERE bbi = "2/19"
How many economy stats for the player with 2/19 BBI?
CREATE TABLE table_28846752_13 (economy VARCHAR, bbi VARCHAR)
SELECT COUNT(audition_city) FROM table_27615445_1 WHERE episode_air_date = "June 24, 2010"
How many audition city's are there with an episode air date of June 24, 2010?
CREATE TABLE table_27615445_1 (audition_city VARCHAR, episode_air_date VARCHAR)
SELECT song FROM table_name_94 WHERE artist = "filipa sousa"
What song has filipa sousa as an artist?
CREATE TABLE table_name_94 (song VARCHAR, artist VARCHAR)
SELECT AVG(best) FROM table_name_21 WHERE name = "marcus marshall"
What is the best time for marcus marshall?
CREATE TABLE table_name_21 (best INTEGER, name VARCHAR)
SELECT loss FROM table_name_86 WHERE save = "|| 23,391 ||17-18||"
Name the loss with save of || 23,391 ||17-18||?
CREATE TABLE table_name_86 (loss VARCHAR, save VARCHAR)
SELECT body FROM table_name_43 WHERE year = "1973"
What body participated in 1973?
CREATE TABLE table_name_43 (body VARCHAR, year VARCHAR)
SELECT country_territory FROM table_name_15 WHERE imed_avicenna_listed = "both" AND established = 1969
What country has a medical school established in 1969 with both an IMED and avicenna?
CREATE TABLE table_name_15 (country_territory VARCHAR, imed_avicenna_listed VARCHAR, established VARCHAR)
SELECT score FROM table_name_16 WHERE away_team = "gold coast blaze" AND home_team = "adelaide 36ers"
What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?
CREATE TABLE table_name_16 (score VARCHAR, away_team VARCHAR, home_team VARCHAR)
SELECT region FROM table_name_16 WHERE catalogue = "1785089"
In what Region was the Catalogue number 1785089 released?
CREATE TABLE table_name_16 (region VARCHAR, catalogue VARCHAR)
SELECT drawn FROM table_13741576_6 WHERE tries_for = "54"
Risca RFC has 54 tries for and how many draws?
CREATE TABLE table_13741576_6 (drawn VARCHAR, tries_for VARCHAR)
SELECT COUNT(original_air_date) FROM table_19236587_4 WHERE series_no = 13
How many different original air dates does the episode with series number 13 have?
CREATE TABLE table_19236587_4 (original_air_date VARCHAR, series_no VARCHAR)
SELECT date FROM table_name_4 WHERE record = "46-34"
On what date did the result leave the team with a record of 46-34?
CREATE TABLE table_name_4 (date VARCHAR, record VARCHAR)
SELECT outcome FROM table_name_68 WHERE date = "september 23, 2013"
What outcome has September 23, 2013 as the date?
CREATE TABLE table_name_68 (outcome VARCHAR, date VARCHAR)
SELECT date FROM table_27902171_7 WHERE location_attendance = "Seattle Center Coliseum 12,126"
What date was the game played in seattle center coliseum 12,126?
CREATE TABLE table_27902171_7 (date VARCHAR, location_attendance VARCHAR)
SELECT june_10_11 FROM table_25284864_3 WHERE march_27_29 = "March 28, 1968"
What June 10-11 is is that corresponds to March 28, 1968?
CREATE TABLE table_25284864_3 (june_10_11 VARCHAR, march_27_29 VARCHAR)
SELECT money___$__ FROM table_name_36 WHERE place = "t4" AND player = "ben crenshaw"
How much money does player ben crenshaw, who has a t4 place, have?
CREATE TABLE table_name_36 (money___$__ VARCHAR, place VARCHAR, player VARCHAR)
SELECT host_team FROM table_name_31 WHERE date = "october 4"
Who was the host team on October 4?
CREATE TABLE table_name_31 (host_team VARCHAR, date VARCHAR)
SELECT dysart FROM table_11340432_1 WHERE information = "Principal"
What is the dysart of the principal?
CREATE TABLE table_11340432_1 (dysart VARCHAR, information VARCHAR)
SELECT director FROM table_14975415_1 WHERE english_title = "Diary for My Loves"
Who is the director for diary for my loves?
CREATE TABLE table_14975415_1 (director VARCHAR, english_title VARCHAR)
SELECT date FROM table_name_7 WHERE result = "win" AND score = "2-1" AND year < 2012
What day was the result a win, the score 2-1, and the year before 2012?
CREATE TABLE table_name_7 (date VARCHAR, year VARCHAR, result VARCHAR, score VARCHAR)
SELECT player FROM table_name_2 WHERE country = "united states" AND place = "t10"
Which united states player finished with a place of t10?
CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT home_team AS score FROM table_16387653_1 WHERE away_team = "Collingwood"
What was the home team score against Collingwood?
CREATE TABLE table_16387653_1 (home_team VARCHAR, away_team VARCHAR)
SELECT title FROM papers WHERE title LIKE "%Database%"
Which paper's title contains the word "Database"?
CREATE TABLE papers (title VARCHAR)
SELECT song_name FROM song WHERE languages = "english"
Find the names of all English songs.
CREATE TABLE song (song_name VARCHAR, languages VARCHAR)
SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 2009"
What was the Result F–A on 21 February 2009, when the league position was 1st?
CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR)
SELECT MIN(finish) FROM table_name_13 WHERE team = "ganassi" AND start < 19 AND year < 2004
Lowest finish for ganassi at smaller than 19 start for smaller than 2004 year?
CREATE TABLE table_name_13 (finish INTEGER, year VARCHAR, team VARCHAR, start VARCHAR)
SELECT team FROM table_name_30 WHERE college = "virginia tech"
What is the team when the college is virginia tech?
CREATE TABLE table_name_30 (team VARCHAR, college VARCHAR)
SELECT young_rider_classification FROM table_29332810_14 WHERE aggressive_rider = "Luke Durbridge"
Where Luke Durbridge is the aggressive rider who is listed as the young rider classification?
CREATE TABLE table_29332810_14 (young_rider_classification VARCHAR, aggressive_rider VARCHAR)
SELECT stain FROM table_13570_1 WHERE common_use = "Elastic fibers"
What stain is used commonly for elastic fibers?
CREATE TABLE table_13570_1 (stain VARCHAR, common_use VARCHAR)
SELECT date FROM table_name_35 WHERE tournament = "izmir cup" AND opponent = "somdev devvarman"
What date was the Izmir Cup in which İlhan played against Somdev Devvarman?
CREATE TABLE table_name_35 (date VARCHAR, tournament VARCHAR, opponent VARCHAR)
SELECT report FROM table_name_25 WHERE date = "22 september"
What report happened on 22 september?
CREATE TABLE table_name_25 (report VARCHAR, date VARCHAR)
SELECT release_date FROM table_1681535_1 WHERE title = "Destiny of the Daleks"
What is the release date for Destiny of the Daleks?
CREATE TABLE table_1681535_1 (release_date VARCHAR, title VARCHAR)
SELECT co_driver FROM table_name_36 WHERE position = "6th" AND laps > 159
Who is the co-driver for the 6th position and more than 159 laps?
CREATE TABLE table_name_36 (co_driver VARCHAR, position VARCHAR, laps VARCHAR)
SELECT COUNT(total) FROM table_name_46 WHERE to_par < 4 AND year_won < 1983
What is the Total of the player who won before 1983 with a smaller than 4 To par?
CREATE TABLE table_name_46 (total VARCHAR, to_par VARCHAR, year_won VARCHAR)
SELECT result_games FROM table_21436373_7 WHERE attendance = 27585
When 27585 is the attendance what are the results of the games?
CREATE TABLE table_21436373_7 (result_games VARCHAR, attendance VARCHAR)
SELECT SUM(wins) FROM table_name_17 WHERE win__percentage < 0.8270000000000001 AND name = "rick mirer" AND ties < 1
Which Wins have a Win % smaller than 0.8270000000000001, and a Name of rick mirer, and Ties smaller than 1?
CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, win__percentage VARCHAR, name VARCHAR)
SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = "Wacker Marktredwitz"
When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there?
CREATE TABLE table_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR)
SELECT date FROM table_name_34 WHERE score = "3-0"
When was the competition that had a score of 3-0?
CREATE TABLE table_name_34 (date VARCHAR, score VARCHAR)
SELECT pole_position FROM table_24547593_1 WHERE circuit = "Knockhill"
Who was in the pole position for knockhill?
CREATE TABLE table_24547593_1 (pole_position VARCHAR, circuit VARCHAR)
SELECT ethernet_ports FROM table_name_51 WHERE name = "u10"
What is the ethernet ports of the u10 appliance?
CREATE TABLE table_name_51 (ethernet_ports VARCHAR, name VARCHAR)
SELECT SUM(grid) FROM table_name_48 WHERE driver = "richard robarts" AND laps < 36
In what grid did Richard Robarts make 36 laps?
CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT COUNT(episode_number) FROM table_17257687_1 WHERE event_4 = "The Wall" AND event_1 = "Pendulum"
On which episode number is event 4 The Wall and event 1 the Pendulum?
CREATE TABLE table_17257687_1 (episode_number VARCHAR, event_4 VARCHAR, event_1 VARCHAR)
SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"
Find all students taught by OTHA MOYER. Output the first and last names of the students.
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT MIN(crowd) FROM table_name_57 WHERE venue = "princes park"
What is the smallest crowd at princes park?
CREATE TABLE table_name_57 (crowd INTEGER, venue VARCHAR)
SELECT film FROM table_name_49 WHERE country = "spain"
What film was filmed in Spain?
CREATE TABLE table_name_49 (film VARCHAR, country VARCHAR)
SELECT COUNT(bronze) FROM table_name_67 WHERE silver > 8 AND total = 50
What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals?
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT AVG(podiums) FROM table_name_24 WHERE finishes < 12 AND starts < 1
What is the average number of podiums for drivers with under 12 finishes and under 1 start?
CREATE TABLE table_name_24 (podiums INTEGER, finishes VARCHAR, starts VARCHAR)
SELECT MAX(number_in_series) FROM table_name_19 WHERE production_code = "50021–50025"
What is the series number that has a production code of 50021–50025?
CREATE TABLE table_name_19 (number_in_series INTEGER, production_code VARCHAR)
SELECT nba_years_[a_] FROM table_name_58 WHERE nationality = "united states" AND previous_team = "los angeles lakers"
How many NBA years did the player from the United States who was previously on the los angeles lakers have?
CREATE TABLE table_name_58 (nba_years_ VARCHAR, a_ VARCHAR, nationality VARCHAR, previous_team VARCHAR)
SELECT lost FROM table_name_86 WHERE tries_for = "47"
What is the value for the item "Lost" when the value "Tries" is 47?
CREATE TABLE table_name_86 (lost VARCHAR, tries_for VARCHAR)
SELECT episode_number FROM table_name_17 WHERE podcast_date = "august 8, 2005"
What is the episode number of the episode that aired on August 8, 2005?
CREATE TABLE table_name_17 (episode_number VARCHAR, podcast_date VARCHAR)
SELECT stadium FROM table_28668784_1 WHERE home_team = "FK Jedinstvo"
What stadium does FK Jedinstvo play in?
CREATE TABLE table_28668784_1 (stadium VARCHAR, home_team VARCHAR)
SELECT outcome FROM table_name_7 WHERE score = "4–6, 6–4, 6–3, 7–6 (7–2)"
What is the outcome of the 4–6, 6–4, 6–3, 7–6 (7–2) score?
CREATE TABLE table_name_7 (outcome VARCHAR, score VARCHAR)
SELECT record FROM table_name_12 WHERE attendance = "2,500"
What is the record from the 2,500 in attendance?
CREATE TABLE table_name_12 (record VARCHAR, attendance VARCHAR)
SELECT venue FROM table_name_24 WHERE competition = "olympic games" AND position = "dnq"
Which venue hosts the Olympic Games for DNQ position?
CREATE TABLE table_name_24 (venue VARCHAR, competition VARCHAR, position VARCHAR)
SELECT time FROM table_name_70 WHERE lane = 4
What was lane 4's time?
CREATE TABLE table_name_70 (time VARCHAR, lane VARCHAR)
SELECT ihsaa_class FROM table_name_83 WHERE location = "linton"
Which IHSAA Class has a Location of linton?
CREATE TABLE table_name_83 (ihsaa_class VARCHAR, location VARCHAR)