question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
How many simplified names are there for xin county? | create table table_2847477_2 (simplified varchar, english_name varchar, PRIMARY KEY (simplified)) | select count(simplified) from table_2847477_2 where english_name = "xin county" |
Find the id of the courses that do not have any prerequisite? | create table prereq (course_id varchar, PRIMARY KEY (course_id)); create table course (course_id varchar, PRIMARY KEY (course_id)) | select course_id from course except select course_id from prereq |
what is ba - running bear where b - bishop is rn - running stag? | create table table_2603017_2 (ba___running_bear varchar, b___bishop varchar, PRIMARY KEY (ba___running_bear)) | select ba___running_bear from table_2603017_2 where b___bishop = "rn - running stag" |
What is the innings when the highest score is 72? | create table table_28846752_4 (innings integer, highest_score varchar, PRIMARY KEY (innings)) | select max(innings) from table_28846752_4 where highest_score = "72" |
Name the record for kentucky | create table table_22847880_2 (record varchar, opponent varchar, PRIMARY KEY (record)) | select record from table_22847880_2 where opponent = "kentucky" |
What is the model of the enginge d5252 t? | create table table_1147701_5 (model_name varchar, engine_code varchar, PRIMARY KEY (model_name)) | select model_name from table_1147701_5 where engine_code = "d5252 t" |
When tim bridgman gregor fisken is the pole position who is the gt3 winner? | create table table_30062172_3 (gt3_winner varchar, pole_position varchar, PRIMARY KEY (gt3_winner)) | select gt3_winner from table_30062172_3 where pole_position = "tim bridgman gregor fisken" |
List all car plates in the capital of Wilno since the year of 1937. | create table table_11654169_1 (car_plates__since_1937_ varchar, capital varchar, PRIMARY KEY (car_plates__since_1937_)) | select car_plates__since_1937_ from table_11654169_1 where capital = "wilno" |
who is the the candidates with incumbent being don fuqua | create table table_1341604_10 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1341604_10 where incumbent = "don fuqua" |
How many incoming managers did Burnley have? | create table table_26593762_3 (incoming_manager varchar, team varchar, PRIMARY KEY (incoming_manager)) | select count(incoming_manager) from table_26593762_3 where team = "burnley" |
What is the load bearing capacity when the name is Camelus Dromedarius | create table table_1427868_1 (load_bearing_capacity varchar, scientific_name varchar, PRIMARY KEY (load_bearing_capacity)) | select load_bearing_capacity from table_1427868_1 where scientific_name = "camelus dromedarius" |
What event was in detroit? | create table table_1139087_2 (grand_prix varchar, location varchar, PRIMARY KEY (grand_prix)) | select grand_prix from table_1139087_2 where location = "detroit" |
Which country does customer with first name as Carole and last name as Bernhard lived in? | create table addresses (country varchar, address_id varchar, PRIMARY KEY (country)); create table customers (customer_address_id varchar, first_name varchar, last_name varchar, PRIMARY KEY (customer_address_id)) | select t2.country from customers as t1 join addresses as t2 on t1.customer_address_id = t2.address_id where t1.first_name = "carole" and t1.last_name = "bernhard" |
what is the number where the player was jimmy demaret | create table table_262383_1 (runner_s__up varchar, PRIMARY KEY (runner_s__up)) | select 54 as _holes from table_262383_1 where runner_s__up = "jimmy demaret" |
Who's the writer of the episode see by 12.13 million US viewers? | create table table_12159115_2 (written_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (written_by)) | select written_by from table_12159115_2 where us_viewers__millions_ = "12.13" |
Show the people that have been comptroller the most times and the corresponding number of times. | create table party (comptroller varchar, PRIMARY KEY (comptroller)) | select comptroller, count(*) from party group by comptroller order by count(*) desc limit 1 |
What is the official name of the municipality whose name in Spanish is Cripán? | create table table_300283_1 (official_name varchar, name_in_spanish varchar, PRIMARY KEY (official_name)) | select official_name from table_300283_1 where name_in_spanish = "cripán" |
What is the minimum number of barangays where the type is component city? | create table table_255602_1 (no_of_barangays integer, type varchar, PRIMARY KEY (no_of_barangays)) | select min(no_of_barangays) from table_255602_1 where type = "component city" |
what is the party with the incumbent jim demint? | create table table_1341423_40 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341423_40 where incumbent = "jim demint" |
Who was the away team when Carlton was the home team? | create table table_14312471_1 (away_team varchar, home_team varchar, PRIMARY KEY (away_team)) | select away_team from table_14312471_1 where home_team = "carlton" |
List the name of musicals that do not have actors. | create table actor (name varchar, musical_id varchar, PRIMARY KEY (name)); create table musical (name varchar, musical_id varchar, PRIMARY KEY (name)) | select name from musical where not musical_id in (select musical_id from actor) |
What television service is in italy and is in english? | create table table_15887683_15 (television_service varchar, country varchar, language varchar, PRIMARY KEY (television_service)) | select television_service from table_15887683_15 where country = "italy" and language = "english" |
Show name of all students who have some friends and also are liked by someone else. | create table highschooler (name varchar, id varchar, PRIMARY KEY (name)); create table likes (student_id varchar, liked_id varchar, PRIMARY KEY (student_id)); create table friend (student_id varchar, liked_id varchar, PRIMARY KEY (student_id)) | select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id intersect select t2.name from likes as t1 join highschooler as t2 on t1.liked_id = t2.id |
What original air dates are associated with a viewing figure of 7.27 million? | create table table_15026994_2 (original_air_date varchar, viewing_figure varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_15026994_2 where viewing_figure = "7.27 million" |
What language was spoken in Everlasting Moments? | create table table_18994724_1 (language_s_ varchar, film_title_used_in_nomination varchar, PRIMARY KEY (language_s_)) | select language_s_ from table_18994724_1 where film_title_used_in_nomination = "everlasting moments" |
List all company names with a book published by Alyson. | create table culture_company (company_name varchar, book_club_id varchar, PRIMARY KEY (company_name)); create table book_club (book_club_id varchar, publisher varchar, PRIMARY KEY (book_club_id)) | select t1.company_name from culture_company as t1 join book_club as t2 on t1.book_club_id = t2.book_club_id where t2.publisher = 'alyson' |
Name the channels when designation is pc700 | create table table_142573_1 (channels varchar, designation varchar, PRIMARY KEY (channels)) | select channels from table_142573_1 where designation = "pc700" |
Name the dar for 912 | create table table_15887683_17 (dar varchar, n° varchar, PRIMARY KEY (dar)) | select dar from table_15887683_17 where n° = 912 |
List all budget type codes and descriptions. | create table ref_budget_codes (budget_type_code varchar, budget_type_description varchar, PRIMARY KEY (budget_type_code)) | select budget_type_code, budget_type_description from ref_budget_codes |
what's the notes where number range is 17 | create table table_1181375_1 (notes varchar, number_range varchar, PRIMARY KEY (notes)) | select notes from table_1181375_1 where number_range = "17" |
If the residence is Chagrin falls, who is the representative? | create table table_26131768_4 (representative varchar, residence varchar, PRIMARY KEY (representative)) | select representative from table_26131768_4 where residence = "chagrin falls" |
Name the number of playoffs for semifinals | create table table_245694_4 (playoffs varchar, concacaf varchar, PRIMARY KEY (playoffs)) | select count(playoffs) from table_245694_4 where concacaf = "semifinals" |
What is the capital (endonym) where Douglas is the Capital (exonym)? | create table table_1008653_9 (capital___endonym__ varchar, capital___exonym__ varchar, PRIMARY KEY (capital___endonym__)) | select capital___endonym__ from table_1008653_9 where capital___exonym__ = "douglas" |
Is the iin range 4 active? | create table table_15905399_1 (active varchar, iin_ranges varchar, PRIMARY KEY (active)) | select active from table_15905399_1 where iin_ranges = "4" |
What is the total number of third place finishes when the city & nation was Vancouver, Canada? | create table table_2146364_2 (third_place integer, city_ varchar, _nation varchar, PRIMARY KEY (third_place)) | select min(third_place) from table_2146364_2 where city_ & _nation = "vancouver, canada" |
Name the chassis for alta | create table table_21977704_1 (chassis varchar, constructor varchar, PRIMARY KEY (chassis)) | select chassis from table_21977704_1 where constructor = "alta" |
What capital has a population of 596268? | create table table_1404414_2 (capital varchar, population_census_2009 varchar, PRIMARY KEY (capital)) | select capital from table_1404414_2 where population_census_2009 = 596268 |
Which political party is involved where John J. Delaney is the sitting Representative? | create table table_1342256_32 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1342256_32 where incumbent = "john j. delaney" |
What was the population in 2010 for Minane | create table table_2144436_1 (population__2010_ integer, barangay varchar, PRIMARY KEY (population__2010_)) | select max(population__2010_) from table_2144436_1 where barangay = "minane" |
Name the record with opponent atlanta falcons | create table table_13258823_2 (record varchar, opponent varchar, PRIMARY KEY (record)) | select record from table_13258823_2 where opponent = "atlanta falcons" |
Which type of record has result/games of b.c. 16 @ edmonton 22? | create table table_21436373_6 (type_of_record varchar, result_games varchar, PRIMARY KEY (type_of_record)) | select type_of_record from table_21436373_6 where result_games = "b.c. 16 @ edmonton 22" |
when does the train departuring at 11.35 arrive | create table table_18333678_2 (arrival varchar, departure varchar, PRIMARY KEY (arrival)) | select arrival from table_18333678_2 where departure = "11.35" |
Find all airlines that have fewer than 200 flights. | create table flights (airline varchar, PRIMARY KEY (airline)); create table airlines (airline varchar, uid varchar, PRIMARY KEY (airline)) | select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) < 200 |
Who performed the song named "Badlands"? Show the first name and the last name. | create table band (firstname varchar, lastname varchar, id varchar, PRIMARY KEY (firstname)); create table performance (bandmate varchar, songid varchar, PRIMARY KEY (bandmate)); create table songs (songid varchar, title varchar, PRIMARY KEY (songid)) | select t2.firstname, t2.lastname from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t3.title = "badlands" |
Retrieve all the first and last names of authors in the alphabetical order of last names. | create table authors (fname varchar, lname varchar, PRIMARY KEY (fname)) | select fname, lname from authors order by lname |
How many time is sunday day one is ahad? | create table table_1277350_7 (thursday_day_five varchar, sunday_day_one varchar, PRIMARY KEY (thursday_day_five)) | select count(thursday_day_five) from table_1277350_7 where sunday_day_one = "ahad" |
What kind of vehicle is the agra 1050? | create table table_19787093_1 (vehicle_category varchar, till_agra varchar, PRIMARY KEY (vehicle_category)) | select vehicle_category from table_19787093_1 where till_agra = 1050 |
Name the ply uk, nz, au for wraps per inch 7 wpi | create table table_20297668_1 (ply__uk varchar, _nz varchar, _au_ varchar, wraps_per_inch__wpi_ varchar, PRIMARY KEY (ply__uk)) | select ply__uk, _nz, _au_ from table_20297668_1 where wraps_per_inch__wpi_ = "7 wpi" |
Who had the highest rebounds during the game with a record of 23-47? | create table table_22822559_8 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_22822559_8 where record = "23-47" |
Who was the trainer when the jockey was Luke Nolen? | create table table_24915874_1 (trainer varchar, jockey varchar, PRIMARY KEY (trainer)) | select trainer from table_24915874_1 where jockey = "luke nolen" |
What is the broadcast date of the episode with run time 25:12? | create table table_1785117_1 (broadcast_date varchar, run_time varchar, PRIMARY KEY (broadcast_date)) | select broadcast_date from table_1785117_1 where run_time = "25:12" |
What's the Sanskrit word for month with Thai name มกราคม? | create table table_20354_5 (sanskrit_word varchar, thai_name varchar, PRIMARY KEY (sanskrit_word)) | select sanskrit_word from table_20354_5 where thai_name = "มกราคม" |
How many locations have the Sun Life Stadium? | create table table_15647838_3 (location varchar, stadium varchar, PRIMARY KEY (location)) | select count(location) from table_15647838_3 where stadium = "sun life stadium" |
How many precincts are in the county where G. Hager received 19 (20%) votes? | create table table_17820556_4 (precincts varchar, g_hager varchar, PRIMARY KEY (precincts)) | select precincts from table_17820556_4 where g_hager = "19 (20%)" |
What is the yacht type of Icap Leopard? | create table table_25561560_2 (yacht varchar, PRIMARY KEY (yacht)) | select yacht as type from table_25561560_2 where yacht = "icap leopard" |
What was the player's result at the U.S. Open of the player who finished 6th at the Open Ch? | create table table_1506950_9 (us_open varchar, open_ch varchar, PRIMARY KEY (us_open)) | select us_open from table_1506950_9 where open_ch = "6th" |
What is the nickname at the University of Nebraska at Omaha? | create table table_26476336_2 (team_nickname varchar, institution varchar, PRIMARY KEY (team_nickname)) | select team_nickname from table_26476336_2 where institution = "university of nebraska at omaha" |
What is the Galician (reintegrationist) word of the Galician (Official) is adeus*? | create table table_26614365_5 (galician___reintegrationist__ varchar, galician___official__ varchar, PRIMARY KEY (galician___reintegrationist__)) | select galician___reintegrationist__ from table_26614365_5 where galician___official__ = "adeus*" |
What is aggressive rider Richie Porte's team classifaction? | create table table_29332810_14 (team_classification varchar, aggressive_rider varchar, PRIMARY KEY (team_classification)) | select team_classification from table_29332810_14 where aggressive_rider = "richie porte" |
Name the surface for nathalie tauziat | create table table_24638867_6 (surface varchar, partner varchar, PRIMARY KEY (surface)) | select surface from table_24638867_6 where partner = "nathalie tauziat" |
What were the LOA (metres) for the yacht where the skipper was Jez Fanstone? | create table table_25595107_1 (loa__metres_ varchar, skipper varchar, PRIMARY KEY (loa__metres_)) | select loa__metres_ from table_25595107_1 where skipper = "jez fanstone" |
Find the names of rooms that have been reserved for more than 60 times. | create table reservations (room varchar, PRIMARY KEY (room)); create table rooms (roomname varchar, roomid varchar, PRIMARY KEY (roomname)) | select t2.roomname from reservations as t1 join rooms as t2 on t1.room = t2.roomid group by t1.room having count(*) > 60 |
If the driver is Milka Duno, what is the name of the team? | create table table_17693171_1 (team varchar, driver varchar, PRIMARY KEY (team)) | select team from table_17693171_1 where driver = "milka duno" |
Name the year for les portes tournantes | create table table_17025328_1 (year__ceremony_ varchar, original_title varchar, PRIMARY KEY (year__ceremony_)) | select year__ceremony_ from table_17025328_1 where original_title = "les portes tournantes" |
What is every strike rate when cathces/stumpings is 13/1? | create table table_2985664_8 (strike_rate varchar, catches_stumpings varchar, PRIMARY KEY (strike_rate)) | select strike_rate from table_2985664_8 where catches_stumpings = "13/1" |
What institution has the nickname Penmen? | create table table_12936521_2 (institution varchar, nickname varchar, PRIMARY KEY (institution)) | select institution from table_12936521_2 where nickname = "penmen" |
How many viewers in millions did the Alison McDonald episode get? | create table table_26961951_4 (us_viewers__million_ varchar, written_by varchar, PRIMARY KEY (us_viewers__million_)) | select us_viewers__million_ from table_26961951_4 where written_by = "alison mcdonald" |
What's the nickname of Westfield State University's students? | create table table_1974545_2 (nickname varchar, institution varchar, PRIMARY KEY (nickname)) | select nickname from table_1974545_2 where institution = "westfield state university" |
What is the total number of gentle personalities? | create table table_1912713_2 (方位_direction varchar, 性情_personality varchar, PRIMARY KEY (方位_direction)) | select count(方位_direction) from table_1912713_2 where 性情_personality = "gentle" |
when was otar iosseliani's film selected | create table table_18069789_1 (year_ varchar, e_ varchar, director varchar, PRIMARY KEY (year_)) | select year_[e_] as __ceremony_ from table_18069789_1 where director = "otar iosseliani" |
How did the team place when they did not qualify for the Concaf Champions Cup but made it to Round of 16 in the U.S. Open Cup? | create table table_16857_2 (mls_cup_playoffs varchar, concacaf_champions_cup___champions_league varchar, us_open_cup varchar, PRIMARY KEY (mls_cup_playoffs)) | select mls_cup_playoffs from table_16857_2 where concacaf_champions_cup___champions_league = "did not qualify" and us_open_cup = "round of 16" |
if they played last on 12/5/1987 what is their record | create table table_15740666_6 (current_streak varchar, last_meeting varchar, PRIMARY KEY (current_streak)) | select current_streak from table_15740666_6 where last_meeting = "12/5/1987" |
Name the gt winning car for #88 team mitsubishi 88 mitsubishi starion | create table table_27965906_2 (gt_winning_car varchar, a_winning_car varchar, PRIMARY KEY (gt_winning_car)) | select gt_winning_car from table_27965906_2 where a_winning_car = "#88 team mitsubishi 88 mitsubishi starion" |
How many times was revenue in millions recorded when the spending per capita was $6,736? | create table table_14700336_1 (revenue__millions_ varchar, spending_per_capita varchar, PRIMARY KEY (revenue__millions_)) | select count(revenue__millions_) from table_14700336_1 where spending_per_capita = "$6,736" |
How many networks aired the franchise in 1981 only? | create table table_12438767_1 (network varchar, dates_aired varchar, PRIMARY KEY (network)) | select count(network) from table_12438767_1 where dates_aired = "1981" |
What was the spending per capita when the revenue per capita was $7,755? | create table table_14700336_1 (spending_per_capita varchar, revenue_per_capita varchar, PRIMARY KEY (spending_per_capita)) | select spending_per_capita from table_14700336_1 where revenue_per_capita = "$7,755" |
Name the title that got 1.54 viewers | create table table_22347090_5 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title)) | select title from table_22347090_5 where us_viewers__million_ = "1.54" |
What is the former school of the player from Detroit, MI? | create table table_29418619_1 (former_school varchar, hometown varchar, PRIMARY KEY (former_school)) | select former_school from table_29418619_1 where hometown = "detroit, mi" |
Name the name of administrative unit for 3464 people | create table table_14465924_1 (name_of_administrative_unit varchar, population__people_ varchar, PRIMARY KEY (name_of_administrative_unit)) | select name_of_administrative_unit from table_14465924_1 where population__people_ = 3464 |
What is the 3rd participle of the verb whose 2nd participle is band? | create table table_1745843_5 (part_3 varchar, part_2 varchar, PRIMARY KEY (part_3)) | select part_3 from table_1745843_5 where part_2 = "band" |
Where does the bg express train end? | create table table_12095519_1 (destination varchar, train_name varchar, PRIMARY KEY (destination)) | select destination from table_12095519_1 where train_name = "bg express" |
How many wrestlers are there? | create table wrestler (id varchar, PRIMARY KEY (id)) | select count(*) from wrestler |
What is the original title of season number 3? | create table table_1481865_1 (title__original_ varchar, number_of_season varchar, PRIMARY KEY (title__original_)) | select title__original_ from table_1481865_1 where number_of_season = 3 |
what is the largest city where the province is eastern cape? | create table table_17416221_1 (largest_city varchar, province varchar, PRIMARY KEY (largest_city)) | select largest_city from table_17416221_1 where province = "eastern cape" |
List the names of editors that are not on any journal committee. | create table editor (name varchar, editor_id varchar, PRIMARY KEY (name)); create table journal_committee (name varchar, editor_id varchar, PRIMARY KEY (name)) | select name from editor where not editor_id in (select editor_id from journal_committee) |
What was the film that vadim ilyenko directed? | create table table_10236830_1 (film_name varchar, director varchar, PRIMARY KEY (film_name)) | select film_name from table_10236830_1 where director = "vadim ilyenko" |
Where is friendship collegiate charter school located | create table table_11677691_8 (hometown varchar, school varchar, PRIMARY KEY (hometown)) | select hometown from table_11677691_8 where school = "friendship collegiate charter school" |
Who directed the episode written by karina csolty | create table table_27969432_2 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by)) | select directed_by from table_27969432_2 where written_by = "karina csolty" |
What was the place and date that the Apartments area was damaged? | create table table_23014685_1 (place_ varchar, _date varchar, area_damaged varchar, PRIMARY KEY (place_)) | select place_ & _date from table_23014685_1 where area_damaged = "apartments area" |
What is the number of the player who went to Southern University? | create table table_11734041_9 (no_s_ varchar, school_club_team_country varchar, PRIMARY KEY (no_s_)) | select no_s_ from table_11734041_9 where school_club_team_country = "southern university" |
What is the minimum MotoGP/500cc ranking? | create table table_2889810_1 (motogp_500cc integer, PRIMARY KEY (motogp_500cc)) | select min(motogp_500cc) from table_2889810_1 |
How many new stations have a lenght (miles) of 6.0? | create table table_1817879_2 (_number_of_new_stations varchar, length__miles_ varchar, PRIMARY KEY (_number_of_new_stations)) | select count(_number_of_new_stations) from table_1817879_2 where length__miles_ = "6.0" |
What is the name of each course and the corresponding number of student enrollment? | create table courses (course_name varchar, course_id varchar, PRIMARY KEY (course_name)); create table student_course_enrolment (course_id varchar, PRIMARY KEY (course_id)) | select t1.course_name, count(*) from courses as t1 join student_course_enrolment as t2 on t1.course_id = t2.course_id group by t1.course_name |
Who is the winner when bigten (2-1) is the challenge leader? | create table table_21330550_2 (winner varchar, challenge_leader varchar, PRIMARY KEY (winner)) | select winner from table_21330550_2 where challenge_leader = "bigten (2-1)" |
What party does ron klink represent? | create table table_1341522_41 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341522_41 where incumbent = "ron klink" |
Which nation is where rider phillip dutton from? | create table table_18666752_3 (nation varchar, rider varchar, PRIMARY KEY (nation)) | select nation from table_18666752_3 where rider = "phillip dutton" |
Find the first name and country code of the oldest player. | create table players (first_name varchar, country_code varchar, birth_date varchar, PRIMARY KEY (first_name)) | select first_name, country_code from players order by birth_date limit 1 |
Who is the publisher of the book titled daughters of an emerald dusk? | create table table_20193855_2 (publisher varchar, book_title varchar, PRIMARY KEY (publisher)) | select publisher from table_20193855_2 where book_title = "daughters of an emerald dusk" |
Name the horizontal 0 for 明弦(ry日月) | create table table_25519358_1 (horizontal_0_a varchar, hypotenuse_0_c varchar, PRIMARY KEY (horizontal_0_a)) | select horizontal_0_a from table_25519358_1 where hypotenuse_0_c = "明弦(ry日月)" |
find the pixel aspect ratio and nation of the tv channels that do not use English. | create table tv_channel (pixel_aspect_ratio_par varchar, country varchar, language varchar, PRIMARY KEY (pixel_aspect_ratio_par)) | select pixel_aspect_ratio_par, country from tv_channel where language <> 'english' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.