question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
Find the names of customers whose name contains "Diana".
create table customers (customer_details varchar, PRIMARY KEY (customer_details))
select customer_details from customers where customer_details like "%diana%"
When id the episode broadcast with Mark Webber as Jamie and John's guest?
create table table_29141354_4 (first_broadcast varchar, jamie_and_johns_guest varchar, PRIMARY KEY (first_broadcast))
select first_broadcast from table_29141354_4 where jamie_and_johns_guest = "mark webber"
List the description of all the colors.
create table ref_colors (color_description varchar, PRIMARY KEY (color_description))
select color_description from ref_colors
What is the semifinals for the light flyweight event?
create table table_27294107_11 (semifinals varchar, event varchar, PRIMARY KEY (semifinals))
select semifinals from table_27294107_11 where event = "light flyweight"
When is every date that control site condition or owner is machine shop on Martin Dr.?
create table table_22282917_26 (dates varchar, control_site_condition_owner varchar, PRIMARY KEY (dates))
select dates from table_22282917_26 where control_site_condition_owner = "machine shop on martin dr."
Which film has the highest rental rate? And what is the rate?
create table film (title varchar, rental_rate varchar, PRIMARY KEY (title))
select title, rental_rate from film order by rental_rate desc limit 1
Who is the round winner of the wanneroo park circuit?
create table table_19886463_1 (round_winner varchar, circuit varchar, PRIMARY KEY (round_winner))
select round_winner from table_19886463_1 where circuit = "wanneroo park"
In what municipality were there 757.5 people per km2?
create table table_216776_2 (municipality varchar, pop_density__per_km²_ varchar, PRIMARY KEY (municipality))
select municipality from table_216776_2 where pop_density__per_km²_ = "757.5"
Who had the pole position at the German Grand Prix?
create table table_1137718_2 (pole_position varchar, grand_prix varchar, PRIMARY KEY (pole_position))
select pole_position from table_1137718_2 where grand_prix = "german grand_prix"
How many directors worked on the episode written by Brent Fletcher & Miranda Kwok?
create table table_23918997_1 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select count(directed_by) from table_23918997_1 where written_by = "brent fletcher & miranda kwok"
find the name of all departments that do actually have one or more employees assigned to them.
create table departments (department_name varchar, department_id varchar, PRIMARY KEY (department_name)); create table employees (department_id varchar, PRIMARY KEY (department_id))
select distinct t2.department_name from employees as t1 join departments as t2 on t1.department_id = t2.department_id
when does the train arriving at stamford east at 11.45 departure
create table table_18333678_2 (departure varchar, arrival varchar, going_to varchar, PRIMARY KEY (departure))
select departure from table_18333678_2 where arrival = "11.45" and going_to = "stamford east"
Name the chairman for iker casillas
create table table_29398373_2 (chairman varchar, captain varchar, PRIMARY KEY (chairman))
select chairman from table_29398373_2 where captain = "iker casillas"
WHAT TOWN IS WEST BROOK SENIOR HIGH SCHOOL FROM?
create table table_11677100_11 (hometown varchar, school varchar, PRIMARY KEY (hometown))
select hometown from table_11677100_11 where school = "west brook senior high school"
How many drivers were there for Samax Motorsport?
create table table_17319931_1 (driver varchar, team varchar, PRIMARY KEY (driver))
select count(driver) from table_17319931_1 where team = "samax motorsport"
How many different percentages of immigrants in 2006 can there be for Morocco?
create table table_23619212_1 (_percentage_of_all_immigrants_2006 varchar, country varchar, PRIMARY KEY (_percentage_of_all_immigrants_2006))
select count(_percentage_of_all_immigrants_2006) from table_23619212_1 where country = "morocco"
What is the notion when the crystal structure is tetragonal and the formula is bi 2 sr 2 cacu 2 o 8
create table table_101336_1 (notation varchar, crystal_structure varchar, formula varchar, PRIMARY KEY (notation))
select notation from table_101336_1 where crystal_structure = "tetragonal" and formula = "bi 2 sr 2 cacu 2 o 8"
List all the types of forms.
create table forms (form_type_code varchar, PRIMARY KEY (form_type_code))
select distinct form_type_code from forms
When using a .375 Remington Ultra Magnum, what is the muzzle velocity?
create table table_16010376_1 (muzzle_velocity varchar, cartridge varchar, PRIMARY KEY (muzzle_velocity))
select muzzle_velocity from table_16010376_1 where cartridge = ".375 remington ultra magnum"
What arena was season 6 played at?
create table table_14015965_1 (arena__capacity_ varchar, previous_season varchar, PRIMARY KEY (arena__capacity_))
select arena__capacity_ from table_14015965_1 where previous_season = "6"
How many parties is Tom Foley a member of?
create table table_1341568_48 (party varchar, incumbent varchar, PRIMARY KEY (party))
select count(party) from table_1341568_48 where incumbent = "tom foley"
How many people wrote the episode directed by Arvin Brown?
create table table_30030227_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by))
select count(written_by) from table_30030227_1 where directed_by = "arvin brown"
What is the upstream speed that you get for 89 tl?
create table table_17304621_14 (upstream varchar, price_tl varchar, PRIMARY KEY (upstream))
select upstream from table_17304621_14 where price_tl = "89 tl"
Who previously attended south kent school / brentwood hs?
create table table_29050051_3 (name varchar, previous_school varchar, PRIMARY KEY (name))
select name from table_29050051_3 where previous_school = "south kent school / brentwood hs"
List the name, location, mascot for all schools.
create table school (school_name varchar, location varchar, mascot varchar, PRIMARY KEY (school_name))
select school_name, location, mascot from school
Show the company name with the number of gas station.
create table station_company (company_id varchar, PRIMARY KEY (company_id)); create table company (company varchar, company_id varchar, PRIMARY KEY (company))
select t2.company, count(*) from station_company as t1 join company as t2 on t1.company_id = t2.company_id group by t1.company_id
What is the average start for the season with $7,220 in winnings?
create table table_1637041_6 (avg_start varchar, winnings varchar, PRIMARY KEY (avg_start))
select avg_start from table_1637041_6 where winnings = "$7,220"
Name the classification for 9, 9, 8, 9
create table table_21829580_1 (classification__judges_ varchar, detailed_grades varchar, PRIMARY KEY (classification__judges_))
select classification__judges_ from table_21829580_1 where detailed_grades = "9, 9, 8, 9"
Where does the judge whose court is in Groton reside?
create table table_26758262_1 (judges_residence varchar, location_of_court varchar, PRIMARY KEY (judges_residence))
select judges_residence from table_26758262_1 where location_of_court = "groton"
Which country (exonym) is the country (endonym) isle of man ellan vannin?
create table table_1008653_9 (country___exonym__ varchar, country___endonym__ varchar, PRIMARY KEY (country___exonym__))
select country___exonym__ from table_1008653_9 where country___endonym__ = "isle of man ellan vannin"
What was the branding in Dagupan?
create table table_12547903_3 (branding varchar, location varchar, PRIMARY KEY (branding))
select branding from table_12547903_3 where location = "dagupan"
when the value (int $1000) is 409566, what is the commodity?
create table table_21109892_1 (commodity varchar, value__int_$1000_ varchar, PRIMARY KEY (commodity))
select commodity from table_21109892_1 where value__int_$1000_ = 409566
How many book clubs are there?
create table book_club (id varchar, PRIMARY KEY (id))
select count(*) from book_club
Who is the composer of track Fast As a Shark?
create table tracks (composer varchar, name varchar, PRIMARY KEY (composer))
select composer from tracks where name = "fast as a shark"
who is the the incumbent with candidates being ben cravens (d) unopposed
create table table_1342331_5 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent))
select incumbent from table_1342331_5 where candidates = "ben cravens (d) unopposed"
What is the flange thickness (mm) for the weight (kg/m) 10.4?
create table table_2071644_1 (flange_thickness__mm_ varchar, weight__kg_m_ varchar, PRIMARY KEY (flange_thickness__mm_))
select flange_thickness__mm_ from table_2071644_1 where weight__kg_m_ = "10.4"
what is the school for chris mcnamara?
create table table_29598261_1 (last_school_college varchar, name varchar, PRIMARY KEY (last_school_college))
select last_school_college from table_29598261_1 where name = "chris mcnamara"
what is the owner of the callsign wliw
create table table_1979203_1 (owner varchar, callsign varchar, PRIMARY KEY (owner))
select owner from table_1979203_1 where callsign = "wliw"
What circuit is the Vi Rhein-Pokalrennen race in?
create table table_1140090_6 (circuit varchar, race_name varchar, PRIMARY KEY (circuit))
select circuit from table_1140090_6 where race_name = "vi rhein-pokalrennen"
Find the dates on which more than one revisions were made.
create table catalogs (date_of_latest_revision varchar, PRIMARY KEY (date_of_latest_revision))
select date_of_latest_revision from catalogs group by date_of_latest_revision having count(*) > 1
When hale irwin is the winner what is the margin of victory?
create table table_2417741_1 (margin_of_victory varchar, winner varchar, PRIMARY KEY (margin_of_victory))
select margin_of_victory from table_2417741_1 where winner = "hale irwin"
Which team has the home average of 18125?
create table table_27094070_4 (team varchar, home_avg varchar, PRIMARY KEY (team))
select team from table_27094070_4 where home_avg = 18125
What was the Sat 21 Aug time for the driver whose Thurs 26 Aug time was 20' 56.01 108.143mph?
create table table_26986076_6 (sat_21_aug varchar, thurs_26_aug varchar, PRIMARY KEY (sat_21_aug))
select sat_21_aug from table_26986076_6 where thurs_26_aug = "20' 56.01 108.143mph"
Who wrote the episodes with 7.70 u.s. viewers (million) ?
create table table_27117365_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by))
select written_by from table_27117365_1 where us_viewers__million_ = "7.70"
How many people directed the show written by Chris Sheridan?
create table table_14724369_1 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select count(directed_by) from table_14724369_1 where written_by = "chris sheridan"
List the original air date for week 5.
create table table_22904780_1 (original_air_date varchar, rank__week_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_22904780_1 where rank__week_ = 5
All high points are team new york.
create table table_17080868_8 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_17080868_8 where team = "new york"
Name the high rebounds for 17-33
create table table_23274514_7 (high_rebounds varchar, record varchar, PRIMARY KEY (high_rebounds))
select high_rebounds from table_23274514_7 where record = "17-33"
When turquoise is the map colour how many avg. trips per mile (×1000) are there?
create table table_17839_1 (avg_trips_per_mile__ varchar, map_colour varchar, PRIMARY KEY (avg_trips_per_mile__))
select count(avg_trips_per_mile__) as ×1000_ from table_17839_1 where map_colour = "turquoise"
What is the area of Colonsay Island?
create table table_143579_1 (area___ha__ integer, island varchar, PRIMARY KEY (area___ha__))
select min(area___ha__) from table_143579_1 where island = "colonsay"
How many entries for district home are listed for the 87th congress?
create table table_2841865_2 (district_home varchar, congress varchar, PRIMARY KEY (district_home))
select count(district_home) from table_2841865_2 where congress = "87th"
WHen jaime aff and christine langner are the performers what is the subject?
create table table_191105_3 (subject varchar, performed_by varchar, PRIMARY KEY (subject))
select subject from table_191105_3 where performed_by = "jaime aff and christine langner"
How many times was the background self-employed - media agency?
create table table_26263322_1 (candidate varchar, background varchar, PRIMARY KEY (candidate))
select count(candidate) from table_26263322_1 where background = "self-employed - media agency"
which club was in toronto 2003-06
create table table_10015132_16 (school_club_team varchar, years_in_toronto varchar, PRIMARY KEY (school_club_team))
select school_club_team from table_10015132_16 where years_in_toronto = "2003-06"
What was the first leg result in the round against Norchi Dinamoeli?
create table table_20086138_1 (first_leg varchar, opposition varchar, PRIMARY KEY (first_leg))
select first_leg from table_20086138_1 where opposition = "norchi dinamoeli"
What is the effective date of the claim that has the largest amount of total settlement?
create table settlements (claim_id varchar, settlement_amount integer, PRIMARY KEY (claim_id)); create table claims (effective_date varchar, claim_id varchar, PRIMARY KEY (effective_date))
select t1.effective_date from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id order by sum(t2.settlement_amount) desc limit 1
How many teams finished in 8th in 2008?
create table table_20140132_1 (team varchar, position_in_2008 varchar, PRIMARY KEY (team))
select count(team) from table_20140132_1 where position_in_2008 = "8th"
What was spent per voter when the spent per vote was 20.07?
create table table_22097588_9 (spent_per_voter___php__ varchar, spent_per_vote___php__ varchar, PRIMARY KEY (spent_per_voter___php__))
select spent_per_voter___php__ from table_22097588_9 where spent_per_vote___php__ = "20.07"
How many dar are in germany?
create table table_15887683_15 (dar varchar, country varchar, PRIMARY KEY (dar))
select dar from table_15887683_15 where country = "germany"
What is every composition name when the music library is Heart of Asia and media type is album with the Trance genre?
create table table_23829490_1 (composition_name varchar, genre varchar, music_library varchar, media_type varchar, PRIMARY KEY (composition_name))
select composition_name from table_23829490_1 where music_library = "heart of asia" and media_type = "album" and genre = "trance"
What is the clock multiplier if the voltage range (v) is 3.3 - 3.6; input clock (mhz) is 33 x 3 / 50 x 2; and part number is a80486dx4-100?
create table table_15261_1 (clock_multiplier varchar, part_number varchar, voltage_range__v_ varchar, input_clock__mhz_ varchar, PRIMARY KEY (clock_multiplier))
select clock_multiplier from table_15261_1 where voltage_range__v_ = "3.3 - 3.6" and input_clock__mhz_ = "33 x 3 / 50 x 2" and part_number = "a80486dx4-100"
What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?
create table table_13012165_1 (washington varchar, _dc varchar, new_york varchar, PRIMARY KEY (washington))
select washington, _dc from table_13012165_1 where new_york = "ramapo ll ramapo"
Name the type for hobart college
create table table_1974482_1 (type varchar, institution varchar, PRIMARY KEY (type))
select type from table_1974482_1 where institution = "hobart college"
If the English translation is hello girl, what was the language?
create table table_19249824_1 (language varchar, english_translation varchar, PRIMARY KEY (language))
select language from table_19249824_1 where english_translation = "hello girl"
When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?
create table table_1628607_5 (points__percentage varchar, foursomes_w_l_h varchar, PRIMARY KEY (points__percentage))
select points__percentage from table_1628607_5 where foursomes_w_l_h = "1–0–0 won w/ p. creamer 3&2"
What is the location that has a power of 5kw (10kw ERP)?
create table table_2610582_3 (location__transmitter_site_ varchar, power_kw__erp_ varchar, PRIMARY KEY (location__transmitter_site_))
select location__transmitter_site_ from table_2610582_3 where power_kw__erp_ = "5kw (10kw erp)"
What is the power, in kW, of channel TV-23, callsign DYCG-TV?
create table table_2610582_3 (power_kw__erp_ varchar, ch__number varchar, callsign varchar, PRIMARY KEY (power_kw__erp_))
select power_kw__erp_ from table_2610582_3 where ch__number = "tv-23" and callsign = "dycg-tv"
What is the number of bids with elite eight larger than 1.0
create table table_10722506_6 (_number_of_bids varchar, elite_eight integer, PRIMARY KEY (_number_of_bids))
select count(_number_of_bids) from table_10722506_6 where elite_eight > 1.0
Show all product names without an order.
create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table order_items (product_id varchar, PRIMARY KEY (product_id)); create table products (product_name varchar, PRIMARY KEY (product_name))
select product_name from products except select t1.product_name from products as t1 join order_items as t2 on t1.product_id = t2.product_id
How many times did Charles Jarrott report?
create table table_18893428_1 (report varchar, driver varchar, PRIMARY KEY (report))
select count(report) from table_18893428_1 where driver = "charles jarrott"
How many titles got a viewership of 26.53 million?
create table table_10718525_2 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
select count(title) from table_10718525_2 where us_viewers__millions_ = "26.53"
When 102 mpg-e (33kw-hrs/100mi) is the epa rated combined fuel economy what is the vehicle type?
create table table_24620684_2 (vehicle varchar, epa_rated_combined_fuel_economy varchar, PRIMARY KEY (vehicle))
select vehicle from table_24620684_2 where epa_rated_combined_fuel_economy = "102 mpg-e (33kw-hrs/100mi)"
Find the wineries that have at least four wines.
create table wine (winery varchar, PRIMARY KEY (winery))
select winery from wine group by winery having count(*) >= 4
What stadium(sO does san juan jabloteh play in?
create table table_25794138_1 (stadium varchar, team varchar, PRIMARY KEY (stadium))
select stadium from table_25794138_1 where team = "san juan jabloteh"
What is the highest acc percent score in the competition?
create table basketball_match (acc_percent varchar, PRIMARY KEY (acc_percent))
select acc_percent from basketball_match order by acc_percent desc limit 1
List the all the assets make, model, details by the disposed date ascendingly.
create table assets (asset_make varchar, asset_model varchar, asset_details varchar, asset_disposed_date varchar, PRIMARY KEY (asset_make))
select asset_make, asset_model, asset_details from assets order by asset_disposed_date
Find the number of cartoons directed by each of the listed directors.
create table cartoon (directed_by varchar, PRIMARY KEY (directed_by))
select count(*), directed_by from cartoon group by directed_by
Name the number of δs ‡ /cal mol −1 k −1 for butadiene being 1,2-dimethylene-cyclohexane
create table table_2068719_1 (δs_ varchar, _butadiene varchar, PRIMARY KEY (δs_))
select count(δs_) as ‡__cal_mol_−1_k_−1 from table_2068719_1 where _butadiene = "1,2-dimethylene-cyclohexane"
How many o-19% are where the quartier is in saint-loup?
create table table_29615165_5 (_percentage_0_19_years varchar, quartier varchar, PRIMARY KEY (_percentage_0_19_years))
select _percentage_0_19_years from table_29615165_5 where quartier = "saint-loup"
How many cities are there in state "Colorado"?
create table addresses (state_province_county varchar, PRIMARY KEY (state_province_county))
select count(*) from addresses where state_province_county = "colorado"
How many population total figures are there for the year when Allora's population was 2132?
create table table_12584173_1 (population__region_total_ varchar, population__allora_ varchar, PRIMARY KEY (population__region_total_))
select count(population__region_total_) from table_12584173_1 where population__allora_ = 2132
Name the period for michel llodra
create table table_24565004_13 (period varchar, name varchar, PRIMARY KEY (period))
select period from table_24565004_13 where name = "michel llodra"
What is the name of the city which incorporated on july 16, 1860?
create table table_28367242_1 (name varchar, incorporation_date__city_ varchar, PRIMARY KEY (name))
select name from table_28367242_1 where incorporation_date__city_ = "july 16, 1860"
What are the names of musicals with nominee "Bob Fosse"?
create table musical (name varchar, nominee varchar, PRIMARY KEY (name))
select name from musical where nominee = "bob fosse"
What is the unit of measurement of product named "cumin"?
create table ref_product_categories (unit_of_measure varchar, product_category_code varchar, PRIMARY KEY (unit_of_measure)); create table products (product_category_code varchar, product_name varchar, PRIMARY KEY (product_category_code))
select t2.unit_of_measure from products as t1 join ref_product_categories as t2 on t1.product_category_code = t2.product_category_code where t1.product_name = "cumin"
Show names for all employees who do not have certificate of Boeing 737-800.
create table certificate (eid varchar, aid varchar, PRIMARY KEY (eid)); create table employee (name varchar, eid varchar, PRIMARY KEY (name)); create table employee (name varchar, PRIMARY KEY (name)); create table aircraft (aid varchar, name varchar, PRIMARY KEY (aid))
select name from employee except select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.name = "boeing 737-800"
What are the cities/towns located in the municipality of Moss?
create table table_157826_1 (city_town varchar, municipality varchar, PRIMARY KEY (city_town))
select city_town from table_157826_1 where municipality = "moss"
How many headphone classes have a US MSRP of $150?
create table table_1601027_1 (headphone_class varchar, us_msrp varchar, PRIMARY KEY (headphone_class))
select count(headphone_class) from table_1601027_1 where us_msrp = "$150"
What is the number of students in Fall 09 from the state that had 3940 in Fall 07?
create table table_15055594_6 (fall_09 integer, fall_07 varchar, PRIMARY KEY (fall_09))
select max(fall_09) from table_15055594_6 where fall_07 = 3940
How many winning drivers in the kraco twin 125 (r2) race were there?
create table table_10706879_3 (winning_driver varchar, name varchar, PRIMARY KEY (winning_driver))
select count(winning_driver) from table_10706879_3 where name = "kraco twin 125 (r2)"
With an average finish of 29.0, what was the average start?
create table table_2190919_3 (avg_start varchar, avg_finish varchar, PRIMARY KEY (avg_start))
select avg_start from table_2190919_3 where avg_finish = "29.0"
What are all the dsl type offered by the M-Net telecom company?
create table table_1773908_3 (dsl_type varchar, provider varchar, PRIMARY KEY (dsl_type))
select dsl_type from table_1773908_3 where provider = "m-net"
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
create table employees (employee_name varchar, employee_id varchar, PRIMARY KEY (employee_name)); create table documents_to_be_destroyed (destruction_authorised_by_employee_id varchar, destroyed_by_employee_id varchar, PRIMARY KEY (destruction_authorised_by_employee_id))
select t2.employee_name, t3.employee_name from documents_to_be_destroyed as t1 join employees as t2 on t1.destruction_authorised_by_employee_id = t2.employee_id join employees as t3 on t1.destroyed_by_employee_id = t3.employee_id
how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%
create table table_1342013_34 (party varchar, candidates varchar, PRIMARY KEY (party))
select count(party) from table_1342013_34 where candidates = "john m. vorys (r) 61.5% jacob f. myers (d) 38.5%"
How many turbine manufacturers installed a capacity of 189 MW?
create table table_24837750_1 (turbine_manufacturer varchar, installed_capacity__mw_ varchar, PRIMARY KEY (turbine_manufacturer))
select count(turbine_manufacturer) from table_24837750_1 where installed_capacity__mw_ = "189"
What is thurs 26 aug when wed 25 aug is 19' 59.98 113.192mph?
create table table_26986076_2 (thurs_26_aug varchar, wed_25_aug varchar, PRIMARY KEY (thurs_26_aug))
select thurs_26_aug from table_26986076_2 where wed_25_aug = "19' 59.98 113.192mph"
Name the open cup for division finals
create table table_2365150_1 (open_cup varchar, playoffs varchar, PRIMARY KEY (open_cup))
select open_cup from table_2365150_1 where playoffs = "division finals"
How many airports do we have?
create table airports (id varchar, PRIMARY KEY (id))
select count(*) from airports
How many airlines are there?
create table airlines (id varchar, PRIMARY KEY (id))
select count(*) from airlines
Name the mission name for ocean of storms
create table table_1558077_8 (mission_name varchar, lunar_landing_site varchar, PRIMARY KEY (mission_name))
select mission_name from table_1558077_8 where lunar_landing_site = "ocean of storms"