sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT U.S. air date FROM table WHERE U.S. viewers (million) = 7.5
CREATE TABLE INST, Here is a database schema( table schema);
What is the U.S. air date when the U.S. viewers are 7.5 million?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Written by = Julia Newton AND No. in series = 48
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of the episode written by Julia Newton in series 48?.It is not neccessary to use all the tables.
SELECT COUNT Australian Marquee FROM table WHERE Vice-Captain = Travis Dodd
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of australian marquee for travis dodd.It is not neccessary to use all the tables.
SELECT graphical FROM table_22915134_2 WHERE engine = "I4"
CREATE TABLE INST, Here is a database schema( table schema);
When i4 is the engine what is the graphical?It is not neccessary to use all the tables.
SELECT MIN Apps FROM table WHERE Rank = 3 AND Win % < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest apps for rank 3 and 0% wins?.It is not neccessary to use all the tables.
SELECT date FROM table_name_97 WHERE event = "1500 m freestyle"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the 1500 m freestyle competition?It is not neccessary to use all the tables.
SELECT player FROM table_18974269_1 WHERE original_season = "Fresh Meat" AND gender = "Female"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the female contestant on the Original season of Fresh Meat?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponent = royals AND Attendance = 12,699
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the game against the Royals that had an attendance of 12,699?.It is not neccessary to use all the tables.
SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = "My Magic"
CREATE TABLE INST, Here is a database schema( table schema);
Name the year for is my magicIt is not neccessary to use all the tables.
SELECT job_id FROM job_history WHERE end_date - start_date > 300 GROUP BY job_id HAVING COUNT(*) >= 2
CREATE TABLE INST, Here is a database schema( table schema);
display job ID for those jobs that were done by two or more for more than 300 days.It is not neccessary to use all the tables.
SELECT MIN(bronze) FROM table_name_34 WHERE total = 4 AND gold < 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Bronze has a Total of 4 and a Gold smaller than 1?It is not neccessary to use all the tables.
SELECT winning_driver FROM table_name_43 WHERE circuit = "circuit zandvoort"
CREATE TABLE INST, Here is a database schema( table schema);
Which Winning Driver has a Circuit of circuit zandvoort?It is not neccessary to use all the tables.
SELECT batting_style FROM table_name_95 WHERE player = "jonty rhodes"
CREATE TABLE INST, Here is a database schema( table schema);
What is Jonty Rhodes's batting style?It is not neccessary to use all the tables.
SELECT player FROM table_name_71 WHERE college = "cincinnati"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Cincinnati College player?It is not neccessary to use all the tables.
SELECT judges FROM table_27487310_5 WHERE country = "Netherlands" AND air_dates = "28 November 2011 – 24 December 2011"
CREATE TABLE INST, Here is a database schema( table schema);
Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?It is not neccessary to use all the tables.
SELECT Grades FROM table WHERE School = Manchester Junior-Senior High School
CREATE TABLE INST, Here is a database schema( table schema);
What are the grades served at Manchester Junior-Senior High School?.It is not neccessary to use all the tables.
SELECT SUM Rebounds FROM table WHERE Games > 22
CREATE TABLE INST, Here is a database schema( table schema);
with games more than 22 what is the rebound total?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.admission_location = "EMERGENCY ROOM ADMIT"
CREATE TABLE INST, Here is a database schema( table schema);
Provide the number of patients that survived and had an admission location of emergency room admit.It is not neccessary to use all the tables.
SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME
CREATE TABLE INST, Here is a database schema( table schema);
Find employee with ID and name of the country presently where (s)he is working. Visualize by bar chart.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_65 WHERE field = "multi-sport field"
CREATE TABLE INST, Here is a database schema( table schema);
What was the opponent for the game at Multi-sport Field?It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_10 WHERE venue = "punt road oval"
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest crowd at punt road oval?It is not neccessary to use all the tables.
SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state
CREATE TABLE INST, Here is a database schema( table schema);
List the number of invoices from the US grouped by state.It is not neccessary to use all the tables.
SELECT Tyre FROM table WHERE Chassis = p57 p61
CREATE TABLE INST, Here is a database schema( table schema);
What tyre has a chassis of p57 p61?.It is not neccessary to use all the tables.
SELECT COUNT # FROM table WHERE Title = "The Tale of the Room for Rent"
CREATE TABLE INST, Here is a database schema( table schema);
How many have the title "the tale of the room for rent".It is not neccessary to use all the tables.
SELECT 2011 FROM table WHERE 2007 = atp world tour masters 1000
CREATE TABLE INST, Here is a database schema( table schema);
What 2001 has a ATP World Tour Masters 1000 2007?.It is not neccessary to use all the tables.
SELECT crowd FROM table_name_28 WHERE away_team = "st kilda"
CREATE TABLE INST, Here is a database schema( table schema);
Which Crowd has an Away team of st kilda?It is not neccessary to use all the tables.
SELECT Travers Stakes FROM table WHERE Year = 1977
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance at the Travers Stakes in 1977?.It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service, city, flight, flight_stop WHERE city.city_code = airport_service.city_code AND city.city_name = 'DENVER' AND flight_stop.stop_airport = airport_service.airport_code AND flight.airline_code = 'UA' AND flight.flight_id = flight_stop.flight_id
CREATE TABLE INST, Here is a database schema( table schema);
all UA flights with stopovers in DENVERIt is not neccessary to use all the tables.
SELECT Report FROM table WHERE Winning driver = Mike Spence
CREATE TABLE INST, Here is a database schema( table schema);
What is the report for the race that Mike Spence won..It is not neccessary to use all the tables.
SELECT School FROM table WHERE Team = new york yankees
CREATE TABLE INST, Here is a database schema( table schema);
what is the school when the team is new york yankees?.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Away team = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team score for South Melbourne?.It is not neccessary to use all the tables.
SELECT deaths FROM table_name_34 WHERE name = "eseta"
CREATE TABLE INST, Here is a database schema( table schema);
How many deaths did eseta cause?It is not neccessary to use all the tables.
SELECT MAX(2 AS nd) FROM table_11570261_6 WHERE cuts_made = "11"
CREATE TABLE INST, Here is a database schema( table schema);
How many times did Tiger get second in the year where there were 11 cuts?It is not neccessary to use all the tables.
SELECT date FROM table_name_8 WHERE high_points = "suns" AND record = "33–13"
CREATE TABLE INST, Here is a database schema( table schema);
On what date did the Suns have high points with a record of 33–13?It is not neccessary to use all the tables.
SELECT SUM(place) FROM table_name_79 WHERE song = "never change"
CREATE TABLE INST, Here is a database schema( table schema);
What is the place of the song 'Never Change'?It is not neccessary to use all the tables.
SELECT MAX("Nominal GDP World Bank, 2009 (million USD)") FROM table_63424 WHERE "GDP per capita World Bank, 2009 nominal (USD)" = '14267'
CREATE TABLE INST, Here is a database schema( table schema);
What is listed as the highest Nominal GDP World Bank, 2009 (million USD) that has a GDP per capita World Bank, 2009 nominal (USD) of 14267?It is not neccessary to use all the tables.
SELECT Frequency FROM table WHERE Call sign = wgnr-fm
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency of the radio station with a call sign of WGNR-FM?.It is not neccessary to use all the tables.
SELECT Sail Number FROM table WHERE Position = 3
CREATE TABLE INST, Here is a database schema( table schema);
When 3 is the position what is the sail number?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Runner(s)-up = yani tseng
CREATE TABLE INST, Here is a database schema( table schema);
What is the date that has yani tseng as the runner (s)-up?.It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Opponent = oakland raiders AND Week > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?.It is not neccessary to use all the tables.
SELECT SUM(place) FROM table_name_87 WHERE average < 90.06 AND downhill = 71.6
CREATE TABLE INST, Here is a database schema( table schema);
Where was the place that the downhill was 71.6 and the average was less than 90.06?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_84 WHERE time_retired = "+1:35.553"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps have a Time/Retired of +1:35.553?It is not neccessary to use all the tables.
SELECT 2007 AS _estimate FROM table_12720275_1 WHERE combined_statistical_area__or_metropolitan_statistical_area_if_noted_ = "Tulsa-Bartlesville, OK CSA"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2007 estimate for tulsa-bartlesville ok csa?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE β„– = 4
CREATE TABLE INST, Here is a database schema( table schema);
What day did episode number 4 air originally?.It is not neccessary to use all the tables.
SELECT party FROM table_name_71 WHERE results_2004 = "0.00%"
CREATE TABLE INST, Here is a database schema( table schema);
Who had 0.00% in 2004?It is not neccessary to use all the tables.
SELECT MAX(extra_points) FROM table_name_97 WHERE player = "herman everhardus" AND field_goals > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Extra points is the highest one that has a Player of herman everhardus, and a Field goals larger than 0?It is not neccessary to use all the tables.
SELECT metal FROM table_name_84 WHERE element = "heavenly stems"
CREATE TABLE INST, Here is a database schema( table schema);
Which Metal has an Element of heavenly stems?It is not neccessary to use all the tables.
SELECT "home team" FROM table_204_846 ORDER BY "attendance" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which home team brought the greatest number of attendance ?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Score = 67-71=138
CREATE TABLE INST, Here is a database schema( table schema);
What was the To par for the player whose final score was 67-71=138?.It is not neccessary to use all the tables.
SELECT career_win_loss FROM table_name_76 WHERE 2001 = "1–1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Career Win-Loss has a 2001 of 1–1?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_56 WHERE away_team = "hawthorn"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for Hawthorn when they were the away team?It is not neccessary to use all the tables.
SELECT location FROM table_name_67 WHERE league_division = "second division" AND position_in_2012_13 = "4th, third division (promoted)"
CREATE TABLE INST, Here is a database schema( table schema);
What Location is in the second division and has 4th third division (promoted) as its Position in 2012-13?It is not neccessary to use all the tables.
SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of the customer that has been involved in the most policies.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CONGESTIVE HEART FAILURE" AND demographic.dod_year <= "2174.0"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose primary disease is congestive heart failure and year of death is less than or equal to 2174?It is not neccessary to use all the tables.
SELECT SUM ERP W FROM table WHERE Call sign = k231bg
CREATE TABLE INST, Here is a database schema( table schema);
Call sign of k231bg has what sum of erp w?.It is not neccessary to use all the tables.
SELECT City/ town FROM table WHERE Year founded = 1860
CREATE TABLE INST, Here is a database schema( table schema);
In what City/town was their institution founded in 1860?.It is not neccessary to use all the tables.
SELECT Date opened FROM table WHERE Segment description = Red Line MOS-2 North
CREATE TABLE INST, Here is a database schema( table schema);
What date of segment description red line mos-2 north open?.It is not neccessary to use all the tables.
SELECT try_bonus FROM table_name_92 WHERE lost = "10"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Try bonus with lost of 10It is not neccessary to use all the tables.
SELECT kickoff FROM table_24481478_1 WHERE date = "Saturday, April 20"
CREATE TABLE INST, Here is a database schema( table schema);
What time did the game start on saturday april 20?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Round > 5 AND Position = defensive end
CREATE TABLE INST, Here is a database schema( table schema);
Which name had more than 5 rounds and was a defensive end?.It is not neccessary to use all the tables.
SELECT Best Actress FROM table WHERE Year = 2012 6th
CREATE TABLE INST, Here is a database schema( table schema);
Which Best Actress has a Year of 2012 6th?.It is not neccessary to use all the tables.
SELECT Pole Position FROM table WHERE Fastest Lap = damon hill AND Grand Prix = japanese grand prix
CREATE TABLE INST, Here is a database schema( table schema);
Name the pole position at the japanese grand prix when the fastest lap is damon hill.It is not neccessary to use all the tables.
SELECT 3 (F) FROM table WHERE 2 (F) = tumi khao
CREATE TABLE INST, Here is a database schema( table schema);
If 2F is tumi khao, what is 3F?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = 1996
CREATE TABLE INST, Here is a database schema( table schema);
What is Record, when Date is 1996?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Where does Melbourne play home games?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Category = outstanding director of a musical
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for the Outstanding director of a musical category?.It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_11 WHERE points < 16 AND class = "500cc"
CREATE TABLE INST, Here is a database schema( table schema);
What was the last year that they had less than 16 points in class 500cc?It is not neccessary to use all the tables.
SELECT COUNT(population) FROM table_name_73 WHERE official_name = "durham"
CREATE TABLE INST, Here is a database schema( table schema);
What's the population of durham parish?It is not neccessary to use all the tables.
SELECT date FROM table_name_40 WHERE team = "holden racing team" AND circuit = "eastern creek raceway"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Team is Holden Racing Team and when Circuit is Eastern Creek Raceway?It is not neccessary to use all the tables.
SELECT courtside_reporter FROM table_name_43 WHERE channel = "fsn new england" AND year = "2006-07"
CREATE TABLE INST, Here is a database schema( table schema);
Which Courtside reporter has a Channel of fsn new england in 2006-07?It is not neccessary to use all the tables.
SELECT Id AS "user_link", Reputation, CreationDate AS LastAccessDate FROM Users WHERE (LOWER(DisplayName) = '##name?andrew##') AND (Reputation >= '##min?1##') ORDER BY Reputation DESC LIMIT 100
CREATE TABLE INST, Here is a database schema( table schema);
List of users with the given username (case insensitive).It is not neccessary to use all the tables.
SELECT "Cyrillic Name Other Names" FROM table_27869 WHERE "Population (2011)" = '518'
CREATE TABLE INST, Here is a database schema( table schema);
Name the cyrillic name for 518It is not neccessary to use all the tables.
SELECT year FROM table_name_55 WHERE role = "(cameo)"
CREATE TABLE INST, Here is a database schema( table schema);
In what Year is there a Role of (cameo)?It is not neccessary to use all the tables.
SELECT COUNT Womens singles FROM table WHERE Mens doubles = Rupesh Kumar Sanave Thomas AND Womens doubles = Jwala Gutta Ashwini Ponnappa
CREATE TABLE INST, Here is a database schema( table schema);
How many total titles did Rupesh Kumar Sanave Thomas and Jwala Gutta Ashwini Ponnappa win total?.It is not neccessary to use all the tables.
SELECT week FROM table_name_48 WHERE result = "l 14–9"
CREATE TABLE INST, Here is a database schema( table schema);
What week was the result l 14–9?It is not neccessary to use all the tables.
SELECT result FROM table_name_74 WHERE venue = "suwon world cup stadium , suwon , south korea" AND score = "3–0"
CREATE TABLE INST, Here is a database schema( table schema);
For the venue of suwon world cup stadium , suwon , south korea and a Score of 3 0 what is the result?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Lane = 6
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the country for lane of 6.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT acc_type) FROM customer
CREATE TABLE INST, Here is a database schema( table schema);
How many distinct types of accounts are there?It is not neccessary to use all the tables.
SELECT city FROM table_name_62 WHERE name = "alianza"
CREATE TABLE INST, Here is a database schema( table schema);
Which city is Alianza?It is not neccessary to use all the tables.
SELECT sabaean FROM table_26919_6 WHERE arabic = "sabΚ•-"
CREATE TABLE INST, Here is a database schema( table schema);
Name the sabaean for sabΚ•-It is not neccessary to use all the tables.
SELECT location FROM table_name_99 WHERE team = "belshina"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location for Belshina?It is not neccessary to use all the tables.
SELECT COUNT(date) FROM table_2446333_2 WHERE round = 10
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of date for 10It is not neccessary to use all the tables.
SELECT economy_rate FROM table_19662262_6 WHERE strike_rate = "54.0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the economy when the strike rate is 54.0?It is not neccessary to use all the tables.
SELECT MIN Year FROM table WHERE Title = the angry brigade
CREATE TABLE INST, Here is a database schema( table schema);
Title of the angry brigade involves which lowest year?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_49 WHERE winning_score = –6(73 - 68 - 72 - 69 = 282)
CREATE TABLE INST, Here is a database schema( table schema);
What Tournament had a Winning score of –6 (73-68-72-69=282)?It is not neccessary to use all the tables.
SELECT COUNT Code FROM table WHERE Type = v AND Population > 7,747
CREATE TABLE INST, Here is a database schema( table schema);
When populatioin is greater than 7,747 and the type is V, what is the sum of code?.It is not neccessary to use all the tables.
SELECT directed_by FROM table_25277262_2 WHERE written_by = "Mark Fink"
CREATE TABLE INST, Here is a database schema( table schema);
If the writer is Mark Fink who is the director?It is not neccessary to use all the tables.
SELECT player FROM table_name_41 WHERE year = "1974"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Player in the Int'l Debut of 1974?It is not neccessary to use all the tables.
SELECT "artist(s)" FROM table_204_697 ORDER BY "concert" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which artist has the most concerts ?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Round > 1 AND Opponent = yoshihiro akiyama
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of the match with a round bigger than 1 where the opponent was Yoshihiro Akiyama?.It is not neccessary to use all the tables.
SELECT First match FROM table WHERE Final position / round = third qualifying round
CREATE TABLE INST, Here is a database schema( table schema);
Which first match had a final position/round in the third qualifying round?.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Name = kevin landolt
CREATE TABLE INST, Here is a database schema( table schema);
Which college did kevin landolt attend?.It is not neccessary to use all the tables.
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "1:48.179"
CREATE TABLE INST, Here is a database schema( table schema);
What are the notes for the person ranked larger than 2 and a time of 1:48.179?It is not neccessary to use all the tables.
SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model = T2.model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.id WHERE T3.year > 1980
CREATE TABLE INST, Here is a database schema( table schema);
Which distinct car models are the produced after 1980?It is not neccessary to use all the tables.
SELECT Median household income FROM table WHERE Number of households > 4,527 AND Median family income = $71,009
CREATE TABLE INST, Here is a database schema( table schema);
What is the median household income with 4,527 houses, and a median family income of $71,009?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Country = japan
CREATE TABLE INST, Here is a database schema( table schema);
What is the player from Japan's To Par?.It is not neccessary to use all the tables.
SELECT "date" FROM table_204_495 ORDER BY "attendance" DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which games has the largest amount of people attending ?It is not neccessary to use all the tables.
SELECT nomination FROM table_name_41 WHERE film_name = "peresohla zemlia"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the nomination for peresohla zemliaIt is not neccessary to use all the tables.
SELECT Team FROM table WHERE Points < 1 AND Chassis = zakspeed 871
CREATE TABLE INST, Here is a database schema( table schema);
What Team had less than 1 point with a Zakspeed 871 chassis?.It is not neccessary to use all the tables.
SELECT COUNT(format) FROM table_11222744_2 WHERE title = "Beginning Callanetics"
CREATE TABLE INST, Here is a database schema( table schema);
where title is beginning callanetics what is the total of format ?It is not neccessary to use all the tables.