question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Name the regions for usf45
create table table_21530474_1 (region_s_ varchar, chassis_code varchar, PRIMARY KEY (region_s_))
select region_s_ from table_21530474_1 where chassis_code = "usf45"
Who are all the motogp winners when the circuit was Catalunya?
create table table_26781017_1 (motogp_winner varchar, circuit varchar, PRIMARY KEY (motogp_winner))
select motogp_winner from table_26781017_1 where circuit = "catalunya"
What is the target when the approved treatment is non-hodgkin lymphoma?
create table table_1661124_1 (target varchar, approved_treatment_s_ varchar, PRIMARY KEY (target))
select target from table_1661124_1 where approved_treatment_s_ = "non-hodgkin lymphoma"
Show all the activity names and the number of faculty involved in each activity.
create table faculty_participates_in (actid varchar, PRIMARY KEY (actid)); create table activity (activity_name varchar, actid varchar, PRIMARY KEY (activity_name))
select t1.activity_name, count(*) from activity as t1 join faculty_participates_in as t2 on t1.actid = t2.actid group by t1.actid
What is the FIS Nordic World Ski Championships when holmenkollen is 1976?
create table table_174491_2 (fis_nordic_world_ski_championships varchar, holmenkollen varchar, PRIMARY KEY (fis_nordic_world_ski_championships))
select fis_nordic_world_ski_championships from table_174491_2 where holmenkollen = "1976"
What was the altitude of the yield of 1.4 megatons?
create table table_148578_1 (altitude__km_ varchar, yield__approximate_ varchar, PRIMARY KEY (altitude__km_))
select altitude__km_ from table_148578_1 where yield__approximate_ = "1.4 megatons"
Find the states of the colleges that have students in the tryout who played in striker position.
create table tryout (cname varchar, ppos varchar, PRIMARY KEY (cname)); create table college (state varchar, cname varchar, PRIMARY KEY (state))
select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'striker'
How many people per km2 are there in the municipality whose mayor is Boy Quiat?
create table table_216776_2 (pop_density__per_km²_ varchar, municipal_mayor varchar, PRIMARY KEY (pop_density__per_km²_))
select pop_density__per_km²_ from table_216776_2 where municipal_mayor = "boy quiat"
What are the titles of the episodes where Rodman Flender is the director?
create table table_11404452_1 (episode_title varchar, director varchar, PRIMARY KEY (episode_title))
select episode_title from table_11404452_1 where director = "rodman flender"
How man horse power did the ship covadonga have?
create table table_23614702_2 (horse__power varchar, warship varchar, PRIMARY KEY (horse__power))
select horse__power from table_23614702_2 where warship = "covadonga"
What is the number of riders that had a Tues 31 May time of 18' 55.91 124.236mph?
create table table_29218221_2 (rider varchar, tues_31_may varchar, PRIMARY KEY (rider))
select count(rider) from table_29218221_2 where tues_31_may = "18' 55.91 124.236mph"
What country had a 100% cut?
create table table_21690339_1 (country varchar, _percentage_cut varchar, PRIMARY KEY (country))
select country from table_21690339_1 where _percentage_cut = "100%"
What school has the new conference as SELC?
create table table_26476336_2 (institution varchar, new_conference varchar, PRIMARY KEY (institution))
select institution from table_26476336_2 where new_conference = "selc"
What is the electoral district when total candidates were 35?
create table table_2676980_4 (electoral_district varchar, total_candidates varchar, PRIMARY KEY (electoral_district))
select electoral_district from table_2676980_4 where total_candidates = 35
How many students are there?
create table student (id varchar, PRIMARY KEY (id))
select count(*) from student
Who arranged song(s) with tom lyle on the vocal percussion?
create table table_28715942_2 (arranger_s_ varchar, vocal_percussionist_s_ varchar, PRIMARY KEY (arranger_s_))
select arranger_s_ from table_28715942_2 where vocal_percussionist_s_ = "tom lyle"
Name the region 4 for the complete fifth series
create table table_1337525_1 (region_4 varchar, complete_series varchar, PRIMARY KEY (region_4))
select region_4 from table_1337525_1 where complete_series = "the complete fifth series"
what is the jewel power when the media debut is ep 17?
create table table_26615633_1 (jewel varchar, media_debut varchar, PRIMARY KEY (jewel))
select jewel as power from table_26615633_1 where media_debut = "ep 17"
What is the least arabs when the metropolitan ring is inner ring 3?
create table table_26007767_1 (arabs integer, metropolitan_ring varchar, PRIMARY KEY (arabs))
select min(arabs) from table_26007767_1 where metropolitan_ring = "inner ring 3"
What is the name of the flag that means decimal digit 2?
create table table_29997112_3 (flag_name varchar, meaning varchar, PRIMARY KEY (flag_name))
select flag_name from table_29997112_3 where meaning = "decimal digit 2"
what is the least current
create table table_19312274_2 (current integer, PRIMARY KEY (current))
select min(current) from table_19312274_2
What is the Wheelbase for Model 97300?
create table table_20866024_4 (wheelbase__mm_inch_ varchar, model_designation varchar, PRIMARY KEY (wheelbase__mm_inch_))
select wheelbase__mm_inch_ from table_20866024_4 where model_designation = "97300"
Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r
create table table_1776943_1 (broadcast_date varchar, viewers__in_millions_ varchar, archive varchar, PRIMARY KEY (broadcast_date))
select broadcast_date from table_1776943_1 where viewers__in_millions_ = "6.4" and archive = "16mm t/r"
Name the old bulgarian names for yanuari
create table table_15275060_1 (old_bulgarian_names varchar, yanuari varchar, transliteration varchar, PRIMARY KEY (old_bulgarian_names))
select old_bulgarian_names from table_15275060_1 where bulgarian_name(transliteration) = yanuari
Advisor 1121 has how many students?
create table student (advisor varchar, PRIMARY KEY (advisor))
select count(*) from student where advisor = 1121
What is the effective exhaust velocity in a Space Shuttle Vacuum?
create table table_15944_5 (effective_exhaust_velocity__m_s_ varchar, scenario varchar, PRIMARY KEY (effective_exhaust_velocity__m_s_))
select count(effective_exhaust_velocity__m_s_) from table_15944_5 where scenario = "space shuttle vacuum"
Who was the incumbent when the candidates were John banks (am) 52.2% samuel power (j) 47.8%?
create table table_2668199_2 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_2668199_2 where candidates = "john banks (am) 52.2% samuel power (j) 47.8%"
What's the London borough with 7797 Pakistani citizens?
create table table_19149550_9 (london_borough varchar, pakistani_population varchar, PRIMARY KEY (london_borough))
select london_borough from table_19149550_9 where pakistani_population = 7797
Which Advisor has most of students? List advisor and the number of students.
create table student (advisor varchar, PRIMARY KEY (advisor))
select advisor, count(*) from student group by advisor order by count(advisor) desc limit 1
what is the total number of publisher where first appearance is daredevil #1
create table table_1217448_1 (publisher varchar, first_appearance varchar, PRIMARY KEY (publisher))
select count(publisher) from table_1217448_1 where first_appearance = "daredevil #1"
How many points and bonuses did Kurt Busch get?
create table table_27940569_1 (pts_bns varchar, driver varchar, PRIMARY KEY (pts_bns))
select pts_bns from table_27940569_1 where driver = "kurt busch"
When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (°c)?
create table table_2282444_1 (t_c__ varchar, magnet varchar, PRIMARY KEY (t_c__))
select count(t_c__) as °c_ from table_2282444_1 where magnet = "nd 2 fe 14 b (bonded)"
Show the names of members whose country is "United States" or "Canada".
create table member (name varchar, country varchar, PRIMARY KEY (name))
select name from member where country = "united states" or country = "canada"
What is the power at the cebu station?
create table table_19215259_1 (power__kw_ varchar, location varchar, PRIMARY KEY (power__kw_))
select power__kw_ from table_19215259_1 where location = "cebu"
What are the civil parishes of the Loughmarsh townland?
create table table_30121082_1 (civil_parish varchar, townland varchar, PRIMARY KEY (civil_parish))
select civil_parish from table_30121082_1 where townland = "loughmarsh"
What team won the regular season when georgia state won the tournament?
create table table_24348134_3 (regular_season_winner varchar, tournament_winner varchar, PRIMARY KEY (regular_season_winner))
select regular_season_winner from table_24348134_3 where tournament_winner = "georgia state"
Name the number of gregorian calenda rof gemini
create table table_169955_1 (gregorian_calendar varchar, sign_of_zodiac varchar, PRIMARY KEY (gregorian_calendar))
select count(gregorian_calendar) from table_169955_1 where sign_of_zodiac = "gemini"
What is every rider on Monday August 24 at 21' 12.02 106.781mph?
create table table_23465864_5 (rider varchar, mon_24_aug varchar, PRIMARY KEY (rider))
select rider from table_23465864_5 where mon_24_aug = "21' 12.02 106.781mph"
Show all the cinema names and opening years in descending order of opening year.
create table cinema (name varchar, openning_year varchar, PRIMARY KEY (name))
select name, openning_year from cinema order by openning_year desc
What is the receipt date of the document with id 3?
create table documents (receipt_date varchar, document_id varchar, PRIMARY KEY (receipt_date))
select receipt_date from documents where document_id = 3
What poll source administered their poll on June 14-16, 2010?
create table table_20032301_3 (poll_source varchar, dates_administered varchar, PRIMARY KEY (poll_source))
select poll_source from table_20032301_3 where dates_administered = "june 14-16, 2010"
Who was the opposing team played at Riverfront Stadium?
create table table_14563349_11 (opponent varchar, location varchar, PRIMARY KEY (opponent))
select opponent from table_14563349_11 where location = "riverfront stadium"
What school did the player that has been in Toronto from 2012-present come from?
create table table_10015132_1 (school_club_team varchar, years_in_toronto varchar, PRIMARY KEY (school_club_team))
select school_club_team from table_10015132_1 where years_in_toronto = "2012-present"
What is the strongs # for the english spelling of the word jirmejah?
create table table_1242447_2 (strongs__number varchar, english_spelling varchar, PRIMARY KEY (strongs__number))
select strongs__number from table_1242447_2 where english_spelling = "jirmejah"
How many winners have st kilda score at 14.11.95?
create table table_28211103_1 (winner varchar, st_kilda_score varchar, PRIMARY KEY (winner))
select count(winner) from table_28211103_1 where st_kilda_score = "14.11.95"
which team #1 played again chalkida
create table table_21434618_1 (team__number1 varchar, team__number2 varchar, PRIMARY KEY (team__number1))
select team__number1 from table_21434618_1 where team__number2 = "chalkida"
What is orthodoxy when x is wehdat?
create table table_26173063_2 (orthodoxy varchar, × varchar, PRIMARY KEY (orthodoxy))
select orthodoxy from table_26173063_2 where × = "wehdat"
Show all countries and the number of singers in each country.
create table singer (country varchar, PRIMARY KEY (country))
select country, count(*) from singer group by country
What is the date for the UTC time of 03:15:46?
create table table_26950408_1 (date__yyyy_mm_dd_ varchar, time___utc__ varchar, PRIMARY KEY (date__yyyy_mm_dd_))
select date__yyyy_mm_dd_ from table_26950408_1 where time___utc__ = "03:15:46"
List the studios which average gross is above 4500000.
create table film (studio varchar, gross_in_dollar integer, PRIMARY KEY (studio))
select studio from film group by studio having avg(gross_in_dollar) >= 4500000
What is the team when the high assists was stephen curry (7) and the high points was monta ellis (27)?
create table table_27755784_10 (team varchar, high_assists varchar, high_points varchar, PRIMARY KEY (team))
select team from table_27755784_10 where high_assists = "stephen curry (7)" and high_points = "monta ellis (27)"
When carmelo anthony (42) has the highest amount of points how many measurements of highest rebounds are there?
create table table_23285849_11 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds))
select count(high_rebounds) from table_23285849_11 where high_points = "carmelo anthony (42)"
List the names and origins of people who are not body builders.
create table people (name varchar, birth_place varchar, people_id varchar, PRIMARY KEY (name)); create table body_builder (people_id varchar, PRIMARY KEY (people_id)); create table people (name varchar, birth_place varchar, PRIMARY KEY (name))
select name, birth_place from people except select t1.name, t1.birth_place from people as t1 join body_builder as t2 on t1.people_id = t2.people_id
How many Kent State University's are there?
create table table_26351260_1 (location varchar, institution varchar, PRIMARY KEY (location))
select count(location) from table_26351260_1 where institution = "kent state university"
What is the western word for "latrones" in Latin?
create table table_26614365_1 (western varchar, latin varchar, PRIMARY KEY (western))
select western from table_26614365_1 where latin = "latrones"
what's the constancy where permanence of the body is meditation
create table table_11609814_1 (constancy varchar, permanence_of_the_body varchar, PRIMARY KEY (constancy))
select constancy from table_11609814_1 where permanence_of_the_body = "meditation"
what is the date the successor seated because the person died august 17, 1954?
create table table_1652224_5 (date_successor_seated varchar, reason_for_change varchar, PRIMARY KEY (date_successor_seated))
select date_successor_seated from table_1652224_5 where reason_for_change = "died august 17, 1954"
What is the location that had a driver named Pierre de Caters?
create table table_18893428_1 (location varchar, driver varchar, PRIMARY KEY (location))
select location from table_18893428_1 where driver = "pierre de caters"
Who was the finalist when the final venue was Varese?
create table table_19651669_1 (finalist varchar, final_venue varchar, PRIMARY KEY (finalist))
select finalist from table_19651669_1 where final_venue = "varese"
Name the european tier for rick springfield
create table table_22457674_1 (european_tier varchar, artist varchar, PRIMARY KEY (european_tier))
select european_tier from table_22457674_1 where artist = "rick springfield"
If the mountains classification is Mathias Frank, and the General Classification is Fabian Cancellara, what is the Points classification?
create table table_27573848_18 (points_classification varchar, general_classification varchar, mountains_classification varchar, PRIMARY KEY (points_classification))
select points_classification from table_27573848_18 where general_classification = "fabian cancellara" and mountains_classification = "mathias frank"
How many VFL games were located off Goodenough Island Milne Bay?
create table table_16527640_3 (vfl_games varchar, location varchar, PRIMARY KEY (vfl_games))
select vfl_games from table_16527640_3 where location = "off goodenough island milne bay"
what is the title where romaji is titles da.i.su.ki
create table table_10979230_5 (japanese_title varchar, romaji_title varchar, PRIMARY KEY (japanese_title))
select japanese_title from table_10979230_5 where romaji_title = "da.i.su.ki"
What is the round of 32 if the round of 16 is drenovak ( srb ) w 20–11?
create table table_27294107_11 (round_of_32 varchar, round_of_16 varchar, PRIMARY KEY (round_of_32))
select round_of_32 from table_27294107_11 where round_of_16 = "drenovak ( srb ) w 20–11"
Name the popultion density being manthai west
create table table_24574438_1 (population_density___km_2__ varchar, ds_division varchar, PRIMARY KEY (population_density___km_2__))
select population_density___km_2__ from table_24574438_1 where ds_division = "manthai west"
When rudolph kleberg (d) is the successor is the reason for vacancy?
create table table_2417445_4 (reason_for_vacancy varchar, successor varchar, PRIMARY KEY (reason_for_vacancy))
select reason_for_vacancy from table_2417445_4 where successor = "rudolph kleberg (d)"
who is the the voice actor (japanese) with character name being goku
create table table_1410384_1 (voice_actor__japanese_ varchar, character_name varchar, PRIMARY KEY (voice_actor__japanese_))
select voice_actor__japanese_ from table_1410384_1 where character_name = "goku"
What was their record when they played the stampeders?
create table table_21839208_4 (record varchar, opponent varchar, PRIMARY KEY (record))
select record from table_21839208_4 where opponent = "stampeders"
What are the ids of templates with template type code PP or PPT?
create table templates (template_id varchar, template_type_code varchar, PRIMARY KEY (template_id))
select template_id from templates where template_type_code = "pp" or template_type_code = "ppt"
How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?
create table table_22962745_35 (bowler varchar, batsmen varchar, PRIMARY KEY (bowler))
select count(bowler) from table_22962745_35 where batsmen = "david hussey azhar mahmood gurkeerat singh"
For driver Mark Skaife what is the result for race 1?
create table table_11581984_2 (race_1 varchar, driver varchar, PRIMARY KEY (race_1))
select race_1 from table_11581984_2 where driver = "mark skaife"
On broadcast date is 21march1970, how many people tuned in?
create table table_2102898_1 (viewers__in_millions_ varchar, broadcast_date varchar, PRIMARY KEY (viewers__in_millions_))
select count(viewers__in_millions_) from table_2102898_1 where broadcast_date = "21march1970"
List the project details of the projects which did not hire any staff for a researcher role.
create table projects (project_details varchar, project_id varchar, role_code varchar, PRIMARY KEY (project_details)); create table project_staff (project_details varchar, project_id varchar, role_code varchar, PRIMARY KEY (project_details))
select project_details from projects where not project_id in (select project_id from project_staff where role_code = 'researcher')
During what years did athletes who attended school in Minnesota play for the Grizzlies?
create table table_16494599_10 (years_for_grizzlies varchar, school_club_team varchar, PRIMARY KEY (years_for_grizzlies))
select years_for_grizzlies from table_16494599_10 where school_club_team = "minnesota"
What's the abbreviation for the month whose transcription is Kumphaphan?
create table table_20354_5 (abbr varchar, transcription varchar, PRIMARY KEY (abbr))
select abbr from table_20354_5 where transcription = "kumphaphan"
What is the location when the status is in service as coaching stock?
create table table_1090916_2 (location varchar, status varchar, PRIMARY KEY (location))
select location from table_1090916_2 where status = "in service as coaching stock"
Show the number of projects.
create table projects (id varchar, PRIMARY KEY (id))
select count(*) from projects
who are the writers of the episode that had 3.07 millions of North American spectators?
create table table_21979779_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by))
select written_by from table_21979779_1 where us_viewers__million_ = "3.07"
Who is the director for the witman boys?
create table table_14975415_1 (director varchar, english_title varchar, PRIMARY KEY (director))
select director from table_14975415_1 where english_title = "the witman boys"
Name the reporters for howard cosell
create table table_22514845_5 (reporters varchar, s_analyst varchar, PRIMARY KEY (reporters))
select reporters from table_22514845_5 where s_analyst = "howard cosell"
Name the final position for copa libertadores
create table table_23819979_3 (final_position varchar, competition varchar, PRIMARY KEY (final_position))
select final_position from table_23819979_3 where competition = "copa libertadores"
What kind of institute is in Indiana?
create table table_27961684_1 (affiliation varchar, state varchar, PRIMARY KEY (affiliation))
select affiliation from table_27961684_1 where state = "indiana"
What is the alpha 2 code for the area also known as NZL?
create table table_222771_1 (alpha_2_code varchar, alpha_3_code varchar, PRIMARY KEY (alpha_2_code))
select alpha_2_code from table_222771_1 where alpha_3_code = "nzl"
Name the pictorials when the interview subject is steve jobs
create table table_1566848_6 (pictorials varchar, interview_subject varchar, PRIMARY KEY (pictorials))
select pictorials from table_1566848_6 where interview_subject = "steve jobs"
What was the res for the game against Payam?
create table table_2015453_1 (res varchar, team__number2 varchar, PRIMARY KEY (res))
select res from table_2015453_1 where team__number2 = "payam"
What was Gary Megson's manner of departure?
create table table_19359427_6 (manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure))
select manner_of_departure from table_19359427_6 where outgoing_manager = "gary megson"
What is the payment method code used by the most orders?
create table invoices (payment_method_code varchar, PRIMARY KEY (payment_method_code))
select payment_method_code from invoices group by payment_method_code order by count(*) desc limit 1
Name the incumbent for robert monell (j) 63.6% tilly lynde 36.4%
create table table_2668243_17 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_2668243_17 where candidates = "robert monell (j) 63.6% tilly lynde 36.4%"
What is the first name and last name employee helps the customer with first name Leonie?
create table customer (supportrepid varchar, firstname varchar, PRIMARY KEY (supportrepid)); create table employee (firstname varchar, lastname varchar, employeeid varchar, PRIMARY KEY (firstname))
select t2.firstname, t2.lastname from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid where t1.firstname = "leonie"
which countries did participated in both Friendly and Tournament type competitions.
create table competition (country varchar, competition_type varchar, PRIMARY KEY (country))
select country from competition where competition_type = 'friendly' intersect select country from competition where competition_type = 'tournament'
What date got 9.82 million viewers?
create table table_11562143_1 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_11562143_1 where us_viewers__million_ = "9.82"
When and where did Eddie Smith win the mixed veteran?
create table table_28211674_3 (date_location varchar, mixed_veteran varchar, PRIMARY KEY (date_location))
select count(date_location) from table_28211674_3 where mixed_veteran = "eddie smith"
Show all church names that have hosted least two weddings.
create table wedding (church_id varchar, PRIMARY KEY (church_id)); create table church (name varchar, church_id varchar, PRIMARY KEY (name))
select t1.name from church as t1 join wedding as t2 on t1.church_id = t2.church_id group by t1.church_id having count(*) >= 2
Find the title of courses that have two prerequisites?
create table prereq (course_id varchar, PRIMARY KEY (course_id)); create table course (title varchar, course_id varchar, PRIMARY KEY (title))
select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2
On what date was the asset acquisition that was announced on February 22, 2007 completed?
create table table_1373542_1 (date_completed varchar, date_announced varchar, PRIMARY KEY (date_completed))
select date_completed from table_1373542_1 where date_announced = "february 22, 2007"
During what conference is North Carolina listed as the tournament winner?
create table table_28365816_2 (conference varchar, tournament_winner varchar, PRIMARY KEY (conference))
select conference from table_28365816_2 where tournament_winner = "north carolina"
What's the report for the True Value 500?
create table table_10527215_3 (report varchar, name varchar, PRIMARY KEY (report))
select report from table_10527215_3 where name = "true value 500"
Which position in the table is the team watford?
create table table_18784280_3 (position_in_table varchar, team varchar, PRIMARY KEY (position_in_table))
select position_in_table from table_18784280_3 where team = "watford"
The nhl team new york islanders is what nationality?
create table table_1013129_1 (nationality varchar, nhl_team varchar, PRIMARY KEY (nationality))
select nationality from table_1013129_1 where nhl_team = "new york islanders"
Name the date of vacancy for fabio brini
create table table_17275810_7 (date_of_vacancy varchar, replaced_by varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_17275810_7 where replaced_by = "fabio brini"