question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What is every entry on Monday August 22 when the entry for Wednesday August 24 is 22' 50.05 99.141mph?
create table table_30058355_3 (mon_22_aug varchar, wed_24_aug varchar, PRIMARY KEY (mon_22_aug))
select mon_22_aug from table_30058355_3 where wed_24_aug = "22' 50.05 99.141mph"
Who directed the film with the original title of три летња дана?
create table table_22265716_1 (director varchar, original_title varchar, PRIMARY KEY (director))
select director from table_22265716_1 where original_title = "три летња дана"
Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?
create table table_1825751_4 (binibining_pilipinas_international varchar, miss_universe_philippines varchar, PRIMARY KEY (binibining_pilipinas_international))
select binibining_pilipinas_international from table_1825751_4 where miss_universe_philippines = "gionna cabrera"
Name the number of party for richard l. hanna (r) 53.1% mike arcuri (d) 46.9%
create table table_19753079_35 (party varchar, candidates varchar, PRIMARY KEY (party))
select count(party) from table_19753079_35 where candidates = "richard l. hanna (r) 53.1% mike arcuri (d) 46.9%"
What type of record is the result of the game Montreal 31 @ Calgary 32?
create table table_21436373_5 (type_of_record varchar, result_games varchar, PRIMARY KEY (type_of_record))
select type_of_record from table_21436373_5 where result_games = "montreal 31 @ calgary 32"
what's the model name with engine code being b5254 t4
create table table_1147701_4 (model_name varchar, engine_code varchar, PRIMARY KEY (model_name))
select model_name from table_1147701_4 where engine_code = "b5254 t4"
What is the tournament called for the Big Sky Conference?
create table table_24248450_3 (conference varchar, PRIMARY KEY (conference))
select conference as tournament from table_24248450_3 where conference = "big sky conference"
What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?
create table table_18821196_1 (status varchar, weekly_schedule varchar, PRIMARY KEY (status))
select status from table_18821196_1 where weekly_schedule = "monday to thursday @ 11:00 pm"
Show the studios that have not produced films with director "Walter Hill".
create table film (studio varchar, director varchar, PRIMARY KEY (studio))
select studio from film except select studio from film where director = "walter hill"
Name the hdtv when number is 378
create table table_15887683_6 (hdtv varchar, n° varchar, PRIMARY KEY (hdtv))
select hdtv from table_15887683_6 where n° = 378
What is 2002 when 2009 is 54.0?
create table table_27146868_1 (id varchar, PRIMARY KEY (id))
select 2002 from table_27146868_1 where 2009 = "54.0"
how many minimum 350cc has
create table table_2889810_2 (id varchar, PRIMARY KEY (id))
select min(350 as cc) from table_2889810_2
When bas van erp was the athlete what was the quarterfinals?
create table table_18602462_21 (quarterfinals varchar, athlete varchar, PRIMARY KEY (quarterfinals))
select quarterfinals from table_18602462_21 where athlete = "bas van erp"
Name the year for le confessional
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 = "le confessional"
What are the game modes for the game released in 2007?
create table table_1616608_2 (game_modes varchar, released_date varchar, PRIMARY KEY (game_modes))
select game_modes from table_1616608_2 where released_date = "2007"
What is the title of the issue where the art was done by Barry Kitson and Farmer?
create table table_18305523_2 (story_title varchar, artist_s varchar, PRIMARY KEY (story_title))
select story_title from table_18305523_2 where artist_s = "barry kitson and farmer"
What is the Segment A for when Segment C is s Sailboard?
create table table_15187735_6 (segment_a varchar, segment_c varchar, PRIMARY KEY (segment_a))
select segment_a from table_15187735_6 where segment_c = "s sailboard"
what is id of students who registered some courses but the least number of courses in these students?
create table student_course_registrations (student_id varchar, PRIMARY KEY (student_id))
select student_id from student_course_registrations group by student_id order by count(*) limit 1
Name the southern lakota for wakȟáŋyeža
create table table_1499791_2 (southern_lakota varchar, yankton_yanktonai varchar, PRIMARY KEY (southern_lakota))
select southern_lakota from table_1499791_2 where yankton_yanktonai = "wakȟáŋyeža"
Which airline has most number of 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 order by count(*) desc limit 1
What is every entry for passed when NO votes is 312187?
create table table_256286_43 (passed varchar, no_votes varchar, PRIMARY KEY (passed))
select passed from table_256286_43 where no_votes = 312187
Name the total number of rank for percentage change yoy 13.1%
create table table_27956_3 (national_rank varchar, percentage_change_yoy varchar, PRIMARY KEY (national_rank))
select count(national_rank) from table_27956_3 where percentage_change_yoy = "13.1%"
what is the glos & wilts where the bristol & somerset is lansdown?
create table table_12043148_2 (glos_ varchar, _wilts varchar, bristol_ varchar, _somerset varchar, PRIMARY KEY (glos_))
select glos_ & _wilts from table_12043148_2 where bristol_ & _somerset = "lansdown"
Name who was famous for finished in 9th
create table table_14345690_4 (famous_for varchar, finished varchar, PRIMARY KEY (famous_for))
select famous_for from table_14345690_4 where finished = "9th"
Return the text of tweets about the topic 'intern'.
create table tweets (text varchar, PRIMARY KEY (text))
select text from tweets where text like '%intern%'
For the Persian title گبه, What was the film title used for the nomination?
create table table_19625976_1 (film_title_used_in_nomination varchar, persian_title varchar, PRIMARY KEY (film_title_used_in_nomination))
select film_title_used_in_nomination from table_19625976_1 where persian_title = "گبه"
What party represents the district with john g. jackson?
create table table_2668378_18 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_2668378_18 where incumbent = "john g. jackson"
What was the title of the episode directed by David Mamet?
create table table_26200084_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
select title from table_26200084_1 where directed_by = "david mamet"
Where was the hometown for the player that attended Shanley High School?
create table table_11677691_4 (hometown varchar, school varchar, PRIMARY KEY (hometown))
select hometown from table_11677691_4 where school = "shanley high school"
What is hte license for beeone smod/hms software?
create table table_15038373_1 (license varchar, software varchar, PRIMARY KEY (license))
select license from table_15038373_1 where software = "beeone smod/hms"
Who were the umpires when Paul Vines (S) won the Simpson Medal?
create table table_13514348_7 (umpires varchar, simpson_medal varchar, PRIMARY KEY (umpires))
select umpires from table_13514348_7 where simpson_medal = "paul vines (s)"
What is the rnag for kippure transmitter?
create table table_18475946_2 (rnag__mhz_ varchar, transmitter varchar, PRIMARY KEY (rnag__mhz_))
select rnag__mhz_ from table_18475946_2 where transmitter = "kippure"
Where is milepost 12.8?
create table table_10568553_1 (location varchar, milepost varchar, PRIMARY KEY (location))
select location from table_10568553_1 where milepost = "12.8"
What's the team of the player from St. Francis Xavier College?
create table table_10812938_5 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team))
select cfl_team from table_10812938_5 where college = "st. francis xavier"
Who wrote episode that had 1.97 million u.s. viewers?
create table table_27892955_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by))
select written_by from table_27892955_1 where us_viewers__million_ = "1.97"
What was miles's bmi att the reunion?
create table table_28654454_5 (reunion_bmi varchar, contestant varchar, PRIMARY KEY (reunion_bmi))
select count(reunion_bmi) from table_28654454_5 where contestant = "miles"
How many tournaments are also currently known as the hp open?
create table table_19765685_2 (country varchar, also_currently_known_as varchar, PRIMARY KEY (country))
select count(country) from table_19765685_2 where also_currently_known_as = "hp open"
What is the processor speed (mhz) for part number a80486dx4-75?
create table table_15261_1 (processor_speed__mhz_ varchar, part_number varchar, PRIMARY KEY (processor_speed__mhz_))
select count(processor_speed__mhz_) from table_15261_1 where part_number = "a80486dx4-75"
What's the type of printer ports in the model number EX Plus3?
create table table_1300080_1 (printer_ports varchar, model_number varchar, PRIMARY KEY (printer_ports))
select printer_ports from table_1300080_1 where model_number = "ex plus3"
Who was the director of the episode originally aired on 26 October 1969?
create table table_1439096_1 (director varchar, original_air_date__atv_ varchar, PRIMARY KEY (director))
select director from table_1439096_1 where original_air_date__atv_ = "26 october 1969"
In the region where Roskilde is the largest city, what is the seat of administration?
create table table_16278602_1 (seat_of_administration varchar, largest_city varchar, PRIMARY KEY (seat_of_administration))
select seat_of_administration from table_16278602_1 where largest_city = "roskilde"
Name the original air date for 9.16 viewers
create table table_21550870_1 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_21550870_1 where us_viewers__million_ = "9.16"
which episode was Transmitted on wednesday if the episode of "319 sucker punch" was transmitted on tuesday?
create table table_18173916_8 (wednesday varchar, tuesday varchar, PRIMARY KEY (wednesday))
select count(wednesday) from table_18173916_8 where tuesday = "319 sucker punch"
What country has a compulsory deduction of 29.3%?
create table table_24486462_1 (country varchar, compulsory_deduction varchar, PRIMARY KEY (country))
select country from table_24486462_1 where compulsory_deduction = "29.3%"
Who directed the episode that originally aired on February 16, 1999?
create table table_228973_5 (directed_by varchar, original_air_date varchar, PRIMARY KEY (directed_by))
select directed_by from table_228973_5 where original_air_date = "february 16, 1999"
Show the locations that have at least two performances.
create table performance (location varchar, PRIMARY KEY (location))
select location from performance group by location having count(*) >= 2
What's the model designation of the model with GVW of 2828/2.78 kg/ton and axle ratio of 9/47?
create table table_20866024_3 (model_designation varchar, gvw__kg_ton_ varchar, axle_ratio varchar, PRIMARY KEY (model_designation))
select model_designation from table_20866024_3 where gvw__kg_ton_ = "2828/2.78" and axle_ratio = "9/47"
What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph?
create table table_23465864_6 (tues_25_aug varchar, mon_24_aug varchar, PRIMARY KEY (tues_25_aug))
select tues_25_aug from table_23465864_6 where mon_24_aug = "22' 24.56 101.021mph"
What is the eastern word for "light"?
create table table_26614365_1 (eastern varchar, english varchar, PRIMARY KEY (eastern))
select eastern from table_26614365_1 where english = "light"
Who is every co-artist with name of role as Ah-Zhong 阿忠?
create table table_23379776_5 (co_artists varchar, name_of_role varchar, PRIMARY KEY (co_artists))
select co_artists from table_23379776_5 where name_of_role = "ah-zhong 阿忠"
Who was awarded the young ride classification leader when the winner was Marzio Bruseghin?
create table table_14710984_2 (young_rider_classification varchar, winner varchar, PRIMARY KEY (young_rider_classification))
select young_rider_classification from table_14710984_2 where winner = "marzio bruseghin"
When united kingdom is the country what is the most recent date?
create table table_18676973_3 (most_recent_date varchar, country varchar, PRIMARY KEY (most_recent_date))
select most_recent_date from table_18676973_3 where country = "united kingdom"
What is the time/retired if the driver is Ed Carpenter?
create table table_17693171_1 (time_retired varchar, driver varchar, PRIMARY KEY (time_retired))
select time_retired from table_17693171_1 where driver = "ed carpenter"
How many jury votes for the televote of 7?
create table table_19763199_4 (jury_votes varchar, televotes varchar, PRIMARY KEY (jury_votes))
select jury_votes from table_19763199_4 where televotes = 7
Which divisions have 565 as the number of winning tickets?
create table table_20195922_3 (divisions varchar, number_of_winning_tickets varchar, PRIMARY KEY (divisions))
select divisions from table_20195922_3 where number_of_winning_tickets = 565
What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?
create table drivers (surname varchar, driverid varchar, PRIMARY KEY (surname)); create table results (driverid varchar, PRIMARY KEY (driverid)); create table pitstops (driverid varchar, PRIMARY KEY (driverid))
select t1.surname, t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) = 11 intersect select t1.surname, t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5
What percentage of free/reduced lunch are there when the hispanic percentage is 3.7?
create table table_14754471_1 (free_reduced_lunch___percentage_ varchar, hispanic___percentage_ varchar, PRIMARY KEY (free_reduced_lunch___percentage_))
select free_reduced_lunch___percentage_ from table_14754471_1 where hispanic___percentage_ = "3.7"
who is the the incumbent with candidates being jack z. anderson (r) unopposed
create table table_1342233_6 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_1342233_6 where candidates = "jack z. anderson (r) unopposed"
Nigeria had the fastest time once.
create table table_1231316_5 (fastest_time__s_ varchar, nation varchar, PRIMARY KEY (fastest_time__s_))
select count(fastest_time__s_) from table_1231316_5 where nation = "nigeria"
For each zip code, return how many times max wind speed reached 25?
create table weather (zip_code varchar, max_wind_speed_mph varchar, PRIMARY KEY (zip_code))
select zip_code, count(*) from weather where max_wind_speed_mph >= 25 group by zip_code
how many mens singles with mens doubles being pontus jantti lasse lindelöf
create table table_13857700_1 (mens_singles varchar, mens_doubles varchar, PRIMARY KEY (mens_singles))
select count(mens_singles) from table_13857700_1 where mens_doubles = "pontus jantti lasse lindelöf"
which round is u.s. open cup division semifinals
create table table_1046170_5 (us_open_cup varchar, playoffs varchar, PRIMARY KEY (us_open_cup))
select us_open_cup from table_1046170_5 where playoffs = "division semifinals"
What number-one single is performed by artist Pep's?
create table table_27441210_17 (number_one_single_s_ varchar, artist varchar, PRIMARY KEY (number_one_single_s_))
select number_one_single_s_ from table_27441210_17 where artist = "pep's"
Name the fat for protein being 4 and calories 80
create table table_2493389_1 (fat__g_ varchar, protein__g_ varchar, calories__1_tbsp__ varchar, PRIMARY KEY (fat__g_))
select fat__g_ from table_2493389_1 where protein__g_ = "4" and calories__1_tbsp__ = 80
What couple had vote percentage of 21.843%?
create table table_19744915_22 (couple varchar, vote_percentage varchar, PRIMARY KEY (couple))
select couple from table_19744915_22 where vote_percentage = "21.843%"
What is the number of car models that are produced by each maker and what is the id and full name of each maker?
create table car_makers (fullname varchar, id varchar, id varchar, PRIMARY KEY (fullname)); create table model_list (maker varchar, PRIMARY KEY (maker))
select count(*), t2.fullname, t2.id from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id
What is the order # for the original artist sarah mclachlan?
create table table_26250145_1 (order__number varchar, original_artist varchar, PRIMARY KEY (order__number))
select order__number from table_26250145_1 where original_artist = "sarah mclachlan"
Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"?
create table band (id varchar, lastname varchar, PRIMARY KEY (id)); create table vocals (songid varchar, bandmate varchar, PRIMARY KEY (songid)); create table songs (songid varchar, title varchar, PRIMARY KEY (songid))
select type from vocals as t1 join songs as t2 on t1.songid = t2.songid join band as t3 on t1.bandmate = t3.id where t3.lastname = "heilo" and t2.title = "der kapitan"
Show the member names which are in both the party with id 3 and the party with id 1.
create table member (member_name varchar, party_id varchar, PRIMARY KEY (member_name))
select member_name from member where party_id = 3 intersect select member_name from member where party_id = 1
Who are all the players from the united states?
create table table_24302700_6 (name varchar, nationality varchar, PRIMARY KEY (name))
select name from table_24302700_6 where nationality = "united states"
Which actors are from Ukraine?
create table table_10236830_4 (actors_name varchar, country varchar, PRIMARY KEY (actors_name))
select actors_name from table_10236830_4 where country = "ukraine"
Who are the major users from Australia?
create table table_29474407_11 (major_users varchar, country_of_origin varchar, PRIMARY KEY (major_users))
select major_users from table_29474407_11 where country_of_origin = "australia"
Where is the miss global teen?
create table table_1825751_14 (hometown varchar, pageant varchar, PRIMARY KEY (hometown))
select hometown from table_1825751_14 where pageant = "miss global teen"
Find the top 3 artists who have the largest number of songs works whose language is Bangla.
create table song (artist_name varchar, languages varchar, PRIMARY KEY (artist_name)); create table artist (artist_name varchar, PRIMARY KEY (artist_name))
select t1.artist_name from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.languages = "bangla" group by t2.artist_name order by count(*) desc limit 3
How many countries (endonym) has the capital (endonym) of Jakarta?
create table table_1008653_9 (country___endonym__ varchar, capital___endonym__ varchar, PRIMARY KEY (country___endonym__))
select count(country___endonym__) from table_1008653_9 where capital___endonym__ = "jakarta"
Name the fsi 2012 for 42.7 cpi
create table table_26313243_1 (fsi_2012 varchar, cpi_2012 varchar, PRIMARY KEY (fsi_2012))
select fsi_2012 from table_26313243_1 where cpi_2012 = "42.7"
List the smallest possible spoilt vote with the sør-trøndelag constituency.
create table table_1289762_1 (s_spoilt_vote integer, constituency varchar, PRIMARY KEY (s_spoilt_vote))
select min(s_spoilt_vote) from table_1289762_1 where constituency = "sør-trøndelag"
What was the record set during the game played at Hubert H. Humphrey Metrodome?
create table table_13258851_2 (record varchar, game_site varchar, PRIMARY KEY (record))
select record from table_13258851_2 where game_site = "hubert h. humphrey metrodome"
What is the bts retail price (regulated) for tariff code g10?
create table table_10408617_5 (bts_retail_price__regulated_ varchar, tariff_code varchar, PRIMARY KEY (bts_retail_price__regulated_))
select bts_retail_price__regulated_ from table_10408617_5 where tariff_code = "g10"
Name the general classification for mauricio soler
create table table_29077342_19 (general_classification varchar, winner varchar, PRIMARY KEY (general_classification))
select general_classification from table_29077342_19 where winner = "mauricio soler"
how many wiaa classifications does fort vancouver high school have?
create table table_22058547_1 (wiaa_classification varchar, high_school varchar, PRIMARY KEY (wiaa_classification))
select count(wiaa_classification) from table_22058547_1 where high_school = "fort vancouver"
What date did the episode originally air on with salvatore giunta as a guest?
create table table_25691838_11 (original_airdate varchar, guest varchar, PRIMARY KEY (original_airdate))
select original_airdate from table_25691838_11 where guest = "salvatore giunta"
Please show the most common reigns of wrestlers.
create table wrestler (reign varchar, PRIMARY KEY (reign))
select reign from wrestler group by reign order by count(*) desc limit 1
Show all game ids and the number of hours played.
create table plays_games (gameid varchar, hours_played integer, PRIMARY KEY (gameid))
select gameid, sum(hours_played) from plays_games group by gameid
List the name of staff who has been assigned multiple jobs.
create table staff (staff_name varchar, staff_id varchar, PRIMARY KEY (staff_name)); create table staff_department_assignments (staff_id varchar, PRIMARY KEY (staff_id))
select t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id group by t2.staff_id having count(*) > 1
What race was held at Oulton Park?
create table table_1140088_6 (race_name varchar, circuit varchar, PRIMARY KEY (race_name))
select race_name from table_1140088_6 where circuit = "oulton park"
When 19/05/2002 is the date of withdrawn what is the name?
create table table_21795986_1 (name varchar, withdrawn varchar, PRIMARY KEY (name))
select name from table_21795986_1 where withdrawn = "19/05/2002"
How many episodes have been directed and written by Darrick Bachman and Brett Varon?
create table table_14035132_3 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select count(directed_by) from table_14035132_3 where written_by = "darrick bachman and brett varon"
What is the highest cable ranking?
create table table_24399615_6 (cable_rank integer, PRIMARY KEY (cable_rank))
select max(cable_rank) from table_24399615_6
What are the modern equivalents for the province of "hanju"?
create table table_160510_1 (modern_equivalent varchar, province varchar, PRIMARY KEY (modern_equivalent))
select modern_equivalent from table_160510_1 where province = "hanju"
What year is the season with the 10.73 million views?
create table table_10120207_8 (tv_season varchar, viewers__millions_ varchar, PRIMARY KEY (tv_season))
select tv_season from table_10120207_8 where viewers__millions_ = "10.73"
what is the arrival time where station code is pnvl?
create table table_14688744_2 (arrival varchar, station_code varchar, PRIMARY KEY (arrival))
select arrival from table_14688744_2 where station_code = "pnvl"
what's the date entered service with ships name koningin wilhelmina
create table table_11662133_3 (date_entered_service varchar, ships_name varchar, PRIMARY KEY (date_entered_service))
select date_entered_service from table_11662133_3 where ships_name = "koningin wilhelmina"
What are the investors that have invested in at least two entrepreneurs?
create table entrepreneur (investor varchar, PRIMARY KEY (investor))
select investor from entrepreneur group by investor having count(*) >= 2
Who were all candidate when incumbent was D. Wyatt Aiken?
create table table_1431467_4 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1431467_4 where incumbent = "d. wyatt aiken"
when administrative centre is egilsstaðir, what is the pop./ km²?
create table table_2252745_1 (pop__km² varchar, administrative_centre varchar, PRIMARY KEY (pop__km²))
select count(pop__km²) from table_2252745_1 where administrative_centre = "egilsstaðir"
Which missions were scheduled to launch on November 16, 2006?
create table table_11869952_3 (mission varchar, launch_date varchar, PRIMARY KEY (mission))
select mission from table_11869952_3 where launch_date = "november 16, 2006"
List the most common type of artworks.
create table artwork (type varchar, PRIMARY KEY (type))
select type from artwork group by type order by count(*) desc limit 1
what is the title of the episode daphne field wrote?
create table table_2626495_1 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_2626495_1 where written_by = "daphne field"
What is the 3'utr sequence with a variant id of acd'6a 3?
create table table_14332822_1 (variant_id varchar, PRIMARY KEY (variant_id))
select 3 as ’utr_sequence from table_14332822_1 where variant_id = "acd'6a 3"