answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "94.4"
What is the 2fm for rnag 94.4?
CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR)
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
What is the birthday of the staff member with first name as Janessa and last name as Sawayn?
CREATE TABLE Staff (date_of_birth VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532
Which smallest swimsuit number's interview was less than 8.574 when the average number was bigger than 8.532?
CREATE TABLE table_name_87 ( swimsuit INTEGER, interview VARCHAR, average VARCHAR )
SELECT COUNT(reason_for_change) FROM table_1847180_3 WHERE vacator = "A. Willis Robertson (D)"
How many reasons were given when A. Willis Robertson (D) resigned?
CREATE TABLE table_1847180_3 (reason_for_change VARCHAR, vacator VARCHAR)
SELECT date_joined_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
When did the staff member with first name as Janessa and last name as Sawayn join the company?
CREATE TABLE Staff (date_joined_staff VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT tournament FROM table_name_4 WHERE top_5 > 1 AND top_25 = 13 AND wins = 3
Name the tournament for top-5 more thn 1 and top-25 of 13 with wins of 3
CREATE TABLE table_name_4 ( tournament VARCHAR, wins VARCHAR, top_5 VARCHAR, top_25 VARCHAR )
SELECT vacator FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966"
Who vacated his post when his successor was formally installed on May 11, 1966?
CREATE TABLE table_1847180_3 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT date_left_staff FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
When did the staff member with first name as Janessa and last name as Sawayn leave the company?
CREATE TABLE Staff (date_left_staff VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT nationality FROM table_name_89 WHERE position = "point guard" AND years_for_grizzlies = "1999-2001"
What was the nationality of a point guard position in 1999-2001?
CREATE TABLE table_name_89 ( nationality VARCHAR, position VARCHAR, years_for_grizzlies VARCHAR )
SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966"
What was the state (class) where the new successor was formally installed on May 11, 1966?
CREATE TABLE table_1847180_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT COUNT(*) FROM Staff WHERE first_name = "Ludie"
How many staff have the first name Ludie?
CREATE TABLE Staff (first_name VARCHAR)
SELECT MAX("Won") FROM table_20037 WHERE "Difference" = '1'
What is the highest number won with a difference of 1?
CREATE TABLE table_20037 ( "Position" real, "Team" text, "Points" real, "Played" real, "Won" real, "Drawn" real, "Lost" real, "For" real, "Against" real, "Difference" text )
SELECT album FROM table_18442691_2 WHERE artist = "ABBA"
When abba is the artist what is the album?
CREATE TABLE table_18442691_2 (album VARCHAR, artist VARCHAR)
SELECT nickname FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
What is the nickname of staff with first name as Janessa and last name as Sawayn?
CREATE TABLE Staff (nickname VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT SUM("Laps") FROM table_55433 WHERE "Driver" = 'tony rolt' AND "Grid" < '10'
what is the laps when the driver is tony rolt and the grid is less than 10?
CREATE TABLE table_55433 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT album FROM table_18442691_2 WHERE no = 35
When 35 is the number what is the album?
CREATE TABLE table_18442691_2 (album VARCHAR, no VARCHAR)
SELECT COUNT(*) FROM Staff
How many staff in total?
CREATE TABLE Staff (Id VARCHAR)
SELECT "Driver" FROM table_53386 WHERE "Chassis" = 'n175' AND "Rounds" = '13'
Who drove the car with the n175 chassis in round 13?
CREATE TABLE table_53386 ( "Constructor" text, "Chassis" text, "Engine" text, "Tyre" text, "Driver" text, "Rounds" text )
SELECT MIN(no) FROM table_18442691_2 WHERE album = "Bat Out of Hell"
When bat out of hell is the album what is the lowest number?
CREATE TABLE table_18442691_2 (no INTEGER, album VARCHAR)
SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
Which city does staff with first name as Janessa and last name as Sawayn live?
CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
SELECT SUM(total_pounds) FROM purchase AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T2.city = 'London' AND T1.year = 2018
How many total pounds were purchased in the year 2018 at all London branches?
CREATE TABLE purchase ( member_id number, branch_id text, year text, total_pounds number ) CREATE TABLE membership_register_branch ( member_id number, branch_id text, register_year text ) CREATE TABLE branch ( branch_id number, name text, open_year text, address_road text, ...
SELECT no FROM table_18442691_2 WHERE released = "Cannot handle non-empty timestamp argument! 2007"
When cannot handle non-empty timestamp argument! 2007 is released what is the no.?
CREATE TABLE table_18442691_2 (no VARCHAR, released VARCHAR)
SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
Which country and state does staff with first name as Janessa and last name as Sawayn lived?
CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT model_number FROM table_name_69 WHERE part_number_s_ = "cl8064701510101"
What model number has part number cl8064701510101?
CREATE TABLE table_name_69 ( model_number VARCHAR, part_number_s_ VARCHAR )
SELECT district FROM table_1847180_4 WHERE vacator = "Ralph Harvey (R)"
Which district did Ralph Harvey (r) vacated when he resigned?
CREATE TABLE table_1847180_4 (district VARCHAR, vacator VARCHAR)
SELECT SUM(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin"
How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?
CREATE TABLE Lessons (lesson_time INTEGER, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name ORDER BY COUNT(*)
Give me a histogram for what are the names of the technicians and how many machines are they assigned to repair?, display the total number in ascending order.
CREATE TABLE repair ( repair_ID int, name text, Launch_Date text, Notes text ) CREATE TABLE technician ( technician_id real, Name text, Team text, Starting_Year real, Age int ) CREATE TABLE machine ( Machine_ID int, Making_Year int, Class text, Team text, Machin...
SELECT vacator FROM table_1847180_4 WHERE successor = "Walter B. Jones, Sr. (D)"
Who did Walter B. Jones, Sr. (d) succeeded in office?
CREATE TABLE table_1847180_4 (vacator VARCHAR, successor VARCHAR)
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
What is the zip code of staff with first name as Janessa and last name as Sawayn lived?
CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'sputum, tracheal specimen' AND STRFTIME('%y', microlab.culturetakentime) >= '2103')
count the number of patients who received their sputum, tracheal specimen microbiology test since 2103.
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TAB...
SELECT title FROM table_18481791_2 WHERE directed_by = "John T. Kretchmer"
What was the title of the episode directed by John T. Kretchmer?
CREATE TABLE table_18481791_2 (title VARCHAR, directed_by VARCHAR)
SELECT COUNT(*) FROM Addresses WHERE state_province_county = "Georgia"
How many staff live in state Georgia?
CREATE TABLE Addresses (state_province_county VARCHAR)
SELECT team FROM table_name_16 WHERE position = "lhp" AND pick = 23
What is Team, when Position is 'LHP', and when Pick is '23'?
CREATE TABLE table_name_16 ( team VARCHAR, position VARCHAR, pick VARCHAR )
SELECT MIN(no_in_season) FROM table_18481791_3 WHERE directed_by = "Bryan Spicer"
How many seasons were directed by Bryan Spicer?
CREATE TABLE table_18481791_3 (no_in_season INTEGER, directed_by VARCHAR)
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"
Find out the first name and last name of staff lived in city Damianfort.
CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
SELECT total_matches FROM table_name_20 WHERE year = "2003"
How many Total matches happened in 2003?
CREATE TABLE table_name_20 ( total_matches VARCHAR, year VARCHAR )
SELECT title FROM table_18481791_3 WHERE no_in_series = 23
What is the title of series 23?
CREATE TABLE table_18481791_3 (title VARCHAR, no_in_series VARCHAR)
SELECT T1.city, COUNT(*) FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.city ORDER BY COUNT(*) DESC LIMIT 1
Which city lives most of staffs? List the city name and number of staffs.
CREATE TABLE Staff (staff_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
SELECT COUNT("National Rank") FROM table_30153 WHERE "Percentage Change YOY" = '13.1%'
Name the total number of rank for percentage change yoy 13.1%
CREATE TABLE table_30153 ( "State Rank" real, "National Rank" real, "Institution" text, "Location" text, "Public or Private" text, "Endowment Funds" text, "Percentage Change YOY" text )
SELECT directed_by FROM table_18481791_3 WHERE no_in_season = 1
Who directed season 1?
CREATE TABLE table_18481791_3 (directed_by VARCHAR, no_in_season VARCHAR)
SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4
List the states which have between 2 to 4 staffs living there.
CREATE TABLE Addresses (state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR)
SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE DESC
For all employees who have the letters D or S in their first name, a line chart shows the change of salary over hire_date, and could you sort HIRE_DATE from high to low order?
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE...
SELECT title FROM table_18481791_3 WHERE us_viewers__in_millions_ = "3.97"
What is the title when u.s. viewers (millions) is 3.97?
CREATE TABLE table_18481791_3 (title VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT first_name, last_name FROM Customers
List the first name and last name of all customers.
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR)
SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"
What procedures cost less than 5000 and have John Wen as a trained physician?
CREATE TABLE medication ( code number, name text, brand text, description text ) CREATE TABLE nurse ( employeeid number, name text, position text, registered boolean, ssn number ) CREATE TABLE procedures ( code number, name text, cost number ) CREATE TABLE trained_in (...
SELECT COUNT(commentator) FROM table_184803_4 WHERE broadcaster = "ORF"
how many people commentated where broadcaster is orf
CREATE TABLE table_184803_4 (commentator VARCHAR, broadcaster VARCHAR)
SELECT email_address, date_of_birth FROM Customers WHERE first_name = "Carole"
List email address and birthday of customer whose first name as Carole.
CREATE TABLE Customers (email_address VARCHAR, date_of_birth VARCHAR, first_name VARCHAR)
SELECT MIN(founded) FROM table_11604804_5 WHERE nickname = "ParSU Cimmarons"
What is the founding of parsu cimmarons?
CREATE TABLE table_11604804_5 ( founded INTEGER, nickname VARCHAR )
SELECT spokespersons FROM table_184803_4 WHERE voting_order = 9
list the spokespersons where voting order is 9
CREATE TABLE table_184803_4 (spokespersons VARCHAR, voting_order VARCHAR)
SELECT phone_number, email_address FROM Customers WHERE amount_outstanding > 2000
List phone number and email address of customer with more than 2000 outstanding balance.
CREATE TABLE Customers (phone_number VARCHAR, email_address VARCHAR, amount_outstanding INTEGER)
SELECT "president of\nthe republic" FROM table_204_488 WHERE "order in\nposition" < (SELECT "order in\nposition" FROM table_204_488 WHERE "president of\nthe republic" = 'gustaf mannerheim') ORDER BY "order in\nposition" DESC LIMIT 1
who served a term before mannerheim ?
CREATE TABLE table_204_488 ( id number, "order in\nposition" number, "president of\nthe republic" text, "length of\nthe presidential\naction" text, "rank by\nlength\nof term(s)" number, "notes" text )
SELECT country FROM table_184803_4 WHERE commentator = "Gordana Bonetti"
which countries were commentated on by gordana bonetti
CREATE TABLE table_184803_4 (country VARCHAR, commentator VARCHAR)
SELECT customer_status_code, cell_mobile_phone_number, email_address FROM Customers WHERE first_name = "Marina" OR last_name = "Kohler"
What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?
CREATE TABLE Customers (customer_status_code VARCHAR, cell_mobile_phone_number VARCHAR, email_address VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT AVG(demographic.age) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.diagnosis = "ANGIOEDEMA"
what is average age of patients whose discharge location is home health care and primary disease is angioedema?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
SELECT spokespersons FROM table_184803_4 WHERE country = "Luxembourg"
wich spokesperson talked on luxembourg
CREATE TABLE table_184803_4 (spokespersons VARCHAR, country VARCHAR)
SELECT date_of_birth FROM Customers WHERE customer_status_code = 'Good Customer'
When are the birthdays of customer who are classified as 'Good Customer' status?
CREATE TABLE Customers (date_of_birth VARCHAR, customer_status_code VARCHAR)
SELECT "School Year" FROM table_19435 WHERE "Class AA" = 'Franklin'
For franklin of class aa, which school years does this occur?
CREATE TABLE table_19435 ( "School Year" text, "Class A" text, "Class AA" text, "Class AAA" text, "Class AAAA" text, "Class AAAAA" text )
SELECT commentator FROM table_184803_4 WHERE spokespersons = "Claude Darget"
who was the commentator when spokesperson was claude darget
CREATE TABLE table_184803_4 (commentator VARCHAR, spokespersons VARCHAR)
SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard"
When did customer with first name as Carole and last name as Bernhard became a customer?
CREATE TABLE Customers (date_became_customer VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microla...
when did patient 031-3355 get the last other microbiology test on the current hospital encounter.
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugsto...
SELECT institution FROM table_18483171_1 WHERE team_nickname = "Cardinals"
List all institutions with a team name of the Cardinals.
CREATE TABLE table_18483171_1 (institution VARCHAR, team_nickname VARCHAR)
SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code
List all customer status codes and the number of customers having each status code.
CREATE TABLE Customers (customer_status_code VARCHAR)
SELECT procedures.short_title, procedures.long_title FROM procedures WHERE procedures.icd9_code = "45"
what is the procedure short title and long title of procedure icd9 code 45?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT COUNT(founded) FROM table_18483171_1 WHERE location = "Rock Island, Illinois"
List the total number of institutions founded in Rock Island, Illinois.
CREATE TABLE table_18483171_1 (founded VARCHAR, location VARCHAR)
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1
Which customer status code has least number of customers?
CREATE TABLE Customers (customer_status_code VARCHAR)
SELECT "Opponent" FROM table_68868 WHERE "Year" = '1992'
Who is the opponent in 1992?
CREATE TABLE table_68868 ( "Rank" text, "Score" text, "Player" text, "Club" text, "Opponent" text, "Year" text, "Round" text, "Venue" text )
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55"
How many viewers in millions watched the episode 23:55 minutes long?
CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed"
How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?
CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT MAX("Place") FROM table_14265 WHERE "Year" = '2010' AND "Clean and Jerk" = '224kg'
What was the highest place result in 2010 with a Clean and Jerk weight of 224kg?
CREATE TABLE table_14265 ( "Year" real, "Competition" text, "Location" text, "Weight Category" text, "Snatch" text, "Clean and Jerk" text, "Total" text, "Place" real )
SELECT broadcast_date FROM table_1849243_1 WHERE archive = "16mm t/r"
What is the broadcast date of the 16mm t/r episode?
CREATE TABLE table_1849243_1 (broadcast_date VARCHAR, archive VARCHAR)
SELECT MAX(amount_outstanding), MIN(amount_outstanding), AVG(amount_outstanding) FROM Customers
What is maximum, minimum and average amount of outstanding of customer?
CREATE TABLE Customers (amount_outstanding INTEGER)
SELECT "Original album" FROM table_60614 WHERE "English translation" = 'with you'
What is Original Album, when English Translation is 'With You'?
CREATE TABLE table_60614 ( "English translation" text, "Original album" text, "Lyricist(s)" text, "Composer(s)" text, "Time" text )
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE archive = "16mm t/r"
How many viewers watched the 16mm t/r episode?
CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, archive VARCHAR)
SELECT first_name, last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000
List the first name and last name of customers have the amount of outstanding between 1000 and 3000.
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, amount_outstanding INTEGER)
SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING COUNT(*) > 3
Find the accreditation level that more than 3 phones use.
CREATE TABLE phone ( Accreditation_level VARCHAR )
SELECT el_canal_de_las_estrellas FROM table_18498743_1 WHERE mañana_es_para_siempre = "Impreuna pentru totdeauna"
state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna
CREATE TABLE table_18498743_1 (el_canal_de_las_estrellas VARCHAR, mañana_es_para_siempre VARCHAR)
SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt"
List first name and last name of customers lived in city Lockmanfurt.
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country ORDER BY Country DESC
A bar chart for what are the number of the countries of mountains with height bigger than 5000?, could you show in descending by the Country?
CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text )
SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = "Love Never Dies"
what is the mexico stat where mañana es para siempre is love never dies
CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR)
SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
Which country does customer with first name as Carole and last name as Bernhard lived in?
CREATE TABLE Addresses (country VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT tail_number FROM table_name_32 WHERE fatalities = "3/3"
What was the tail number with 3/3 fatalities?
CREATE TABLE table_name_32 ( tail_number VARCHAR, fatalities VARCHAR )
SELECT october_20, _2008 FROM table_18498743_1 WHERE mexico = "Romania"
what is the october 20, 2008 stat where mexico stat is romania
CREATE TABLE table_18498743_1 (october_20 VARCHAR, _2008 VARCHAR, mexico VARCHAR)
SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
What is zip code of customer with first name as Carole and last name as Bernhard?
CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Customers (customer_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT COUNT("Name") FROM table_20331 WHERE "Livery" = 'Highland Railway green'
How many locomotives have a livery that is highland railway green
CREATE TABLE table_20331 ( "No." real, "Name" text, "Livery" text, "Locomotive type" text, "Wheel Arrangement" text, "Builder" text, "Year built" real, "Status" text )
SELECT other FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"
Name the other for chironius multiventris septentrionalis
CREATE TABLE table_1850282_7 (other VARCHAR, species VARCHAR)
SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1
Which city does has most number of customers?
CREATE TABLE Customers (customer_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
SELECT episode_air_date FROM table_27615445_1 WHERE guest_fourth_judge = "Luiza Possi"
List all episode air dates where Luiza Possi was the guest fourth judge?
CREATE TABLE table_27615445_1 ( episode_air_date VARCHAR, guest_fourth_judge VARCHAR )
SELECT trinidad FROM table_1850282_7 WHERE common_name = "Yellow-bellied puffing snake"
Name the trinidad for yellow-bellied puffing snake
CREATE TABLE table_1850282_7 (trinidad VARCHAR, common_name VARCHAR)
SELECT SUM(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard"
How much in total does customer with first name as Carole and last name as Bernhard paid?
CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Customer_Payments (amount_payment INTEGER, customer_id VARCHAR)
SELECT "Opponent" FROM table_35023 WHERE "Game" < '70' AND "Record" = '43–16–8'
Game smaller than 70, and a Record of 43 16 8 is what opponent?
CREATE TABLE table_35023 ( "Game" real, "March" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT bocas_is FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"
Name the bocas for chironius multiventris septentrionalis
CREATE TABLE table_1850282_7 (bocas_is VARCHAR, species VARCHAR)
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Customer_Payments)
List the number of customers that did not have any payment history.
CREATE TABLE Customers (customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR)
SELECT score FROM table_name_97 WHERE home = "broadview hawks"
What was the score of the game with the Broadview Hawks as the home team?
CREATE TABLE table_name_97 ( score VARCHAR, home VARCHAR )
SELECT common_name FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"
Name the common name for chironius multiventris septentrionalis
CREATE TABLE table_1850282_7 (common_name VARCHAR, species VARCHAR)
SELECT T2.first_name, T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 2
List first name and last name of customers that have more than 2 payments.
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR)
SELECT Name, COUNT(Name) FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID GROUP BY Name ORDER BY COUNT(Name) DESC
Show the number of debates for each person on the affirmative side in a bar chart, and order by the total number in desc please.
CREATE TABLE people ( People_ID int, District text, Name text, Party text, Age int ) CREATE TABLE debate_people ( Debate_ID int, Affirmative int, Negative int, If_Affirmative_Win bool ) CREATE TABLE debate ( Debate_ID int, Date text, Venue text, Num_of_Audience int ...
SELECT contestant_name FROM table_18513028_3 WHERE date_premiered__2009_ = "July 25"
What contestant was premiered on July 25?
CREATE TABLE table_18513028_3 (contestant_name VARCHAR, date_premiered__2009_ VARCHAR)
SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code
List all payment methods and number of payments using each payment methods.
CREATE TABLE Customer_Payments (payment_method_code VARCHAR)
SELECT MIN(season_no) FROM table_11630008_4 WHERE written_by = "Joseph Hampton & Dani Renee"
What is the first season written by joseph hampton & dani renee?
CREATE TABLE table_11630008_4 ( season_no INTEGER, written_by VARCHAR )
SELECT air_force___navy_score FROM table_1850339_2 WHERE season = 2018
What's the Air Force - Navy score in the 2018 season?
CREATE TABLE table_1850339_2 (air_force___navy_score VARCHAR, season VARCHAR)