sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT date FROM table_name_34 WHERE terrain = "plain stage" AND stage = "4"
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Terrain of plain stage and a Stage of 4?It is not neccessary to use all the tables.
SELECT disposition FROM table_1748444_1 WHERE date_built = "March 1909"
CREATE TABLE INST, Here is a database schema( table schema);
Name the disposition for date built is march 1909It is not neccessary to use all the tables.
SELECT opponent FROM table_name_36 WHERE date = "august 8"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent of the game on August 8?It is not neccessary to use all the tables.
SELECT MIN(rank) FROM table_name_74 WHERE nationality = "united states" AND time < 24.63
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest rank of the United States with a time less than 24.63?It is not neccessary to use all the tables.
SELECT report FROM table_name_70 WHERE name = "lyon grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
Name the Report has a Name of lyon grand prix?It is not neccessary to use all the tables.
SELECT Attendance FROM table WHERE Score = L 92–101
CREATE TABLE INST, Here is a database schema( table schema);
what's the attendance where score is l 92–101.It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Rebounds < 130 AND Team = partizan igokea
CREATE TABLE INST, Here is a database schema( table schema);
What rank is Partizan Igokea that has less than 130 rebounds?.It is not neccessary to use all the tables.
SELECT station_type FROM table_2610582_2 WHERE branding = "ABS-CBN TV-32 Tagaytay"
CREATE TABLE INST, Here is a database schema( table schema);
What is the station type for the branding ABS-CBN TV-32 Tagaytay?It is not neccessary to use all the tables.
SELECT Pinyin FROM table WHERE Post Code = 246500
CREATE TABLE INST, Here is a database schema( table schema);
What's the Pinyin name of the county with a postcode 246500?.It is not neccessary to use all the tables.
SELECT Pop. density (per km²) FROM table WHERE Barangay = Tiptip
CREATE TABLE INST, Here is a database schema( table schema);
Name the population density when barangay is tiptip.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_98 WHERE record = "11–49–7"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Visitor in the game with a Record of 11–49–7?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 73-67-74-71=285
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a Score of 73-67-74-71=285?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_32 WHERE record = "16–29"
CREATE TABLE INST, Here is a database schema( table schema);
Record of 16–29 is how many attendance?It is not neccessary to use all the tables.
SELECT written_by FROM table_25830834_2 WHERE production_code = "2J5153"
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode with the production code 2j5153?It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_4 WHERE moving_to = "milan" AND year = 2000
CREATE TABLE INST, Here is a database schema( table schema);
What rank is the transfer for the milan move in 2000?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Score = 69-69=138 AND Country = germany
CREATE TABLE INST, Here is a database schema( table schema);
What was the place in Germany with a score of 69-69=138?.It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Laps < 24 AND Grid < 12 AND Manufacturer = aprilia
CREATE TABLE INST, Here is a database schema( table schema);
Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?.It is not neccessary to use all the tables.
SELECT Starter FROM table WHERE Position = Left end
CREATE TABLE INST, Here is a database schema( table schema);
Name the starter for position being left end.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Score = 71-74-70=215
CREATE TABLE INST, Here is a database schema( table schema);
What is Country, when Score is 71-74-70=215?.It is not neccessary to use all the tables.
SELECT ihsaa_class FROM table_name_69 WHERE enrollment = 395
CREATE TABLE INST, Here is a database schema( table schema);
What is the IHSAA class with 395 in enrollment?It is not neccessary to use all the tables.
SELECT meter_200, SUM(ID) FROM swimmer GROUP BY meter_200 ORDER BY meter_200
CREATE TABLE INST, Here is a database schema( table schema);
Show total number of id from each meter 200, and list by the x axis in ascending.It is not neccessary to use all the tables.
SELECT COUNT Notes FROM table WHERE Date (From) = 14 March 1910
CREATE TABLE INST, Here is a database schema( table schema);
how many notes are form the date (from) 14 march 1910?.It is not neccessary to use all the tables.
SELECT karen_handel FROM table_name_45 WHERE eric_johnson = "13%" AND undecided = "22%"
CREATE TABLE INST, Here is a database schema( table schema);
What percentage is Karen Handel at in the poll in which Eric Johnson is 13% and undecided is 22%?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Storyboarded by = William Reiss AND No. in series = 31
CREATE TABLE INST, Here is a database schema( table schema);
On what date did the episode with a series number 31, with a story written by William Reiss, air for the first time? .It is not neccessary to use all the tables.
SELECT place FROM table_name_8 WHERE country = "united states" AND score = 68 - 73 - 68 = 209
CREATE TABLE INST, Here is a database schema( table schema);
What place is the United States in that has a score of 68-73-68=209?It is not neccessary to use all the tables.
SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality ORDER BY COUNT(Nationality) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Draw a bar chart about the distribution of Nationality and the amount of Nationality , and group by attribute Nationality, and I want to rank by the how many nationality from high to low.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_66 WHERE away_team = "footscray"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for Footscray when they were the away team?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = august 28
CREATE TABLE INST, Here is a database schema( table schema);
Which record has a Date of august 28?.It is not neccessary to use all the tables.
SELECT 1st edition FROM table WHERE Episode = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st Edition for the Episode 4?.It is not neccessary to use all the tables.
SELECT COUNT To par FROM table WHERE Score = 70-75-76=221
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of To Par, when Score is "70-75-76=221"?.It is not neccessary to use all the tables.
SELECT MIN Production code FROM table WHERE Directed by = Michael Morris
CREATE TABLE INST, Here is a database schema( table schema);
What was the production code for the episode directed by Michael Morris?.It is not neccessary to use all the tables.
SELECT postposition FROM table WHERE noun root (meaning) = mshobl- (parent)
CREATE TABLE INST, Here is a database schema( table schema);
What is Postposition, when Noun Root (Meaning) is "mshobl- (parent)"?.It is not neccessary to use all the tables.
SELECT Status FROM table WHERE Party = Democratic AND Elected = 1989
CREATE TABLE INST, Here is a database schema( table schema);
What is the elected status of the Democratic party in 1989?.It is not neccessary to use all the tables.
SELECT date FROM table_1140080_2 WHERE rnd = 1
CREATE TABLE INST, Here is a database schema( table schema);
what's the date with rnd  1It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Participation as = actor, film editor
CREATE TABLE INST, Here is a database schema( table schema);
Participation as of actor, film editor has what average year?.It is not neccessary to use all the tables.
SELECT Jasons team FROM table WHERE First broadcast = 12 June 2009
CREATE TABLE INST, Here is a database schema( table schema);
Who was on Jason's team for the 12 June 2009 episode?.It is not neccessary to use all the tables.
SELECT MAX("Population") FROM table_77207 WHERE "Area km 2" > '326.76' AND "Official Name" = 'new bandon'
CREATE TABLE INST, Here is a database schema( table schema);
What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?It is not neccessary to use all the tables.
SELECT division_west FROM table_name_69 WHERE division_north = "alumina"
CREATE TABLE INST, Here is a database schema( table schema);
Who won Division West when Division North was won by Alumina?It is not neccessary to use all the tables.
SELECT population__2009_estimate_ FROM table_name_11 WHERE largest_city = "manaus"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2009 estimate population of the region with Manaus as the largest city?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Opponent = at new york giants
CREATE TABLE INST, Here is a database schema( table schema);
Opponent of at new york giants had what venue?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM device
CREATE TABLE INST, Here is a database schema( table schema);
Count the number of devices.It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Population = 258
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the town with a population of 258?.It is not neccessary to use all the tables.
SELECT Per capita income FROM table WHERE Median family income = $40,492
CREATE TABLE INST, Here is a database schema( table schema);
What is the per capita income of the county with a median family income of $40,492?.It is not neccessary to use all the tables.
SELECT COUNT(arlenes_vote) FROM table_12305325_4 WHERE craigs_vote = "Brian and Karen"
CREATE TABLE INST, Here is a database schema( table schema);
What was the total of arlenes vote when craig voted for brian and karen?It is not neccessary to use all the tables.
SELECT SUM("Laps") FROM table_70605 WHERE "Grid" = '12'
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of laps for 12 gridsIt is not neccessary to use all the tables.
SELECT Title FROM table WHERE Platform(s) = 3ds AND Director = naohiko aoyama
CREATE TABLE INST, Here is a database schema( table schema);
What 3ds game did Naohiko Aoyama direct?.It is not neccessary to use all the tables.
SELECT year FROM table_name_90 WHERE points < 1.5 AND entrant = "escuderia bandeirantes" AND engine = "maserati straight-4"
CREATE TABLE INST, Here is a database schema( table schema);
What year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a maserati straight-4 engine?It is not neccessary to use all the tables.
SELECT COUNT Stage FROM table WHERE General classification = Rory Sutherland
CREATE TABLE INST, Here is a database schema( table schema);
What stage number had the general classification Rory Sutherland?.It is not neccessary to use all the tables.
SELECT NBA Draft FROM table WHERE College = kansas
CREATE TABLE INST, Here is a database schema( table schema);
What is the NBA draft result of the player from the College of Kansas?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_83 WHERE opponent = "lauren embree"
CREATE TABLE INST, Here is a database schema( table schema);
In which tournament was the opponent Lauren Embree?It is not neccessary to use all the tables.
SELECT MAX ERP W FROM table WHERE Call sign = w255bi
CREATE TABLE INST, Here is a database schema( table schema);
Which ERP W is the highest one that has a Call sign of w255bi?.It is not neccessary to use all the tables.
SELECT COUNT(original_airdate) FROM table_17467578_1 WHERE episode__number = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the original air date of episode 8? Answer: Dec. 21 2006It is not neccessary to use all the tables.
SELECT College FROM table WHERE Round < 2
CREATE TABLE INST, Here is a database schema( table schema);
Which College has a Round smaller than 2?.It is not neccessary to use all the tables.
SELECT "Home" FROM table_39910 WHERE "Score" = '42-64'
CREATE TABLE INST, Here is a database schema( table schema);
What ist he Home with a Score that is 42-64?It is not neccessary to use all the tables.
SELECT SUM Attendance FROM table WHERE Time = 3:23
CREATE TABLE INST, Here is a database schema( table schema);
What was the sum of attendance for games with a time of 3:23?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_49 WHERE week < 9 AND attendance = "61,626"
CREATE TABLE INST, Here is a database schema( table schema);
In the game on or before week 9, who was the opponent when the attendance was 61,626?It is not neccessary to use all the tables.
SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December"
CREATE TABLE INST, Here is a database schema( table schema);
Name the guest 4 for 8 decemberIt is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "89" AND diagnoses.long_title = "Benzodiazepine-based tranquilizers causing adverse effects in therapeutic use"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose age is less than 89 and diagnoses long title is benzodiazepine-based tranquilizers causing adverse effects in therapeutic use?It is not neccessary to use all the tables.
SELECT COUNT Obamacare: Fed/ State/ Partnership FROM table WHERE State = Louisiana
CREATE TABLE INST, Here is a database schema( table schema);
How many times was obamacare: fed/ state/ partnership recorded for Louisiana?.It is not neccessary to use all the tables.
SELECT MIN Overall FROM table WHERE College = hardin-simmons AND Round > 26
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Overall, when College is Hardin-Simmons, and when Round is greater than 26?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "11" AND lab.label = "Potassium"
CREATE TABLE INST, Here is a database schema( table schema);
How many patients who had a potassium lab test stayed in hospital for more than 11 days?It is not neccessary to use all the tables.
SELECT score FROM table_name_57 WHERE home_team = "hereford united"
CREATE TABLE INST, Here is a database schema( table schema);
What was the final score for the match where Hereford United was the home team?It is not neccessary to use all the tables.
SELECT clubs FROM table_27876486_2 WHERE round = "Sixth round proper"
CREATE TABLE INST, Here is a database schema( table schema);
what is the club in the sixth round properIt is not neccessary to use all the tables.
SELECT Violent Crime FROM table WHERE Robbery = 201.4
CREATE TABLE INST, Here is a database schema( table schema);
What was the violent crime rate in the city where the robbery rate was 201.4?.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Date = october 13, 1968 AND Week > 5
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest attendance for October 13, 1968, and is larger than week 5?.It is not neccessary to use all the tables.
SELECT result FROM table_1341604_10 WHERE district = "Florida 7"
CREATE TABLE INST, Here is a database schema( table schema);
what's the result with district being florida 7It is not neccessary to use all the tables.
SELECT COUNT Miss Universe FROM table WHERE Country = South Africa
CREATE TABLE INST, Here is a database schema( table schema);
How many miss universes did south africa have?.It is not neccessary to use all the tables.
SELECT Lyrics (l) / Music (m) FROM table WHERE Draw > 3 AND Results = siste sjansen AND Song = "shuffled"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Lyrics (l) / Music (m) when the draw was more than 3, and the results were Siste Sjansen, and song shows"shuffled"?.It is not neccessary to use all the tables.
SELECT Firefox FROM table WHERE Netscape = *0.77%
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of users were using Firefox during the period in which *0.77% were using Netscape?.It is not neccessary to use all the tables.
SELECT Transfers Out FROM table WHERE Country = peru
CREATE TABLE INST, Here is a database schema( table schema);
What are the Transfers out for Peru?.It is not neccessary to use all the tables.
SELECT wheel_arrangement FROM table_name_5 WHERE builder’s_model = "cf-16-4" AND total_produced = 16
CREATE TABLE INST, Here is a database schema( table schema);
What is the wheel arrangement of cf-16-4 and 16 produced?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Tournament = great britain f16
CREATE TABLE INST, Here is a database schema( table schema);
What was the playing surface for the Tournament of Great Britain F16?.It is not neccessary to use all the tables.
SELECT time FROM table_name_68 WHERE set_3 = "24–26" AND score = "0–3"
CREATE TABLE INST, Here is a database schema( table schema);
Which Time has a Set 3 of 24–26 and a Score of 0–3?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 14.12 (96)
CREATE TABLE INST, Here is a database schema( table schema);
On what date did the home team score 14.12 (96)?.It is not neccessary to use all the tables.
SELECT polling_firm FROM table_name_96 WHERE link = "html" AND liberal < 36 AND green < 8 AND date_of_polling = "september 26–28, 2011"
CREATE TABLE INST, Here is a database schema( table schema);
Which september 26–28 2011 polling firm had a Link of html less than 36 liberals and less than 8 green?It is not neccessary to use all the tables.
SELECT location FROM table_name_19 WHERE method = "submission (armbar)" AND opponent = "mayra conde"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of the match where the method was submission (armbar) and Mayra Conde was the opponent?It is not neccessary to use all the tables.
SELECT SUM(score) FROM table_name_63 WHERE event = "27 arrow match"
CREATE TABLE INST, Here is a database schema( table schema);
For the 27 arrow match event what's the sum of all scores for that event?It is not neccessary to use all the tables.
SELECT rank FROM table_name_43 WHERE nationality = "poland" AND time = "1:50.12"
CREATE TABLE INST, Here is a database schema( table schema);
What rank did Poland receive with a time of 1:50.12?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = "did not place" AND delegate = "daisy garcia reyes"
CREATE TABLE INST, Here is a database schema( table schema);
What's the latest year that daisy garcia reyes did not place in miss world?It is not neccessary to use all the tables.
SELECT MAX(money__) AS $_ FROM table_name_33 WHERE round_1 = "71"
CREATE TABLE INST, Here is a database schema( table schema);
Round 1 of 71 has how many highest money?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_58 WHERE rounds = "5"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Constructor for round 5?It is not neccessary to use all the tables.
SELECT country FROM table_name_33 WHERE player = "curtis strange"
CREATE TABLE INST, Here is a database schema( table schema);
What is the country of player curtis strange?It is not neccessary to use all the tables.
SELECT MAX(date) FROM table_name_77 WHERE score_in_the_final = "1–6, 4–6, 5–7"
CREATE TABLE INST, Here is a database schema( table schema);
What is the most recent date for a singles final with the score of 1–6 4–6 5–7?It is not neccessary to use all the tables.
SELECT type FROM table_2562572_33 WHERE cyrillic_name_other_names = "Ором (Hungarian: Orom)"
CREATE TABLE INST, Here is a database schema( table schema);
What type of settlement is ором (hungarian: orom)?It is not neccessary to use all the tables.
SELECT Purpose FROM table WHERE Area served = braidwood
CREATE TABLE INST, Here is a database schema( table schema);
What is the Purpose of the Area Braidwood?.It is not neccessary to use all the tables.
SELECT date, zip_code FROM weather WHERE max_temperature_f >= 80
CREATE TABLE INST, Here is a database schema( table schema);
What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'NEWARK' AND date_day.day_number = 21 AND date_day.month_number = 2 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
what flights from PITTSBURGH to NEWARK on mondayIt is not neccessary to use all the tables.
SELECT MIN("Avg. Finish") FROM table_42781 WHERE "Top 5" < '0'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest average finish having top 5s of 0?It is not neccessary to use all the tables.
SELECT COUNT(location) FROM table_1301373_1 WHERE team = "Newcastle Jets"
CREATE TABLE INST, Here is a database schema( table schema);
How many locations does the team Newcastle Jets come from?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 18.9 (117)
CREATE TABLE INST, Here is a database schema( table schema);
Which venue has an Away team score of 18.9 (117)?.It is not neccessary to use all the tables.
SELECT semi_finalist__number1 FROM table_11214772_1 WHERE runner_up = "Elon University"
CREATE TABLE INST, Here is a database schema( table schema);
who is the semi-finalist #1 where runner-up is elon universityIt is not neccessary to use all the tables.
SELECT "Date" FROM table_5550 WHERE "Opponent" = 'alena tarasova'
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the tournament with Alena Tarasova as the opponent?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Attendance = 7,891
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when the attendance was 7,891?.It is not neccessary to use all the tables.
SELECT apogee FROM table_name_5 WHERE date = "1959-02-20"
CREATE TABLE INST, Here is a database schema( table schema);
Which Apogee was on 1959-02-20?It is not neccessary to use all the tables.
SELECT opponent FROM table_21063459_1 WHERE result = "Loss"
CREATE TABLE INST, Here is a database schema( table schema);
Who did the team play against in the game that resulted with a loss?It is not neccessary to use all the tables.
SELECT "Score" FROM table_1548 WHERE "Opponent" = 'Philadelphia Flyers'
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for philadelphia flyersIt is not neccessary to use all the tables.
SELECT MAX(top_5) FROM table_name_61 WHERE events > 18 AND top_25 = 23
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Top-5 that has 18 or more events with a Top-25 of 23?It is not neccessary to use all the tables.
SELECT MAX Purse( $ ) FROM table WHERE Location = illinois
CREATE TABLE INST, Here is a database schema( table schema);
what was the purse ($) in illinois?.It is not neccessary to use all the tables.
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID DESC
CREATE TABLE INST, Here is a database schema( table schema);
For all employees who have the letters D or S in their first name, give me the comparison about the sum of employee_id over the job_id , and group by attribute job_id by a bar chart, I want to show X in desc order.It is not neccessary to use all the tables.
SELECT year FROM table_name_75 WHERE position = "6/13"
CREATE TABLE INST, Here is a database schema( table schema);
What year was the position 6/13?It is not neccessary to use all the tables.