question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the longitude of Angerona Tholus?
CREATE TABLE table_name_35 (longitude VARCHAR, name VARCHAR)
SELECT longitude FROM table_name_35 WHERE name = "angerona tholus"
On what date did the Pistons play @ toronto?
CREATE TABLE table_22822559_4 (date VARCHAR, team VARCHAR)
SELECT date FROM table_22822559_4 WHERE team = "@ Toronto"
How many original air dates did episode 12 have?h
CREATE TABLE table_23255941_1 (original_air_date VARCHAR, episode__number VARCHAR)
SELECT COUNT(original_air_date) FROM table_23255941_1 WHERE episode__number = 12
Which MSDN integration has a IntelliTrace of yes?
CREATE TABLE table_name_12 (msdn_integration VARCHAR, intellitrace VARCHAR)
SELECT msdn_integration FROM table_name_12 WHERE intellitrace = "yes"
Which pre-season has May 5 of 21?
CREATE TABLE table_name_21 (pre__season VARCHAR, may_5 VARCHAR)
SELECT pre__season FROM table_name_21 WHERE may_5 = "21"
Name the total number of wd number for lms number being 7638
CREATE TABLE table_20236726_2 (wd_no VARCHAR, lms_no VARCHAR)
SELECT COUNT(wd_no) FROM table_20236726_2 WHERE lms_no = 7638
What is the instition where the main campus location is overland park?
CREATE TABLE table_12434380_1 (institution VARCHAR, main_campus_location VARCHAR)
SELECT institution FROM table_12434380_1 WHERE main_campus_location = "Overland Park"
Which venue was used 22 january 2008?
CREATE TABLE table_name_86 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_86 WHERE date = "22 january 2008"
What is the lowest draft of player justin martin from the USA?
CREATE TABLE table_name_80 (draft INTEGER, nationality VARCHAR, player VARCHAR)
SELECT MIN(draft) FROM table_name_80 WHERE nationality = "usa" AND player = "justin martin"
When has a Centerfold model of pilar lastra?
CREATE TABLE table_name_95 (date VARCHAR, centerfold_model VARCHAR)
SELECT date FROM table_name_95 WHERE centerfold_model = "pilar lastra"
What is the constituency number with electorates (2009) number larger than 152,958?
CREATE TABLE table_name_40 (constituency_number VARCHAR, number_of_electorates__2009_ INTEGER)
SELECT constituency_number FROM table_name_40 WHERE number_of_electorates__2009_ > 152 OFFSET 958
How many televotes are there where there is 4 jury votes?
CREATE TABLE table_19763199_4 (televotes VARCHAR, jury_votes VARCHAR)
SELECT televotes FROM table_19763199_4 WHERE jury_votes = 4
What is the average To Par, when Score is "72-67-71-72=282"?
CREATE TABLE table_name_40 (to_par INTEGER, score VARCHAR)
SELECT AVG(to_par) FROM table_name_40 WHERE score = 72 - 67 - 71 - 72 = 282
Name the school/club team/country for the player that is 6-5 ft
CREATE TABLE table_name_11 (school_club_team_country VARCHAR, height_in_ft VARCHAR)
SELECT school_club_team_country FROM table_name_11 WHERE height_in_ft = "6-5"
What is the goals number of goals for the player who had 2 league cup apps and 0 FA cup goals?
CREATE TABLE table_name_64 (total_goals VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR)
SELECT COUNT(total_goals) FROM table_name_64 WHERE league_cup_apps = "2" AND fa_cup_goals < 0
What country is the film that has music of nino oliviero?
CREATE TABLE table_name_10 (country VARCHAR, music VARCHAR)
SELECT country FROM table_name_10 WHERE music = "nino oliviero"
What is the name and the average gpa of department whose students have the highest average gpa?
CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR)
SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1
What is Assembled, when Summoned is "6 October 1297"?
CREATE TABLE table_name_55 (assembled VARCHAR, summoned VARCHAR)
SELECT assembled FROM table_name_55 WHERE summoned = "6 october 1297"
Ashley Grimes had what to club?
CREATE TABLE table_name_26 (to_club VARCHAR, player VARCHAR)
SELECT to_club FROM table_name_26 WHERE player = "ashley grimes"
which Partial thromboplastin time has a Condition of liver failure , early?
CREATE TABLE table_name_61 (partial_thromboplastin_time VARCHAR, condition VARCHAR)
SELECT partial_thromboplastin_time FROM table_name_61 WHERE condition = "liver failure , early"
Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19?
CREATE TABLE table_name_53 (celebrity VARCHAR, exited VARCHAR, famous_for VARCHAR)
SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter"
Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924?
CREATE TABLE table_name_87 (quantity INTEGER, type VARCHAR, year_s__of_manufacture VARCHAR)
SELECT MIN(quantity) FROM table_name_87 WHERE type = "e h4v" AND year_s__of_manufacture = "1920–1924"
What college is Pat Thomas from?
CREATE TABLE table_name_77 (college VARCHAR, name VARCHAR)
SELECT college FROM table_name_77 WHERE name = "pat thomas"
What is the highest Pct %, when Goals Against is less than 229?
CREATE TABLE table_name_60 (pct__percentage INTEGER, goals_against INTEGER)
SELECT MAX(pct__percentage) FROM table_name_60 WHERE goals_against < 229
What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?
CREATE TABLE table_name_36 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR, ansi_code VARCHAR, pop__2010_ VARCHAR)
SELECT SUM(land___sqmi__) FROM table_name_36 WHERE ansi_code < 1036538 AND pop__2010_ < 42 AND longitude > -99.442872 AND water__sqmi_ > 0.882
Where was a game played on 23,24,25,26 july 1992?
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_13 WHERE date = "23,24,25,26 july 1992"
What is the percent change from 08/09 for belfast international?
CREATE TABLE table_13836704_6 (_percentage_change_2008_2009 VARCHAR, airport VARCHAR)
SELECT _percentage_change_2008_2009 FROM table_13836704_6 WHERE airport = "Belfast International"
What are the total points for the skier with 3.18 slalom points?
CREATE TABLE table_name_33 (total VARCHAR, slalom_points VARCHAR)
SELECT total FROM table_name_33 WHERE slalom_points = "3.18"
Which clubs had draws of 9?
CREATE TABLE table_18018248_2 (club VARCHAR, draws VARCHAR)
SELECT club FROM table_18018248_2 WHERE draws = 9
How many Points have a Record of 40–21–12–3, and a March larger than 28?
CREATE TABLE table_name_76 (points VARCHAR, record VARCHAR, march VARCHAR)
SELECT COUNT(points) FROM table_name_76 WHERE record = "40–21–12–3" AND march > 28
Which Wins have Years of 1881, and a Pct larger than 0.75?
CREATE TABLE table_name_18 (wins INTEGER, years VARCHAR, pct VARCHAR)
SELECT AVG(wins) FROM table_name_18 WHERE years = "1881" AND pct > 0.75
Name the regular season record for standing 11th
CREATE TABLE table_20774360_2 (regular_season_record__w_l_ VARCHAR, standing VARCHAR)
SELECT regular_season_record__w_l_ FROM table_20774360_2 WHERE standing = "11th"
What is the genre of the BBC World Service?
CREATE TABLE table_name_77 (genre VARCHAR, station VARCHAR)
SELECT genre FROM table_name_77 WHERE station = "bbc world service"
What is the average defenses a champion with 404 days held and a reign larger than 1 has?
CREATE TABLE table_name_57 (defenses INTEGER, days_held VARCHAR, reign VARCHAR)
SELECT AVG(defenses) FROM table_name_57 WHERE days_held = "404" AND reign > 1
How many distinct kinds of injuries happened after season 2010?
CREATE TABLE injury_accident (injury VARCHAR, game_id VARCHAR); CREATE TABLE game (id VARCHAR, season INTEGER)
SELECT COUNT(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.season > 2010
Who is in group a when indiana is in group d?
CREATE TABLE table_15290638_1 (group_a VARCHAR, group_d VARCHAR)
SELECT group_a FROM table_15290638_1 WHERE group_d = "Indiana"
What is the highest play-offs that have stevenage borough as the club, and a total greater than 21?
CREATE TABLE table_name_64 (play_offs INTEGER, club VARCHAR, total VARCHAR)
SELECT MAX(play_offs) FROM table_name_64 WHERE club = "stevenage borough" AND total > 21
What is the lowest year in since that had a transfer fee of € 14m and ended after 2011?
CREATE TABLE table_name_76 (since INTEGER, transfer_fee VARCHAR, ends VARCHAR)
SELECT MIN(since) FROM table_name_76 WHERE transfer_fee = "€ 14m" AND ends > 2011
Find the number of students who participate in the tryout for each college ordered by descending count.
CREATE TABLE tryout (cName VARCHAR)
SELECT COUNT(*), cName FROM tryout GROUP BY cName ORDER BY COUNT(*) DESC
When was the earliest first game with 11 played and 12 games lost?
CREATE TABLE table_name_60 (first_game INTEGER, played VARCHAR, lost VARCHAR)
SELECT MIN(first_game) FROM table_name_60 WHERE played > 11 AND lost = 12
What's the Result of the Competition of 1998 FIFA World Cup Qualification with the Venue of Bangkok?
CREATE TABLE table_name_66 (result VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT result FROM table_name_66 WHERE competition = "1998 fifa world cup qualification" AND venue = "bangkok"
What is the team of driver klaus ludwig, who is class c1 and has more than 77 laps?
CREATE TABLE table_name_15 (team VARCHAR, driver VARCHAR, class VARCHAR, laps VARCHAR)
SELECT team FROM table_name_15 WHERE class = "c1" AND laps > 77 AND driver = "klaus ludwig"
What is the number of the leading scorer for keyarena 16,640?
CREATE TABLE table_11964047_8 (leading_scorer VARCHAR, attendance VARCHAR)
SELECT COUNT(leading_scorer) FROM table_11964047_8 WHERE attendance = "KeyArena 16,640"
From what school was the team that left the conference in 1992?
CREATE TABLE table_name_63 (school VARCHAR, year_left VARCHAR)
SELECT school FROM table_name_63 WHERE year_left = "1992"
What is 1995 Grand Slam Tournament if 1990 is LQ?
CREATE TABLE table_name_96 (Id VARCHAR)
SELECT 1995 FROM table_name_96 WHERE 1990 = "lq"
what is the location when the year is after 1974 and the date is september 19?
CREATE TABLE table_name_36 (location VARCHAR, year VARCHAR, date VARCHAR)
SELECT location FROM table_name_36 WHERE year > 1974 AND date = "september 19"
Name the total number of league cup for mark roberts
CREATE TABLE table_17598822_11 (league VARCHAR, player VARCHAR)
SELECT COUNT(league) AS Cup FROM table_17598822_11 WHERE player = "Mark Roberts"
What was the Result of the Game at the Meadowlands on 1991-09-01?
CREATE TABLE table_name_29 (result VARCHAR, game_site VARCHAR, date VARCHAR)
SELECT result FROM table_name_29 WHERE game_site = "the meadowlands" AND date = "1991-09-01"
What was the score in the August 20, 2007 match?
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE date = "august 20, 2007"
With a FA Cup of 0 44 0 (0), the other [C] is listed as what?
CREATE TABLE table_name_46 (other_ VARCHAR, c_ VARCHAR, fa_cup VARCHAR)
SELECT other_[c_] FROM table_name_46 WHERE fa_cup = "0 44 0 (0)"
Show ids of students who don't play video game.
CREATE TABLE Plays_games (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR)
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Plays_games
How many points were scored by someone who's position was right tackle?
CREATE TABLE table_14342480_7 (points VARCHAR, position VARCHAR)
SELECT COUNT(points) FROM table_14342480_7 WHERE position = "Right tackle"
Tell me the format for european union
CREATE TABLE table_name_99 (format VARCHAR, region VARCHAR)
SELECT format FROM table_name_99 WHERE region = "european union"
Name the name of administrative unit for 3464 people
CREATE TABLE table_14465924_1 (name_of_administrative_unit VARCHAR, population__people_ VARCHAR)
SELECT name_of_administrative_unit FROM table_14465924_1 WHERE population__people_ = 3464
When was the last time, since December 14, 1986, that the attendance was lower than 47,096?
CREATE TABLE table_name_51 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT MAX(week) FROM table_name_51 WHERE date = "december 14, 1986" AND attendance < 47 OFFSET 096
What 2006 has grand slam tournaments of 2010?
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT 2006 FROM table_name_95 WHERE 2010 = "grand slam tournaments"
Who was Team 2 when Stationery Stores was Team 1?
CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_81 WHERE team_1 = "stationery stores"
What is the general classification with a 13 stage?
CREATE TABLE table_name_63 (general_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_name_63 WHERE stage = "13"
What is the finish with 51 laps?
CREATE TABLE table_name_98 (finish VARCHAR, laps VARCHAR)
SELECT finish FROM table_name_98 WHERE laps = 51
What was the score of the game when the home team was Lincoln City?
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_74 WHERE home_team = "lincoln city"
What is the Opponent of the game after October 28?
CREATE TABLE table_name_56 (opponent VARCHAR, october INTEGER)
SELECT opponent FROM table_name_56 WHERE october > 28
What shows for mon 22 aug whenwed 24 aug is 19' 56.16 113.553mph?
CREATE TABLE table_30058355_2 (mon_22_aug VARCHAR, wed_24_aug VARCHAR)
SELECT mon_22_aug FROM table_30058355_2 WHERE wed_24_aug = "19' 56.16 113.553mph"
Which Player has a height of 6-10, and went to College at LSU?
CREATE TABLE table_name_66 (player VARCHAR, height VARCHAR, college VARCHAR)
SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu"
What is the location before game 44, and a 20-16 record?
CREATE TABLE table_name_10 (location VARCHAR, game VARCHAR, record VARCHAR)
SELECT location FROM table_name_10 WHERE game < 44 AND record = "20-16"
What is the Attendance with a Date that is november 25, 1965?
CREATE TABLE table_name_96 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_96 WHERE date = "november 25, 1965"
Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?
CREATE TABLE table_name_92 (villages INTEGER, hanzi VARCHAR, population VARCHAR)
SELECT MAX(villages) FROM table_name_92 WHERE hanzi = "南流乡" AND population > 24 OFFSET 802
In Tonga, what is the conversion from patent application?
CREATE TABLE table_2279413_1 (conversion_from_patent_application VARCHAR, country VARCHAR)
SELECT conversion_from_patent_application FROM table_2279413_1 WHERE country = "Tonga"
Name the location for 2007
CREATE TABLE table_23379776_6 (location VARCHAR, year VARCHAR)
SELECT location FROM table_23379776_6 WHERE year = 2007
Find all airlines that have flights from both airports 'APG' and 'CVO'.
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO"
Name the least wins
CREATE TABLE table_24596664_1 (wins INTEGER)
SELECT MIN(wins) FROM table_24596664_1
What is the lowest amount of losses the United States, ranked higher than 3 with more than 6 wins, have?
CREATE TABLE table_name_96 (losses INTEGER, wins VARCHAR, rank VARCHAR, team VARCHAR)
SELECT MIN(losses) FROM table_name_96 WHERE rank < 3 AND team = "united states" AND wins > 6
What is the Catalog with a Region that is europe?
CREATE TABLE table_name_56 (catalog VARCHAR, region VARCHAR)
SELECT catalog FROM table_name_56 WHERE region = "europe"
what's the preliminaries with average being 9.135
CREATE TABLE table_11970261_2 (preliminaries VARCHAR, average VARCHAR)
SELECT preliminaries FROM table_11970261_2 WHERE average = "9.135"
Which Segment A has a Segment C of poster restoration?
CREATE TABLE table_name_70 (segment_a VARCHAR, segment_c VARCHAR)
SELECT segment_a FROM table_name_70 WHERE segment_c = "poster restoration"
Which professionals have done at least two treatments? List the professional's id, role, and first name.
CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, first_name VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)
SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2
What was the method when 4-2 was the record?
CREATE TABLE table_name_56 (method VARCHAR, record VARCHAR)
SELECT method FROM table_name_56 WHERE record = "4-2"
what game had a score of 4–6, 6–3, 7–6(10)?
CREATE TABLE table_name_54 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_54 WHERE score = "4–6, 6–3, 7–6(10)"
List venues of all matches in the order of their dates starting from the most recent one.
CREATE TABLE MATCH (venue VARCHAR, date VARCHAR)
SELECT venue FROM MATCH ORDER BY date DESC
What was the result of the game on November 7, 1999?
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_9 WHERE date = "november 7, 1999"
Name the high assists for 70 game
CREATE TABLE table_17001658_9 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_17001658_9 WHERE game = 70
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 SUM(distance) FROM table_name_73 WHERE county = "faulkner" AND total < 1.5
What was the 2nd leg score if the team 1 is Deportivo Pasto?
CREATE TABLE table_27603010_14 (team__number1 VARCHAR)
SELECT 2 AS nd_leg FROM table_27603010_14 WHERE team__number1 = "Deportivo Pasto"
How many tourist arrivals occurred in 2011 in the country of Italy?
CREATE TABLE table_14752049_1 (international_tourist_arrivals__2011_ VARCHAR, country VARCHAR)
SELECT international_tourist_arrivals__2011_ FROM table_14752049_1 WHERE country = "Italy"
Name the least 2 credits for straight hand
CREATE TABLE table_148535_2 (hand VARCHAR)
SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = "Straight"
Where did the episode rank that was written by thomas l. moran?
CREATE TABLE table_28026156_1 (rank__week_ VARCHAR, written_by VARCHAR)
SELECT rank__week_ FROM table_28026156_1 WHERE written_by = "Thomas L. Moran"
Name the hdtv for sky primafila 17
CREATE TABLE table_15887683_6 (hdtv VARCHAR, television_service VARCHAR)
SELECT hdtv FROM table_15887683_6 WHERE television_service = "Sky Primafila 17"
What date was there a game larger than 17?
CREATE TABLE table_name_20 (date VARCHAR, game INTEGER)
SELECT date FROM table_name_20 WHERE game > 17
Tell me the long for charles frederick
CREATE TABLE table_name_93 (long VARCHAR, player VARCHAR)
SELECT long FROM table_name_93 WHERE player = "charles frederick"
In what district was incumbent Russ Carnahan elected after 2000?
CREATE TABLE table_name_99 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_99 WHERE first_elected > 2000 AND incumbent = "russ carnahan"
what is the team nickname that joined tschl after 2010?
CREATE TABLE table_name_78 (team_nickname VARCHAR, joined_tschl INTEGER)
SELECT team_nickname FROM table_name_78 WHERE joined_tschl > 2010
what is the value when the british name is maxima?
CREATE TABLE table_name_40 (value VARCHAR, british_name VARCHAR)
SELECT value FROM table_name_40 WHERE british_name = "maxima"
What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?
CREATE TABLE table_name_35 (rank INTEGER, time VARCHAR, lane VARCHAR)
SELECT MAX(rank) FROM table_name_35 WHERE time = "1:47.65" AND lane > 3
What is the total of Prom in M for Peak great knoutberry hill?
CREATE TABLE table_name_72 (prom__m_ INTEGER, peak VARCHAR)
SELECT SUM(prom__m_) FROM table_name_72 WHERE peak = "great knoutberry hill"
What is the content of TV Channel with serial name "Sky Radio"?
CREATE TABLE TV_Channel (Content VARCHAR, series_name VARCHAR)
SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio"
What is the frequency of number 3 with a bus station origin?
CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR)
SELECT frequency FROM table_name_33 WHERE origin = "bus station" AND number = 3
Callsign of 6nan has what purpose?
CREATE TABLE table_name_34 (purpose VARCHAR, callsign VARCHAR)
SELECT purpose FROM table_name_34 WHERE callsign = "6nan"
What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?
CREATE TABLE table_name_56 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT date FROM table_name_56 WHERE competition = "2012 afc challenge cup" AND venue = "dasarath rangasala stadium, kathmandu"
How many years was the country Belgium?
CREATE TABLE table_27441210_13 (year VARCHAR, country VARCHAR)
SELECT COUNT(year) FROM table_27441210_13 WHERE country = "Belgium"
What's the team nickname of the private/catholic school whose enrollment is larger than 3,490?
CREATE TABLE table_name_25 (team_nickname VARCHAR, affiliation VARCHAR, enrollment VARCHAR)
SELECT team_nickname FROM table_name_25 WHERE affiliation = "private/catholic" AND enrollment > 3 OFFSET 490
What is the origin for the launch taking place in 2010?
CREATE TABLE table_name_71 (origin VARCHAR, launch VARCHAR)
SELECT origin FROM table_name_71 WHERE launch = 2010