question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What is tuesday day three when thursday day five is kamis?
create table table_1277350_7 (tuesday_day_three varchar, thursday_day_five varchar, PRIMARY KEY (tuesday_day_three))
select tuesday_day_three from table_1277350_7 where thursday_day_five = "kamis"
What was the record for the Sun Devils when they scored 44 points?
create table table_21007615_1 (record varchar, sun_devils_points varchar, PRIMARY KEY (record))
select record from table_21007615_1 where sun_devils_points = 44
What dated the episode written by is adam e. fierro & glen mazzara air?
create table table_30030477_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_30030477_1 where written_by = "adam e. fierro & glen mazzara"
What are the distinct president votes on 08/30/2015?
create table voting_record (president_vote varchar, registration_date varchar, PRIMARY KEY (president_vote))
select distinct president_vote from voting_record where registration_date = "08/30/2015"
How many LOA (metres) reported for Black Jack?
create table table_20854943_2 (loa__metres_ varchar, yacht varchar, PRIMARY KEY (loa__metres_))
select count(loa__metres_) from table_20854943_2 where yacht = "black jack"
Who directed the episode that aired November 21, 2003?
create table table_28859177_2 (directed_by varchar, original_air_date varchar, PRIMARY KEY (directed_by))
select directed_by from table_28859177_2 where original_air_date = "november 21, 2003"
Name the team classification for thomas de gendt
create table table_29077342_19 (team_classification varchar, winner varchar, PRIMARY KEY (team_classification))
select team_classification from table_29077342_19 where winner = "thomas de gendt"
List all students' first names and last names who majored in 600.
create table student (fname varchar, lname varchar, major varchar, PRIMARY KEY (fname))
select fname, lname from student where major = 600
When ground is manuka oval what is the home team score?
create table table_16388439_2 (home_team varchar, ground varchar, PRIMARY KEY (home_team))
select count(home_team) as score from table_16388439_2 where ground = "manuka oval"
What was the team's record when they faced orlando?
create table table_17323042_5 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_17323042_5 where team = "orlando"
What chapter number is Shiqiu?
create table table_1216675_1 (chapter integer, pinyin varchar, PRIMARY KEY (chapter))
select min(chapter) from table_1216675_1 where pinyin = "shiqiu"
When the score in the final is 3–6, 6–4, 3–6, 4–6, who are all the opponents in the final?
create table table_26202847_6 (opponent_in_the_final varchar, score_in_the_final varchar, PRIMARY KEY (opponent_in_the_final))
select opponent_in_the_final from table_26202847_6 where score_in_the_final = "3–6, 6–4, 3–6, 4–6"
What is the example of the Early Modern English ( [x] → /f/) /ɔf/?
create table table_28177800_5 (example varchar, early_modern_english varchar, PRIMARY KEY (example))
select example from table_28177800_5 where early_modern_english = "( [x] → /f/) /ɔf/"
What was the miles (km) for the race that had an average speed of 136.117 MPH?
create table table_2220432_1 (miles__km_ varchar, average_speed__mph_ varchar, PRIMARY KEY (miles__km_))
select miles__km_ from table_2220432_1 where average_speed__mph_ = "136.117"
Who was the Class A winner when the Class C winner was David Haynes?
create table table_24852622_1 (class_a_winner varchar, class_c_winner varchar, PRIMARY KEY (class_a_winner))
select class_a_winner from table_24852622_1 where class_c_winner = "david haynes"
What are radio electricals when secretariat is wtr i?
create table table_1348246_3 (radio varchar, secretariat varchar, PRIMARY KEY (radio))
select radio as electrical from table_1348246_3 where secretariat = "wtr i"
What was the election date for Arthur Hodges?
create table table_1329532_2 (date_of_election varchar, elected_successor varchar, PRIMARY KEY (date_of_election))
select date_of_election from table_1329532_2 where elected_successor = "arthur hodges"
List the project details of the project both producing patent and paper as outcomes.
create table project_outcomes (project_id varchar, outcome_code varchar, PRIMARY KEY (project_id)); create table projects (project_details varchar, project_id varchar, PRIMARY KEY (project_details))
select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id where t2.outcome_code = 'paper' intersect select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id where t2.outcome_code = 'patent'
How many marks are there when tackles are 3?
create table table_2814720_1 (marks varchar, tackles varchar, PRIMARY KEY (marks))
select marks from table_2814720_1 where tackles = 3
If the record is 5-8, what is the team name?
create table table_23285805_4 (team varchar, record varchar, PRIMARY KEY (team))
select team from table_23285805_4 where record = "5-8"
List the name of rooms with king or queen bed.
create table rooms (roomname varchar, bedtype varchar, PRIMARY KEY (roomname))
select roomname from rooms where bedtype = "king" or bedtype = "queen"
Who was the subject of the sculpture created in 1982?
create table table_20903658_1 (title_subject varchar, date_painted_created varchar, PRIMARY KEY (title_subject))
select title_subject from table_20903658_1 where date_painted_created = "1982"
what college has nhl team chicago black hawks?
create table table_1213511_5 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team))
select college_junior_club_team from table_1213511_5 where nhl_team = "chicago black hawks"
What is the date of appointment when the date of vacancy is 21 december 2007?
create table table_10592536_8 (date_of_appointment varchar, date_of_vacancy varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_10592536_8 where date_of_vacancy = "21 december 2007"
What conference was the churchill chargers team in?
create table table_11094950_1 (conference varchar, team varchar, PRIMARY KEY (conference))
select conference from table_11094950_1 where team = "churchill chargers"
Who was the Ottoman Sultan where the treaty at the end of the war was the Treaty of Constantinople (1590)?
create table table_24706337_1 (ottoman_sultan varchar, treaty_at_the_end_of_the_war varchar, PRIMARY KEY (ottoman_sultan))
select ottoman_sultan from table_24706337_1 where treaty_at_the_end_of_the_war = "treaty of constantinople (1590)"
Name the number of species with sepal width of 3.4 and sepal length of 5.4
create table table_10477224_1 (species varchar, sepal_width varchar, sepal_length varchar, PRIMARY KEY (species))
select count(species) from table_10477224_1 where sepal_width = "3.4" and sepal_length = "5.4"
What is the main presenter of bulgaria?
create table table_1053802_1 (main_presenters varchar, region_country varchar, PRIMARY KEY (main_presenters))
select main_presenters from table_1053802_1 where region_country = "bulgaria"
During the Mid-American Conference who is listed as the tournament winner?
create table table_28365816_2 (tournament_winner varchar, conference varchar, PRIMARY KEY (tournament_winner))
select tournament_winner from table_28365816_2 where conference = "mid-american conference"
Which episode aired on august19,2012?
create table table_20704243_6 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select title from table_20704243_6 where original_air_date = "august19,2012"
Who was the GT2 winning team when the GT3 winning team was #1 PTG?
create table table_11875915_2 (gt2_winning_team varchar, gt3_winning_team varchar, PRIMARY KEY (gt2_winning_team))
select gt2_winning_team from table_11875915_2 where gt3_winning_team = "#1 ptg"
Which tittles have an original air date of March 19, 1998
create table table_11951237_4 (title varchar, original_air_date varchar, PRIMARY KEY (title))
select title from table_11951237_4 where original_air_date = "march 19, 1998"
How many different popular vote counts were there for the candidate Rick Perry?
create table table_20246201_9 (popular_vote varchar, candidate varchar, PRIMARY KEY (popular_vote))
select count(popular_vote) from table_20246201_9 where candidate = "rick perry"
where value world rank is 12, what is the quantity world rank?
create table table_21109892_1 (quantity_world_rank varchar, value_world_rank varchar, PRIMARY KEY (quantity_world_rank))
select quantity_world_rank from table_21109892_1 where value_world_rank = "12"
What was the date of appointment for the 10th person in position?
create table table_22133191_3 (date_of_appointment varchar, position_in_table varchar, PRIMARY KEY (date_of_appointment))
select date_of_appointment from table_22133191_3 where position_in_table = "10th"
what percentage is brooklyn when manhattan is 15.5%?
create table table_23837321_4 (brooklyn varchar, manhattan varchar, PRIMARY KEY (brooklyn))
select brooklyn from table_23837321_4 where manhattan = "15.5_percentage"
Name the most world rank for asian rank being 31
create table table_2249029_1 (world_rank integer, asian_rank varchar, PRIMARY KEY (world_rank))
select max(world_rank) from table_2249029_1 where asian_rank = 31
Find the ship type that are used by both ships with Panama and Malta flags.
create table ship (type varchar, flag varchar, PRIMARY KEY (type))
select type from ship where flag = 'panama' intersect select type from ship where flag = 'malta'
Name the tourism receipts 2003 for tourism competitiveness 3.26
create table table_18524_6 (tourism_receipts__2003___as__percentage_of_exports_ varchar, tourism_competitiveness__2011___ttci_ varchar, PRIMARY KEY (tourism_receipts__2003___as__percentage_of_exports_))
select count(tourism_receipts__2003___as__percentage_of_exports_) from table_18524_6 where tourism_competitiveness__2011___ttci_ = "3.26"
Who were the candidates in the district where Jerry Costello won?
create table table_1341453_15 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341453_15 where incumbent = "jerry costello"
How many entries are there for type for the cyrillic name other names is падина (slovak: padina)?
create table table_2562572_43 (type varchar, cyrillic_name_other_names varchar, PRIMARY KEY (type))
select count(type) from table_2562572_43 where cyrillic_name_other_names = "падина (slovak: padina)"
what is the continent in which the country russia is listed?
create table table_27435931_1 (continent varchar, country varchar, PRIMARY KEY (continent))
select continent from table_27435931_1 where country = "russia"
Name the verb meaning for half drosch
create table table_1745843_9 (verb_meaning varchar, part_2 varchar, PRIMARY KEY (verb_meaning))
select verb_meaning from table_1745843_9 where part_2 = "half drosch"
How many departments offer courses?
create table course (dept_name varchar, PRIMARY KEY (dept_name))
select count(distinct dept_name) from course
What's the Slovene word for Thursday?
create table table_1277350_5 (thursday_fourth_day varchar, day__see_irregularities__ varchar, PRIMARY KEY (thursday_fourth_day))
select thursday_fourth_day from table_1277350_5 where day__see_irregularities__ = "slovene"
If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?
create table table_26389588_1 (primary_cartridge varchar, year_of_introduction varchar, country_of_origin varchar, PRIMARY KEY (primary_cartridge))
select primary_cartridge from table_26389588_1 where year_of_introduction = "1962" and country_of_origin = "denmark"
Name the date successor seated for delegate seat established
create table table_224837_4 (date_successor_seated varchar, reason_for_change varchar, PRIMARY KEY (date_successor_seated))
select date_successor_seated from table_224837_4 where reason_for_change = "delegate seat established"
What kind of chassis on the angie's list sponsored car?
create table table_2503102_2 (chassis varchar, primary_sponsor varchar, PRIMARY KEY (chassis))
select chassis from table_2503102_2 where primary_sponsor = "angie's list"
how mant different day names in old English were coined from the Latin day name "dies iovis"?
create table table_2624098_1 (old_english_day_name varchar, glossed_from_latin_day_name varchar, PRIMARY KEY (old_english_day_name))
select count(old_english_day_name) from table_2624098_1 where glossed_from_latin_day_name = "dies iovis"
Who wrote the episode whose director is Karen Gaviola?
create table table_23799653_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
select written_by from table_23799653_1 where directed_by = "karen gaviola"
Who played mens doubles for the 1999 kobe tour?
create table table_28138035_20 (mens_doubles varchar, year_location varchar, PRIMARY KEY (mens_doubles))
select mens_doubles from table_28138035_20 where year_location = "1999 kobe"
What is the highest numbered event?
create table table_30060356_3 (event integer, PRIMARY KEY (event))
select max(event) from table_30060356_3
Name the military expenditures for 2011 for romania
create table table_17971449_2 (military_expenditures__2011 varchar, _us$_millions_ varchar, country varchar, PRIMARY KEY (military_expenditures__2011))
select military_expenditures__2011, _us$_millions_ from table_17971449_2 where country = "romania"
What was the vote % of Heather and Matt?
create table table_26375386_18 (vote_percentage varchar, couple varchar, PRIMARY KEY (vote_percentage))
select vote_percentage from table_26375386_18 where couple = "heather and matt"
What was the overall record in the season where average attendance was 16720?
create table table_2771237_1 (overall_record varchar, average_attendance varchar, PRIMARY KEY (overall_record))
select overall_record from table_2771237_1 where average_attendance = 16720
What are the unique block codes that have available rooms?
create table room (blockcode varchar, unavailable varchar, PRIMARY KEY (blockcode))
select distinct blockcode from room where unavailable = 0
Show all team names.
create table team (name varchar, PRIMARY KEY (name))
select name from team
What was the manner of departure for the team whose incoming manager was George Burley?
create table table_26593762_3 (manner_of_departure varchar, incoming_manager varchar, PRIMARY KEY (manner_of_departure))
select manner_of_departure from table_26593762_3 where incoming_manager = "george burley"
Who had the fastest lap in the Belgian Grand Prix?
create table table_1132600_3 (fastest_lap varchar, grand_prix varchar, PRIMARY KEY (fastest_lap))
select fastest_lap from table_1132600_3 where grand_prix = "belgian grand_prix"
What was the largest ethnic group in 2002 of the settlement with the cyrillic name of ватин?
create table table_2562572_46 (largest_ethnic_group__2002_ varchar, cyrillic_name_other_names varchar, PRIMARY KEY (largest_ethnic_group__2002_))
select largest_ethnic_group__2002_ from table_2562572_46 where cyrillic_name_other_names = "ватин"
Find the titles and studios of the films that are produced by some film studios that contained the word "Universal".
create table film (title varchar, studio varchar, PRIMARY KEY (title))
select title, studio from film where studio like "%universal%"
Among deaths 106 000 how many is crude rate.
create table table_21258_1 (crude_death_rate varchar, deaths varchar, PRIMARY KEY (crude_death_rate))
select crude_death_rate from table_21258_1 where deaths = "106 000"
What is the municipal status where the population density is 895.5?
create table table_21284653_1 (municipal_status varchar, population_density varchar, PRIMARY KEY (municipal_status))
select municipal_status from table_21284653_1 where population_density = "895.5"
Find the number of students who participate in the tryout for each college ordered by descending count.
create table tryout (cname varchar, PRIMARY KEY (cname))
select count(*), cname from tryout group by cname order by count(*) desc
What are the weapons used by guardians for the direction East?
create table table_100518_1 (weapon varchar, direction varchar, PRIMARY KEY (weapon))
select weapon from table_100518_1 where direction = "east"
How many hours were flown in each of the years where more than 64379058.0 kilometers were flown?
create table table_105344_2 (flying_hours varchar, aircraft_kilometers integer, PRIMARY KEY (flying_hours))
select flying_hours from table_105344_2 where aircraft_kilometers > 64379058.0
the quartier menpenti has how many 40-59 year olds?
create table table_29615165_5 (_percentage_40_59_years varchar, quartier varchar, PRIMARY KEY (_percentage_40_59_years))
select _percentage_40_59_years from table_29615165_5 where quartier = "menpenti"
What is the operating voltage of part number amql64dam22gg?
create table table_27277284_27 (voltage varchar, order_part_number varchar, PRIMARY KEY (voltage))
select voltage from table_27277284_27 where order_part_number = "amql64dam22gg"
In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?
create table table_1008653_9 (country___endonym__ varchar, official_or_native_language_s___alphabet_script_ varchar, PRIMARY KEY (country___endonym__))
select country___endonym__ from table_1008653_9 where official_or_native_language_s___alphabet_script_ = "irish english"
How many women has got the first runner-up position in representation of Philippines?
create table table_29942205_1 (country_territory varchar, PRIMARY KEY (country_territory))
select 1 as st_runner_up from table_29942205_1 where country_territory = "philippines"
How many publishers put out isbn 193700788x?
create table table_16907214_1 (publisher varchar, hardcover varchar, PRIMARY KEY (publisher))
select count(publisher) from table_16907214_1 where hardcover = "isbn 193700788x"
What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?
create table table_11148572_1 (mls_cup_winner varchar, mls_cup_runner_up varchar, PRIMARY KEY (mls_cup_winner))
select mls_cup_winner from table_11148572_1 where mls_cup_runner_up = "colorado rapids"
What is the most popular file format?
create table files (formats varchar, PRIMARY KEY (formats))
select formats from files group by formats order by count(*) desc limit 1
Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?
create table table_23157997_13 (mountains_classification varchar, youth_classification varchar, points_classification varchar, PRIMARY KEY (mountains_classification))
select mountains_classification from table_23157997_13 where youth_classification = "nick frey" and points_classification = "tom zirbel"
Which origin has most number of flights?
create table flight (origin varchar, PRIMARY KEY (origin))
select origin from flight group by origin order by count(*) desc limit 1
Name the high assists for houston
create table table_17288845_9 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
select high_assists from table_17288845_9 where team = "houston"
What's the content offered by the package number 204?
create table table_15887683_3 (content varchar, n° varchar, PRIMARY KEY (content))
select content from table_15887683_3 where n° = 204
What is the status for the monarch Mingyinyo?
create table table_26460435_7 (status varchar, monarch varchar, PRIMARY KEY (status))
select status from table_26460435_7 where monarch = "mingyinyo"
How many different circuits had Gary Gibson has the Lites 1 race two winning team?
create table table_26638600_3 (lites_2_race_one_winning_team varchar, lites_1_race_two_winning_team varchar, PRIMARY KEY (lites_2_race_one_winning_team))
select count(lites_2_race_one_winning_team) from table_26638600_3 where lites_1_race_two_winning_team = "gary gibson"
How many runs conceded for chaminda vaas?
create table table_15700367_6 (runs_conceded varchar, name varchar, PRIMARY KEY (runs_conceded))
select runs_conceded from table_15700367_6 where name = "chaminda vaas"
What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?
create table table_19526911_1 (arena__capacity_ varchar, head_coach varchar, PRIMARY KEY (arena__capacity_))
select count(arena__capacity_) from table_19526911_1 where head_coach = "yuriy korotkevich"
Name the country for lusail national stadium
create table table_28281704_1 (country varchar, stadium varchar, PRIMARY KEY (country))
select country from table_28281704_1 where stadium = "lusail national stadium"
What residence hall has the vermin mascot?
create table table_15873547_1 (residence_hall varchar, mascot varchar, PRIMARY KEY (residence_hall))
select residence_hall from table_15873547_1 where mascot = "vermin"
What is the minimum altitude (mslm) in all the commons?
create table table_1449169_1 (altitude__mslm_ integer, PRIMARY KEY (altitude__mslm_))
select min(altitude__mslm_) from table_1449169_1
List roles that have more than one employee. List the role description and number of employees.
create table roles (id varchar, PRIMARY KEY (id)); create table employees (id varchar, PRIMARY KEY (id))
select roles.role_description, count(employees.employee_id) from roles join employees on employees.role_code = roles.role_code group by employees.role_code having count(employees.employee_id) > 1
What was the area (km²) (per sqmi) of the country Colombia?
create table table_26769_1 (area__km²___per_sqmi_ varchar, country_or_territory_with_flag varchar, PRIMARY KEY (area__km²___per_sqmi_))
select area__km²___per_sqmi_ from table_26769_1 where country_or_territory_with_flag = "colombia"
Show all cities where at least one customer lives in but no performer lives in.
create table customers (address_id varchar, PRIMARY KEY (address_id)); create table addresses (city_town varchar, address_id varchar, PRIMARY KEY (city_town)); create table performers (address_id varchar, PRIMARY KEY (address_id))
select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id except select t1.city_town from addresses as t1 join performers as t2 on t1.address_id = t2.address_id
How many clubs achieved the 5th position in 2012-13?
create table table_1908877_2 (top_division_titles varchar, position_in_2012_13 varchar, PRIMARY KEY (top_division_titles))
select count(top_division_titles) from table_1908877_2 where position_in_2012_13 = "5th"
When 4 is the v-band what is the overall amount of ka-bands?
create table table_186468_1 (ka_band varchar, v_band varchar, PRIMARY KEY (ka_band))
select count(ka_band) from table_186468_1 where v_band = "4"
What are the distinct nominees of the musicals with the award that is not "Tony Award"?
create table musical (nominee varchar, award varchar, PRIMARY KEY (nominee))
select distinct nominee from musical where award <> "tony award"
How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?
create table table_1717824_1 (south_asians_2001 varchar, _percentage_2011 varchar, PRIMARY KEY (south_asians_2001))
select count(south_asians_2001) from table_1717824_1 where _percentage_2011 = "4.4%"
What is the manner of departure when the incoming head coach is mohammad khakpour?
create table table_27383390_4 (manner_of_departure varchar, incoming_head_coach varchar, PRIMARY KEY (manner_of_departure))
select manner_of_departure from table_27383390_4 where incoming_head_coach = "mohammad khakpour"
What is the coordinate velocity v dx/dt in units of c total number if the velocity angle η in i-radians is ln[2 + √5] ≅ 1.444?
create table table_15314901_1 (coordinate_velocity_v_dx_dt_in_units_of_c varchar, velocity_angle_η_in_i_radians varchar, PRIMARY KEY (coordinate_velocity_v_dx_dt_in_units_of_c))
select count(coordinate_velocity_v_dx_dt_in_units_of_c) from table_15314901_1 where velocity_angle_η_in_i_radians = "ln[2 + √5] ≅ 1.444"
What is the surface made of if the opponent in the final is Hewitt McMillan?
create table table_22597626_2 (surface varchar, opponents_in_the_final varchar, PRIMARY KEY (surface))
select surface from table_22597626_2 where opponents_in_the_final = "hewitt mcmillan"
Report the distinct registration date and the election cycle.
create table voting_record (registration_date varchar, election_cycle varchar, PRIMARY KEY (registration_date))
select distinct registration_date, election_cycle from voting_record
Show names of teachers and the number of courses they teach.
create table teacher (name varchar, teacher_id varchar, PRIMARY KEY (name)); create table course_arrange (teacher_id varchar, PRIMARY KEY (teacher_id))
select t2.name, count(*) from course_arrange as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id group by t2.name
What is the preliminary average when the semifinal average is 8.834 (3) ?
create table table_16268026_3 (preliminary_average varchar, semifinal_average varchar, PRIMARY KEY (preliminary_average))
select preliminary_average from table_16268026_3 where semifinal_average = "8.834 (3)"
Name who wrote the episode directed by patrick duffy airing on november 7, 1997
create table table_2468961_8 (written_by varchar, directed_by varchar, original_air_date varchar, PRIMARY KEY (written_by))
select written_by from table_2468961_8 where directed_by = "patrick duffy" and original_air_date = "november 7, 1997"
What is the cost per capita in the Courtenay municipality?
create table table_12340907_1 (cost_per_capita varchar, municipality varchar, PRIMARY KEY (cost_per_capita))
select cost_per_capita from table_12340907_1 where municipality = "courtenay"
Name the gp for ff being 0 and qbh being 1
create table table_15128839_22 (gp varchar, ff varchar, qbh varchar, PRIMARY KEY (gp))
select gp from table_15128839_22 where ff = 0 and qbh = 1