question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the lowest tourism arrivals in 2011 in millions with 507 US $ per arrival in 2011 tourism receipts and less than 11,869 million of US $ in 2011 tourism receipts?
CREATE TABLE table_name_95 (tourist_arrivals__2011___millions_ INTEGER, tourism_receipts__2011___us$_per_arrival_ VARCHAR, tourism_receipts__2011___millions_of_us$_ VARCHAR)
SELECT MIN(tourist_arrivals__2011___millions_) FROM table_name_95 WHERE tourism_receipts__2011___us$_per_arrival_ = 507 AND tourism_receipts__2011___millions_of_us$_ < 11 OFFSET 869
What Elector has the Place of birth of San Severino?
CREATE TABLE table_name_33 (elector VARCHAR, place_of_birth VARCHAR)
SELECT elector FROM table_name_33 WHERE place_of_birth = "san severino"
Which rider had a time/retired od +19.909?
CREATE TABLE table_name_51 (rider VARCHAR, time_retired VARCHAR)
SELECT rider FROM table_name_51 WHERE time_retired = "+19.909"
what's the iata for the icao of eheh?
CREATE TABLE table_name_39 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_39 WHERE icao = "eheh"
Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?
CREATE TABLE table_name_13 (opponents VARCHAR, score_f_a VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_13 WHERE score_f_a = "3–0" AND date = "31 july 2007"
Which Against has a Season of 1987/88, and a # 100 larger than 13, and a Score of 139?
CREATE TABLE table_name_98 (against VARCHAR, score VARCHAR, season VARCHAR, _number_100 VARCHAR)
SELECT against FROM table_name_98 WHERE season = "1987/88" AND _number_100 > 13 AND score = "139"
How many against have a status of first test?
CREATE TABLE table_name_20 (against VARCHAR, status VARCHAR)
SELECT COUNT(against) FROM table_name_20 WHERE status = "first test"
What is the record for the game on november 25?
CREATE TABLE table_27721131_6 (record VARCHAR, date VARCHAR)
SELECT record FROM table_27721131_6 WHERE date = "November 25"
WHAT IS THE TOTAL NUMBER OF SEATS IN Hamburgische Bürgerschaft WITH AN ABBR OF bündnis 90 / die grünen (gal)?
CREATE TABLE table_name_18 (seats_in_hamburgische_bürgerschaft VARCHAR, abbr VARCHAR)
SELECT COUNT(seats_in_hamburgische_bürgerschaft) FROM table_name_18 WHERE abbr = "bündnis 90 / die grünen (gal)"
Show the company of the tallest entrepreneur.
CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR, Height VARCHAR)
SELECT T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Height DESC LIMIT 1
In 1912 when the U.S used sapphire, what was the Hindu birthstone?
CREATE TABLE table_name_77 (hindu VARCHAR, us__1912_ VARCHAR)
SELECT hindu FROM table_name_77 WHERE us__1912_ = "sapphire"
Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?
CREATE TABLE table_name_8 (region VARCHAR, most_populous_city_town VARCHAR, irish_name VARCHAR)
SELECT region FROM table_name_8 WHERE most_populous_city_town = "clonmel" AND irish_name = "tiobraid árann (contae thiobraid árann)"
One2one is the shirt sponsor for the captain of what team?
CREATE TABLE table_name_79 (captain VARCHAR, shirt_sponsor VARCHAR)
SELECT captain FROM table_name_79 WHERE shirt_sponsor = "one2one"
Which hppa contains a ppc64 of yes 3+, no for mips and no for alpha?
CREATE TABLE table_name_72 (hppa VARCHAR, ppc64 VARCHAR, mips VARCHAR, alpha VARCHAR)
SELECT hppa FROM table_name_72 WHERE mips = "no" AND alpha = "no" AND ppc64 = "yes 3+"
what position did the player play who had a number of 15 who played in 1987?
CREATE TABLE table_name_88 (position VARCHAR, jersey_number_s_ VARCHAR, years VARCHAR)
SELECT position FROM table_name_88 WHERE jersey_number_s_ = "15" AND years = "1987"
When the VFL played at Junction Oval what was the away score?
CREATE TABLE table_name_15 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_15 WHERE venue = "junction oval"
Who directed episode 11 of the season?
CREATE TABLE table_28785738_1 (director VARCHAR, no_in_season VARCHAR)
SELECT director FROM table_28785738_1 WHERE no_in_season = 11
Name the current womens lacrosse conference for 6000 enrollment
CREATE TABLE table_27378582_1 (current_womens_lacrosse_conference VARCHAR, enrollment VARCHAR)
SELECT current_womens_lacrosse_conference FROM table_27378582_1 WHERE enrollment = 6000
The player for which country had a score of 66-72=138?
CREATE TABLE table_name_90 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_90 WHERE score = 66 - 72 = 138
Which state does congressman jim demint represent?
CREATE TABLE table_20803065_1 (state VARCHAR, senator VARCHAR)
SELECT state FROM table_20803065_1 WHERE senator = "Jim DeMint"
How many legs were lost when the high checkout was 101?
CREATE TABLE table_27906667_2 (legs_lost VARCHAR, high_checkout VARCHAR)
SELECT COUNT(legs_lost) FROM table_27906667_2 WHERE high_checkout = 101
What is the sum of totals for ranks under 3 with tallies of 2-5?
CREATE TABLE table_name_94 (total INTEGER, rank VARCHAR, tally VARCHAR)
SELECT SUM(total) FROM table_name_94 WHERE rank < 3 AND tally = "2-5"
with build 5/69-6/69 what's the order?
CREATE TABLE table_name_89 (order INTEGER, built VARCHAR)
SELECT SUM(order) FROM table_name_89 WHERE built = "5/69-6/69"
How many persons had immunity in the episode when Wanda was eliminated?
CREATE TABLE table_1272844_2 (immunity VARCHAR, eliminated VARCHAR)
SELECT COUNT(immunity) FROM table_1272844_2 WHERE eliminated = "Wanda"
For player Les Ames, what was the venue?
CREATE TABLE table_name_29 (venue VARCHAR, player VARCHAR)
SELECT venue FROM table_name_29 WHERE player = "les ames"
What was the attendance when they played the New Orleans Saints?
CREATE TABLE table_name_93 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_93 WHERE opponent = "new orleans saints"
How many termini are there that have "east west" listed in their direction section, "none" listed in their junction section, and have a route name of "sh 202"?
CREATE TABLE table_11336756_6 (termini VARCHAR, route_name VARCHAR, direction VARCHAR, junctions VARCHAR)
SELECT COUNT(termini) FROM table_11336756_6 WHERE direction = "East West" AND junctions = "none" AND route_name = "SH 202"
What is the career with the franchise of the f/c player with fewer than 9 years of NBA experience who previously played for the Phoenix Suns?
CREATE TABLE table_name_47 (career_with_the_franchise VARCHAR, previous_team VARCHAR, pos VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT career_with_the_franchise FROM table_name_47 WHERE years_of_nba_experience_[a_] < 9 AND pos = "f/c" AND previous_team = "phoenix suns"
What city was the game held in when the opponent was Towson?
CREATE TABLE table_name_93 (city VARCHAR, opponent VARCHAR)
SELECT city FROM table_name_93 WHERE opponent = "towson"
What city had a series of atcc round 1?
CREATE TABLE table_name_96 (city___state VARCHAR, series VARCHAR)
SELECT city___state FROM table_name_96 WHERE series = "atcc round 1"
What is the total for 10th position?
CREATE TABLE table_10705060_1 (points VARCHAR, position VARCHAR)
SELECT COUNT(points) FROM table_10705060_1 WHERE position = "10th"
what is the venue where the margin is 4?
CREATE TABLE table_1139835_1 (venue VARCHAR, margin VARCHAR)
SELECT venue FROM table_1139835_1 WHERE margin = 4
Which Series has a Winning team of iowa state and a Sport of w basketball?
CREATE TABLE table_name_54 (series VARCHAR, winning_team VARCHAR, sport VARCHAR)
SELECT series FROM table_name_54 WHERE winning_team = "iowa state" AND sport = "w basketball"
What is the home team score when the away team is Essendon?
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_77 WHERE away_team = "essendon"
List the names of journalists in ascending order of years working.
CREATE TABLE journalist (Name VARCHAR, Years_working VARCHAR)
SELECT Name FROM journalist ORDER BY Years_working
What is the 1991 population for the urban settlement named Bački Jarak?
CREATE TABLE table_2562572_2 (population__1991_ VARCHAR, urban_settlement VARCHAR)
SELECT population__1991_ FROM table_2562572_2 WHERE urban_settlement = "Bački Jarak"
What is the coin with a € equivalency of 0.30 made of?
CREATE TABLE table_name_67 (composition VARCHAR, €_equiv VARCHAR)
SELECT composition FROM table_name_67 WHERE €_equiv = "0.30"
What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?
CREATE TABLE table_name_65 (tournament VARCHAR)
SELECT 2012 FROM table_name_65 WHERE 2013 = "2r" AND tournament = "wimbledon"
When 9386 is the undergraduate enrollment what is the nickname?
CREATE TABLE table_262495_1 (nickname VARCHAR, undergraduate_enrollment VARCHAR)
SELECT nickname FROM table_262495_1 WHERE undergraduate_enrollment = 9386
What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2?
CREATE TABLE table_name_63 (pass_def INTEGER, sacks VARCHAR, team VARCHAR, solo VARCHAR)
SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2
How many people wrote episode 9 in the season that was directed by Ernest Dickerson?
CREATE TABLE table_29219286_1 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)
SELECT COUNT(written_by) FROM table_29219286_1 WHERE directed_by = "Ernest Dickerson" AND no_in_season = 9
What is air date of the episode directed by John P. Kousakis?
CREATE TABLE table_28611413_2 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_28611413_2 WHERE directed_by = "John P. Kousakis"
What won est pc intro when 4k0 (polka brothers) won best amiga intro?
CREATE TABLE table_2490289_1 (pc_intro VARCHAR, amiga_intro VARCHAR)
SELECT pc_intro FROM table_2490289_1 WHERE amiga_intro = "4k0 (Polka Brothers)"
Who won the young rider classification in Stage 9 where the mountain classification was Emanuele Sella?
CREATE TABLE table_14710984_2 (young_rider_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT young_rider_classification FROM table_14710984_2 WHERE mountains_classification = "Emanuele Sella" AND stage = 9
What is the total sum of the player from the United States who won in 1986?
CREATE TABLE table_name_52 (total INTEGER, country VARCHAR, year_s__won VARCHAR)
SELECT SUM(total) FROM table_name_52 WHERE country = "united states" AND year_s__won = "1986"
Which game type has most number of games?
CREATE TABLE Video_games (gtype VARCHAR)
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY COUNT(*) DESC LIMIT 1
Who was the opponent on February 28, 1991
CREATE TABLE table_20745685_1 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_20745685_1 WHERE date = "February 28, 1991"
What was the Record of the game with a Score of 118–105?
CREATE TABLE table_name_10 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_10 WHERE score = "118–105"
What is the part number of the model that has a frequency of 933mhz?
CREATE TABLE table_name_32 (part_number_s_ VARCHAR, frequency VARCHAR)
SELECT part_number_s_ FROM table_name_32 WHERE frequency = "933mhz"
What is the transfer fee of assoumani, who has a summer transfer window?
CREATE TABLE table_name_70 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_70 WHERE transfer_window = "summer" AND name = "assoumani"
What is the Coefficient of 2 ppt?
CREATE TABLE table_name_16 (coefficient VARCHAR, parts_per_example VARCHAR)
SELECT coefficient FROM table_name_16 WHERE parts_per_example = "2 ppt"
What players finished 2nd?
CREATE TABLE table_1506950_4 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_1506950_4 WHERE finish = "2nd"
What is the area of 罗山县?
CREATE TABLE table_2847477_2 (area VARCHAR, simplified VARCHAR)
SELECT area FROM table_2847477_2 WHERE simplified = "罗山县"
What is the highest S No, when the Match Date is Nov 1, 2003?
CREATE TABLE table_name_8 (s_no INTEGER, match_date VARCHAR)
SELECT MAX(s_no) FROM table_name_8 WHERE match_date = "nov 1, 2003"
What is Name when Qual 2 is 1:15.582?
CREATE TABLE table_name_36 (name VARCHAR, qual_2 VARCHAR)
SELECT name FROM table_name_36 WHERE qual_2 = "1:15.582"
What team had a qual 2 time of 58.385?
CREATE TABLE table_name_92 (team VARCHAR, qual_2 VARCHAR)
SELECT team FROM table_name_92 WHERE qual_2 = "58.385"
How many goals were scored by club team fm (losc) vilnius
CREATE TABLE table_18018214_3 (goals_scored VARCHAR, club VARCHAR)
SELECT goals_scored FROM table_18018214_3 WHERE club = "FM (LOSC) Vilnius"
Who was the incumbent for south carolina 3 district?
CREATE TABLE table_name_64 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_64 WHERE district = "south carolina 3"
On what surface was the Australian Open (6) played on?
CREATE TABLE table_29163303_1 (surface VARCHAR, championship VARCHAR)
SELECT surface FROM table_29163303_1 WHERE championship = "Australian Open (6)"
What is the points for when the total points is 6?
CREATE TABLE table_1676073_13 (points_for VARCHAR, points VARCHAR)
SELECT points_for FROM table_1676073_13 WHERE points = "6"
On what date was the Loss by Flanagan (6-7)?
CREATE TABLE table_name_40 (date VARCHAR, loss VARCHAR)
SELECT date FROM table_name_40 WHERE loss = "flanagan (6-7)"
Which ethnic group has 5% of people categorizing religion as other?
CREATE TABLE table_name_98 (ethnic_group VARCHAR, other VARCHAR)
SELECT ethnic_group FROM table_name_98 WHERE other = "5%"
What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
CREATE TABLE table_name_3 (comp INTEGER, player VARCHAR, rating VARCHAR)
SELECT AVG(comp) FROM table_name_3 WHERE player = "gino guidugli" AND rating > 92.2
What is the Label of the Release with Catalog number 2508668?
CREATE TABLE table_name_51 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_51 WHERE catalog = "2508668"
How many people lived in the census division with an area of 15767.99 km2 in 1996?
CREATE TABLE table_2134521_1 (pop__1996_ VARCHAR, area__km²_ VARCHAR)
SELECT pop__1996_ FROM table_2134521_1 WHERE area__km²_ = "15767.99"
Find the last name of the author with first name "Amal".
CREATE TABLE authors (lname VARCHAR, fname VARCHAR)
SELECT lname FROM authors WHERE fname = "Amal"
Which 1964 has a Country of united states, and a 1969 smaller than 7.3?
CREATE TABLE table_name_85 (country VARCHAR)
SELECT MIN(1964) FROM table_name_85 WHERE country = "united states" AND 1969 < 7.3
What day was the attendance 74,285?
CREATE TABLE table_name_98 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_98 WHERE attendance = "74,285"
What was the team's record when they played visitor team Chicago Black Hawks on November 24?
CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24"
How many total points does Mike Hyndman have with more than 119 assists?
CREATE TABLE table_name_98 (points INTEGER, player VARCHAR, assists VARCHAR)
SELECT SUM(points) FROM table_name_98 WHERE player = "mike hyndman" AND assists > 119
what is the least tournaments played when the year is 1998?
CREATE TABLE table_name_62 (tournaments_played INTEGER, year VARCHAR)
SELECT MIN(tournaments_played) FROM table_name_62 WHERE year = 1998
List the highest number of assists when zaza pachulia (6) had the most rebounds.
CREATE TABLE table_27734577_2 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(high_assists) FROM table_27734577_2 WHERE high_rebounds = "Zaza Pachulia (6)"
Name the most 1 credit for three of a kind
CREATE TABLE table_148535_2 (hand VARCHAR)
SELECT MAX(1 AS _credit) FROM table_148535_2 WHERE hand = "Three of a Kind"
Who was the winning team on July 13?
CREATE TABLE table_name_11 (winning_team VARCHAR, date VARCHAR)
SELECT winning_team FROM table_name_11 WHERE date = "july 13"
what is the highest number where people got done at 31.1
CREATE TABLE table_1354805_6 (competition_finish INTEGER, average VARCHAR)
SELECT MAX(competition_finish) FROM table_1354805_6 WHERE average = "31.1"
What sport happened at Wildcat Stadium?
CREATE TABLE table_name_3 (sport VARCHAR, venue VARCHAR)
SELECT sport FROM table_name_3 WHERE venue = "wildcat stadium"
What is the sum of Round, when Record is "19-25-5"?
CREATE TABLE table_name_70 (round INTEGER, record VARCHAR)
SELECT SUM(round) FROM table_name_70 WHERE record = "19-25-5"
Name the surface for 20 march 2007
CREATE TABLE table_name_5 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_5 WHERE date = "20 march 2007"
What was the score of the player who played against Wong Choong Hann in the Dutch Open?
CREATE TABLE table_name_47 (score VARCHAR, tournament VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_47 WHERE tournament = "dutch open" AND opponent = "wong choong hann"
How many field goals were there, where the points where less than 45 and there were less than 15 touchdowns?
CREATE TABLE table_name_79 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR)
SELECT AVG(field_goals) FROM table_name_79 WHERE touchdowns < 15 AND points < 45
What was the nationality of the athlete with a final result of 4.50?
CREATE TABLE table_name_92 (nationality VARCHAR, result VARCHAR)
SELECT nationality FROM table_name_92 WHERE result = "4.50"
Who is the friday presenter for each show, when the monday presenter is Emma Willis Jamie East?
CREATE TABLE table_11748792_2 (friday VARCHAR, monday VARCHAR)
SELECT friday FROM table_11748792_2 WHERE monday = "Emma Willis Jamie East"
What was the result for the game played on December 20, 1970?
CREATE TABLE table_name_50 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_50 WHERE date = "december 20, 1970"
Who wrote the episode that originally aired on January 15, 1993?
CREATE TABLE table_2409041_5 (written_by VARCHAR, original_air_date VARCHAR)
SELECT written_by FROM table_2409041_5 WHERE original_air_date = "January 15, 1993"
Name the NS with normal total of 102
CREATE TABLE table_name_11 (ns VARCHAR, normal_total VARCHAR)
SELECT ns FROM table_name_11 WHERE normal_total = "102"
Name the most rank for uk and wins more than 5
CREATE TABLE table_name_1 (rank INTEGER, country VARCHAR, wins__indoor_ VARCHAR)
SELECT MAX(rank) FROM table_name_1 WHERE country = "uk" AND wins__indoor_ > 5
Name the sum of long for avg less than 6 and rec less than 2
CREATE TABLE table_name_24 (long INTEGER, avg VARCHAR, rec VARCHAR)
SELECT SUM(long) FROM table_name_24 WHERE avg < 6 AND rec < 2
Show the number of buildings with a height above the average or a number of floors above the average.
CREATE TABLE building (height_feet INTEGER, floors INTEGER)
SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)
What is the link for january 31 – february 3, 2011?
CREATE TABLE table_name_64 (link VARCHAR, date_of_polling VARCHAR)
SELECT link FROM table_name_64 WHERE date_of_polling = "january 31 – february 3, 2011"
On what date was the week 17 game?
CREATE TABLE table_name_37 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_37 WHERE week = 17
What's the title of the episode first seen by 18.15 million people in the US?
CREATE TABLE table_22078972_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT title FROM table_22078972_2 WHERE us_viewers__millions_ = "18.15"
How many were in the Kargahar (vidhan sabha constituency)?
CREATE TABLE table_29785324_5 (constituency_no INTEGER, vidhan_sabha_constituency VARCHAR)
SELECT MIN(constituency_no) FROM table_29785324_5 WHERE vidhan_sabha_constituency = "Kargahar (Vidhan Sabha constituency)"
What is the English title for the film directed by George Miller?
CREATE TABLE table_name_19 (english_title VARCHAR, director VARCHAR)
SELECT english_title FROM table_name_19 WHERE director = "george miller"
How many touchdowns did the player took which gained 25 points?
CREATE TABLE table_25711913_2 (touchdowns VARCHAR, points VARCHAR)
SELECT touchdowns FROM table_25711913_2 WHERE points = 25
Find the name of the students who have more than one advisor?
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE advisor (s_id VARCHAR)
SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id = T2.s_id GROUP BY T2.s_id HAVING COUNT(*) > 1
What is the Original title with a Country that is canada?
CREATE TABLE table_name_55 (original_title VARCHAR, country VARCHAR)
SELECT original_title FROM table_name_55 WHERE country = "canada"
Which Position has a Round larger than 5, and a Selection of 168?
CREATE TABLE table_name_13 (position VARCHAR, round VARCHAR, selection VARCHAR)
SELECT position FROM table_name_13 WHERE round > 5 AND selection = 168
What is the average earnings of the player from the United States with a win smaller than 2 and a rank larger than 3?
CREATE TABLE table_name_96 (earnings___ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_96 WHERE country = "united states" AND wins < 2 AND rank > 3
Which title was No. 4 in season?
CREATE TABLE table_16090262_1 (title VARCHAR, no_in_season VARCHAR)
SELECT title FROM table_16090262_1 WHERE no_in_season = 4
Name the total number of round for wide receiver for kent state
CREATE TABLE table_name_51 (round VARCHAR, position VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_51 WHERE position = "wide receiver" AND college = "kent state"