question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?
CREATE TABLE table_name_48 (total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)
SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = "0.86%" AND _number_of_seats_won > 0
What color commentator(s) were in 2010?
CREATE TABLE table_17516922_1 (color_commentator VARCHAR, year VARCHAR)
SELECT color_commentator FROM table_17516922_1 WHERE year = 2010
How many miss universes did south africa have?
CREATE TABLE table_28634206_1 (miss_universe VARCHAR, country VARCHAR)
SELECT COUNT(miss_universe) FROM table_28634206_1 WHERE country = "South Africa"
What was the Indians' record during the game that had 31,467 in attendance?
CREATE TABLE table_name_82 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_82 WHERE attendance = "31,467"
Name who wrote number 47
CREATE TABLE table_15584067_4 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_15584067_4 WHERE no_in_series = 47
What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix?
CREATE TABLE table_name_47 (wins VARCHAR, rank VARCHAR, latest_win VARCHAR)
SELECT wins FROM table_name_47 WHERE rank > 16 AND latest_win = "1967 belgian grand prix"
how many big wins does peru state college have
CREATE TABLE table_14115168_4 (national_titles VARCHAR, school VARCHAR)
SELECT COUNT(national_titles) FROM table_14115168_4 WHERE school = "Peru State College"
Who won bronze is 2006?
CREATE TABLE table_name_7 (bronze VARCHAR, year VARCHAR)
SELECT bronze FROM table_name_7 WHERE year = 2006
What was the final score of game 26?
CREATE TABLE table_name_64 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_64 WHERE game = 26
What is the location of Blanca Peak?
CREATE TABLE table_name_77 (location VARCHAR, mountain_peak VARCHAR)
SELECT location FROM table_name_77 WHERE mountain_peak = "blanca peak"
What is the Type for l. publilius philo vulscus?
CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)
SELECT type FROM table_name_46 WHERE name = "l. publilius philo vulscus"
WWhich rder had a vehicle manufactured by kr211v?
CREATE TABLE table_name_26 (rider VARCHAR, manufacturer VARCHAR)
SELECT rider FROM table_name_26 WHERE manufacturer = "kr211v"
Who was the home team for the game that has a Tie value of 3?
CREATE TABLE table_name_36 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_36 WHERE tie_no = "3"
What were all Yachts with a sail number of 6952?
CREATE TABLE table_14882588_3 (yacht VARCHAR, sail_number VARCHAR)
SELECT yacht FROM table_14882588_3 WHERE sail_number = "6952"
On what day was the game that ended in a score of 97-38?
CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_17 WHERE score = "97-38"
Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.
CREATE TABLE trip (id VARCHAR, zip_code VARCHAR); CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER)
SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING AVG(T2.mean_temperature_f) > 60
What is the Package Option of TV Channel with serial name "Sky Radio"?
CREATE TABLE TV_Channel (Package_Option VARCHAR, series_name VARCHAR)
SELECT Package_Option FROM TV_Channel WHERE series_name = "Sky Radio"
What is the Game on April 13 with Road Team St. Louis?
CREATE TABLE table_name_16 (game VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT game FROM table_name_16 WHERE road_team = "st. louis" AND date = "april 13"
What is the San Antonio's team score?
CREATE TABLE table_17288825_5 (score VARCHAR, team VARCHAR)
SELECT score FROM table_17288825_5 WHERE team = "San Antonio"
What is the nationality of the player picked to go to Washington Capitals?
CREATE TABLE table_2897457_2 (nationality VARCHAR, nhl_team VARCHAR)
SELECT nationality FROM table_2897457_2 WHERE nhl_team = "Washington Capitals"
Loss of willis has what record?
CREATE TABLE table_name_52 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_52 WHERE loss = "willis"
What is the Name of the D Player born on 1983-07-19?
CREATE TABLE table_name_46 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR)
SELECT name FROM table_name_46 WHERE pos = "d" AND date_of_birth = "1983-07-19"
What is the Departure time at Kanpur Central Station?
CREATE TABLE table_name_67 (departure VARCHAR, station_name VARCHAR)
SELECT departure FROM table_name_67 WHERE station_name = "kanpur central"
What is Northern Colorado's Rnd.?
CREATE TABLE table_name_18 (rnd VARCHAR, college VARCHAR)
SELECT rnd FROM table_name_18 WHERE college = "northern colorado"
What is the name of the customer who has the most policies listed?
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)
SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1
What is the type of disc by Logistics after 2004?
CREATE TABLE table_name_95 (type VARCHAR, year VARCHAR, artist VARCHAR)
SELECT type FROM table_name_95 WHERE year > 2004 AND artist = "logistics"
What is average frequency MHZ when is in portales, new mexico?
CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico"
Name the least number for mydeejay
CREATE TABLE table_15887683_10 (n INTEGER, television_service VARCHAR)
SELECT MIN(n) AS ° FROM table_15887683_10 WHERE television_service = "myDeejay"
Which Seattle quarterback has more than 81 career wins and less than 70 team wins?
CREATE TABLE table_name_33 (quarterback VARCHAR, team_wins VARCHAR, career_wins VARCHAR, teams VARCHAR)
SELECT quarterback FROM table_name_33 WHERE career_wins > 81 AND teams = "seattle" AND team_wins < 70
Tell me the country for lane of 6
CREATE TABLE table_name_66 (country VARCHAR, lane VARCHAR)
SELECT country FROM table_name_66 WHERE lane = 6
At what Location was the Runner-up TBD?
CREATE TABLE table_name_3 (location VARCHAR, runner_up VARCHAR)
SELECT location FROM table_name_3 WHERE runner_up = "tbd"
What is the name of the team leading on August 17?
CREATE TABLE table_name_6 (team VARCHAR, date VARCHAR)
SELECT team FROM table_name_6 WHERE date = "august 17"
Which Team has a Winner of craig lowndes, and a Circuit of phillip island grand prix circuit?
CREATE TABLE table_name_69 (team VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT team FROM table_name_69 WHERE winner = "craig lowndes" AND circuit = "phillip island grand prix circuit"
Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0?
CREATE TABLE table_name_66 (points_won INTEGER, total_matches VARCHAR, total_w_l_h VARCHAR)
SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0"
What was the series on may 27?
CREATE TABLE table_name_16 (series VARCHAR, date VARCHAR)
SELECT series FROM table_name_16 WHERE date = "may 27"
Which Investing Dragon(s) requested 100,000 in money and has autosafe?
CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR)
SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe"
What are the resident details containing the substring 'Miss'?
CREATE TABLE Residents (other_details VARCHAR)
SELECT other_details FROM Residents WHERE other_details LIKE '%Miss%'
From what series was the title with a production number of 1614 that was directed by Friz Freleng?
CREATE TABLE table_name_15 (series VARCHAR, director VARCHAR, production_number VARCHAR)
SELECT series FROM table_name_15 WHERE director = "friz freleng" AND production_number = 1614
Who has 187kg and a Snatch of Clean & Jerk?
CREATE TABLE table_name_79 (snatch VARCHAR)
SELECT 187 AS kg FROM table_name_79 WHERE snatch = "clean & jerk"
Who is the director of Last Window: The Secret of Cape West 3?
CREATE TABLE table_name_93 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_93 WHERE title = "last window: the secret of cape west 3"
What was the finish of the winner of the 2000 Masters?
CREATE TABLE table_name_54 (finish VARCHAR, year_s__won VARCHAR)
SELECT finish FROM table_name_54 WHERE year_s__won = "2000"
in which city was charter date december 4, 2011
CREATE TABLE table_18159601_1 (city VARCHAR, charter_date VARCHAR)
SELECT city FROM table_18159601_1 WHERE charter_date = "December 4, 2011"
What is the launched date of the destroyer completed 1 July 1936?
CREATE TABLE table_name_28 (launched VARCHAR, completed VARCHAR)
SELECT launched FROM table_name_28 WHERE completed = "1 july 1936"
Where was the UFC 154 match held?
CREATE TABLE table_name_18 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_18 WHERE event = "ufc 154"
Which skip (club) had 31 PA and 9 blank ends?
CREATE TABLE table_29546030_2 (skip__club_ VARCHAR, pa VARCHAR, blank_ends VARCHAR)
SELECT skip__club_ FROM table_29546030_2 WHERE pa = 31 AND blank_ends = 9
What language did the word that means mahjong first come from?
CREATE TABLE table_name_28 (source_language VARCHAR, meaning VARCHAR)
SELECT source_language FROM table_name_28 WHERE meaning = "mahjong"
what is the ranking for 2010 production of 2,903,000?
CREATE TABLE table_name_52 (rank VARCHAR)
SELECT rank FROM table_name_52 WHERE 2010 = "2,903,000"
How many picks on average did Jay Bruchak have before round 6?
CREATE TABLE table_name_7 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_7 WHERE player = "jay bruchak" AND round < 6
What Version has a Title of alarm clock?
CREATE TABLE table_name_77 (version VARCHAR, title VARCHAR)
SELECT version FROM table_name_77 WHERE title = "alarm clock"
What is the place of player peter oosterhuis, who has $7,500?
CREATE TABLE table_name_7 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT place FROM table_name_7 WHERE money___$__ = "7,500" AND player = "peter oosterhuis"
What is the number of seasons for the team with a total fewer than 24?
CREATE TABLE table_name_45 (seasons INTEGER, total_points INTEGER)
SELECT SUM(seasons) FROM table_name_45 WHERE total_points < 24
What services were in the area of operation Wadi Borjuj?
CREATE TABLE table_name_2 (services VARCHAR, area_of_operation VARCHAR)
SELECT services FROM table_name_2 WHERE area_of_operation = "wadi borjuj"
tell me the name of the capital with an area of 20,4.
CREATE TABLE table_name_7 (capital VARCHAR, area_in_1000km²__1930_ VARCHAR)
SELECT capital FROM table_name_7 WHERE area_in_1000km²__1930_ = "20,4"
How many placements in total does russia have?
CREATE TABLE table_28634206_1 (total INTEGER, country VARCHAR)
SELECT MAX(total) FROM table_28634206_1 WHERE country = "Russia"
What are characteristic names used at least twice across all products?
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name HAVING COUNT(*) >= 2
Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)
CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_22853654_9 WHERE result = "3–6, 4–6, 6–1, 6–7 (7–9)"
Who was the home team when the score was 0:1?
CREATE TABLE table_name_90 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_90 WHERE score = "0:1"
When the value world rank is 7, what is the rank?
CREATE TABLE table_21109892_1 (rank VARCHAR, value_world_rank VARCHAR)
SELECT rank FROM table_21109892_1 WHERE value_world_rank = "7"
Which Player has a Rank of t12, and a Country of taiwan, and a Lifespan of 1963–?
CREATE TABLE table_name_4 (player VARCHAR, lifespan VARCHAR, rank VARCHAR, country VARCHAR)
SELECT player FROM table_name_4 WHERE rank = "t12" AND country = "taiwan" AND lifespan = "1963–"
what is the mascot of st. paul's school?
CREATE TABLE table_2439728_1 (mascot VARCHAR, school VARCHAR)
SELECT mascot FROM table_2439728_1 WHERE school = "St. Paul's school"
What was team 2 when team 1 was omonia?
CREATE TABLE table_name_9 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_9 WHERE team_1 = "omonia"
What is the away team when north melbourne is at home?
CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_99 WHERE home_team = "north melbourne"
What is the IHSAA class when the county was 83 vermillion?
CREATE TABLE table_name_40 (ihsaa_class VARCHAR, county VARCHAR)
SELECT ihsaa_class FROM table_name_40 WHERE county = "83 vermillion"
who were the writers in the episode whose production code was 411?
CREATE TABLE table_27622417_1 (written_by VARCHAR, prod_code VARCHAR)
SELECT written_by FROM table_27622417_1 WHERE prod_code = "411"
What is 2000, when Tournament is "Canada Masters"?
CREATE TABLE table_name_67 (tournament VARCHAR)
SELECT 2000 FROM table_name_67 WHERE tournament = "canada masters"
How may episodes did season 1 have?
CREATE TABLE table_name_22 (episodes VARCHAR, season_no VARCHAR)
SELECT COUNT(episodes) FROM table_name_22 WHERE season_no = 1
What is the Surface of the match played on October 5, 1987?
CREATE TABLE table_name_77 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_77 WHERE date = "october 5, 1987"
What was the result in the Tennessee 6 district election?
CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1342270_42 WHERE district = "Tennessee 6"
What was the bleeding time for the factor x deficiency as seen in amyloid purpura
CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, condition VARCHAR)
SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"
Which Year has a nominated outstanding actor in a musical?
CREATE TABLE table_name_88 (year VARCHAR, result VARCHAR, category VARCHAR)
SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical"
Which city in Texas hosts the Frank Erwin center?
CREATE TABLE table_name_58 (city VARCHAR, state VARCHAR, venue VARCHAR)
SELECT city FROM table_name_58 WHERE state = "texas" AND venue = "frank erwin center"
What is the average round of player Sammy Morris?
CREATE TABLE table_name_13 (round INTEGER, player VARCHAR)
SELECT AVG(round) FROM table_name_13 WHERE player = "sammy morris"
How many accounts are there in total?
CREATE TABLE accounts (Id VARCHAR)
SELECT COUNT(*) FROM accounts
What Tournament had a Winning score of –6 (73-68-72-69=282)?
CREATE TABLE table_name_49 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282)
What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068?
CREATE TABLE table_name_55 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, constellation VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = "dorado" AND declination___j2000__ = "°12′43″"
Can you tell me the Name that has the Rank of 4?
CREATE TABLE table_name_10 (name VARCHAR, rank VARCHAR)
SELECT name FROM table_name_10 WHERE rank = 4
How many grids does dave walker have?
CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_6 WHERE driver = "dave walker"
How many cardiff wins have a draw greater than 27?
CREATE TABLE table_name_26 (cardiff_win VARCHAR, draw INTEGER)
SELECT COUNT(cardiff_win) FROM table_name_26 WHERE draw > 27
What is the pick# from South Dakota college?
CREATE TABLE table_name_23 (pick__number VARCHAR, college VARCHAR)
SELECT pick__number FROM table_name_23 WHERE college = "south dakota"
How many networks aired the franchise in 1981 only?
CREATE TABLE table_12438767_1 (network VARCHAR, dates_aired VARCHAR)
SELECT COUNT(network) FROM table_12438767_1 WHERE dates_aired = "1981"
What pick number did Real Salt Lake get?
CREATE TABLE table_29836557_2 (pick__number INTEGER, mls_team VARCHAR)
SELECT MIN(pick__number) FROM table_29836557_2 WHERE mls_team = "Real Salt Lake"
Which Gross has a Studio of mgm?
CREATE TABLE table_name_25 (gross VARCHAR, studio VARCHAR)
SELECT gross FROM table_name_25 WHERE studio = "mgm"
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 round_of_32 FROM table_18602462_21 WHERE round_of_16 = "Did not advance"
Where was the game on September 12 played when the Dallas Cowboys was the visiting team?
CREATE TABLE table_name_26 (stadium VARCHAR, visiting_team VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_26 WHERE visiting_team = "dallas cowboys" AND date = "september 12"
What is the total number of Points with less than 1 tries, and more than 0 goals?
CREATE TABLE table_name_60 (points VARCHAR, tries VARCHAR, goals VARCHAR)
SELECT COUNT(points) FROM table_name_60 WHERE tries < 1 AND goals > 0
What is the giant slalom with a 37 super g?
CREATE TABLE table_name_94 (Giant VARCHAR, super_g VARCHAR)
SELECT Giant AS slalom FROM table_name_94 WHERE super_g = "37"
What was the result when the guest was fc zürich (asl)?
CREATE TABLE table_name_93 (result VARCHAR, guest VARCHAR)
SELECT result FROM table_name_93 WHERE guest = "fc zürich (asl)"
Show the guest first names, start dates, and end dates of all the apartment bookings.
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_id VARCHAR)
SELECT T2.guest_first_name, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id
What is day 4 when day 2 is PAAQ?
CREATE TABLE table_name_3 (day_4 VARCHAR, day_2 VARCHAR)
SELECT day_4 FROM table_name_3 WHERE day_2 = "paaq"
What is the Place of the Player with a Score of 70-75-70-74=289?
CREATE TABLE table_name_60 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_60 WHERE score = 70 - 75 - 70 - 74 = 289
What was the away team score when Richmond was the home team?
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_80 WHERE home_team = "richmond"
What is the average number of seasons completed of the team with less than 1 division titles, 0 playoff appearances, and more than 0 finals appearances?
CREATE TABLE table_name_97 (seasons_completed INTEGER, finals_appearances VARCHAR, division_titles VARCHAR, playoff_appearances VARCHAR)
SELECT AVG(seasons_completed) FROM table_name_97 WHERE division_titles < 1 AND playoff_appearances = 0 AND finals_appearances > 0
What is the short name of the channel under 5.2?
CREATE TABLE table_name_2 (psip_short_name VARCHAR, channel INTEGER)
SELECT psip_short_name FROM table_name_2 WHERE channel < 5.2
What company built the car driven by Tony Brooks?
CREATE TABLE table_name_69 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_69 WHERE driver = "tony brooks"
Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia?
CREATE TABLE table_name_75 (group_vI VARCHAR, group_iII VARCHAR, valencia VARCHAR, group_i VARCHAR, group_iV VARCHAR, sevilla VARCHAR)
SELECT group_vI FROM table_name_75 WHERE group_i = "deportivo" AND group_iV = sevilla AND group_iII = valencia
When did they play against West Virginia?
CREATE TABLE table_20850339_1 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_20850339_1 WHERE opponent = "West Virginia"
Tell me the week for record of 0-1
CREATE TABLE table_name_19 (week VARCHAR, record VARCHAR)
SELECT week FROM table_name_19 WHERE record = "0-1"
where pageant is elite model look and year is bigger than 1993.0, who is the delegate?
CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)
SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0
What republican candidate was first elected most recently?
CREATE TABLE table_1341690_5 (first_elected INTEGER, party VARCHAR)
SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = "Republican"
Which Score has a Record of 18–11–5?
CREATE TABLE table_name_85 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_85 WHERE record = "18–11–5"