sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Rank FROM table WHERE 2009 Revenue = $296,000,000
CREATE TABLE INST, Here is a database schema( table schema);
Which rank has a 2009 revenue of $296,000,000?.It is not neccessary to use all the tables.
SELECT AVG(age), job FROM person GROUP BY job
CREATE TABLE INST, Here is a database schema( table schema);
What is average age for different job title?It is not neccessary to use all the tables.
SELECT COUNT Age FROM table WHERE SP = 200/1
CREATE TABLE INST, Here is a database schema( table schema);
How old was the horse when the SP was 200/1?.It is not neccessary to use all the tables.
SELECT COUNT("Last Runners-up") FROM table_34401 WHERE "Last Win" = '1999' AND "Runners-up" > '1'
CREATE TABLE INST, Here is a database schema( table schema);
What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?It is not neccessary to use all the tables.
SELECT AVG(T1.age), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name
CREATE TABLE INST, Here is a database schema( table schema);
Find the average age of students living in each dorm and the name of dorm.It is not neccessary to use all the tables.
SELECT SUM(shot__percentage) FROM table_name_72 WHERE country = "finland" AND ends_lost > 49
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum shot % when the country is finland and an ends lost is larger than 49?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_73 WHERE college_junior_club_team__league_ = "guelph storm ( ohl )"
CREATE TABLE INST, Here is a database schema( table schema);
What is Nationality when College/Junior/Club Team (League) is "Guelph Storm ( OHL )"?It is not neccessary to use all the tables.
SELECT Australian FROM table WHERE Examples = elysium, emeritus, epitome, erotica
CREATE TABLE INST, Here is a database schema( table schema);
What is Australian, when Examples is "elysium, emeritus, epitome, erotica"?.It is not neccessary to use all the tables.
SELECT COUNT("Game") FROM table_29787 WHERE "Date" = 'March 12'
CREATE TABLE INST, Here is a database schema( table schema);
How many games were held on March 12?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Venue = nikos goumas stadium AND Score = 2–2 4–4 a.e.t. 6–5 pso
CREATE TABLE INST, Here is a database schema( table schema);
when is the venue nikos goumas stadium and the score is 2–2 4–4 a.e.t. 6–5 pso?.It is not neccessary to use all the tables.
SELECT cfl_team FROM table_10975034_5 WHERE position = "OL"
CREATE TABLE INST, Here is a database schema( table schema);
What is the cfl team that has a position of ol?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Nationality = finland
CREATE TABLE INST, Here is a database schema( table schema);
What position does the draft pick from Finland play?.It is not neccessary to use all the tables.
SELECT Ground FROM table WHERE Away team = Richmond
CREATE TABLE INST, Here is a database schema( table schema);
When Richmond played as the away team, what was the ground?.It is not neccessary to use all the tables.
SELECT Overall Record FROM table WHERE Week = 3
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Overall Record that has the Week of 3?.It is not neccessary to use all the tables.
SELECT school FROM table_11677691_2 WHERE college = "South Carolina"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?It is not neccessary to use all the tables.
SELECT Circuit FROM table WHERE Class = both AND Date = june 1
CREATE TABLE INST, Here is a database schema( table schema);
What circuit was on June 1 with a class of both?.It is not neccessary to use all the tables.
SELECT School/Club Team FROM table WHERE Player = mark eaton
CREATE TABLE INST, Here is a database schema( table schema);
Who did mark eaton play for?.It is not neccessary to use all the tables.
SELECT Assists FROM table WHERE Team = florida AND Total Points = 75
CREATE TABLE INST, Here is a database schema( table schema);
What is the assists for the Team of Florida and the total points of 75?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_61 WHERE record = "82-68"
CREATE TABLE INST, Here is a database schema( table schema);
What opponnent has a record of 82-68?It is not neccessary to use all the tables.
SELECT demographic.marital_status, demographic.dob FROM demographic WHERE demographic.name = "Jerry Deberry"
CREATE TABLE INST, Here is a database schema( table schema);
what is marital status and date of birth of subject name jerry deberry?It is not neccessary to use all the tables.
SELECT 1982 FROM table WHERE 1978 = a AND 1985 = 4r AND 1991 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
What is 1982, when 1978 is "A", when 1985 is "4R", and when 1991 is "1R"?.It is not neccessary to use all the tables.
SELECT "team" FROM table_204_735 WHERE "time" > (SELECT "time" FROM table_204_735 WHERE "team" = 'chile')
CREATE TABLE INST, Here is a database schema( table schema);
which is the only team that chile was faster than in cycling at the 1996 summer olympics men 's team pursuit ?It is not neccessary to use all the tables.
SELECT COUNT(date_of_opinion_poll) FROM table_20683381_2 WHERE undecided = "25%"
CREATE TABLE INST, Here is a database schema( table schema);
How many polls taken on different dates show an undecided percentage of 25%?It is not neccessary to use all the tables.
SELECT MIN("INT'S") FROM table_37005 WHERE "Average" > '25'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest value of INT's with an average more than 25?It is not neccessary to use all the tables.
SELECT high_assists FROM table_27700375_8 WHERE team = "@ Indiana"
CREATE TABLE INST, Here is a database schema( table schema);
Who got high assists for team @ Indiana?It is not neccessary to use all the tables.
SELECT COUNT Qiangshu FROM table WHERE Rank < 10 AND Total = 18.97 AND Jianshu > 9.51
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of Qiangshu when rank is less than 10, with a total of 18.97, and Jianshu is larger than 9.51?.It is not neccessary to use all the tables.
SELECT MAX(pick) FROM table_name_82 WHERE round = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest pick in round 8?It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Which total number of Crowd has a Home team of melbourne?.It is not neccessary to use all the tables.
SELECT tries_for FROM table_name_35 WHERE try_bonus = "6" AND tries_against = "41" AND points_against = "317"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tries when tries against were 41 try bonus was 6 and had 317 points.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Rank-Final = 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location of the Competition with a Rank-Final of 10?.It is not neccessary to use all the tables.
SELECT AVG Crowd FROM table WHERE Away team = carlton
CREATE TABLE INST, Here is a database schema( table schema);
What is the average crowd for Carlton?.It is not neccessary to use all the tables.
SELECT time FROM table_name_4 WHERE away_team = "shatin"
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for the match with away team Shatin?It is not neccessary to use all the tables.
SELECT "Lost" FROM table_76848 WHERE "Club" = 'barry rfc'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lost when the club was Barry RFC?It is not neccessary to use all the tables.
SELECT name FROM table_name_95 WHERE pos = "d" AND club = "circolo nautico posillipo"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player from club Circolo Nautico Posillipo and a position of D?It is not neccessary to use all the tables.
SELECT team FROM table_name_86 WHERE high_rebounds = "popeye jones (14)" AND record = "16-28"
CREATE TABLE INST, Here is a database schema( table schema);
What was the team that has a High rebounds of popeye jones (14) and when the Record was 16-28?It 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "42831" AND lab.fluid = "Other Body Fluid"
CREATE TABLE INST, Here is a database schema( table schema);
give me the number of patients whose diagnoses icd9 code is 42831 and lab test fluid is other body fluid?It is not neccessary to use all the tables.
SELECT Who knows the most about the guest host? panelists FROM table WHERE Guest Host = Jamie Oliver
CREATE TABLE INST, Here is a database schema( table schema);
Name the panelists for guest host jamie oliver.It is not neccessary to use all the tables.
SELECT date FROM table_name_28 WHERE week = 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the date for week 15?It is not neccessary to use all the tables.
SELECT opponent_in_the_final FROM table_name_91 WHERE tournament = "kuwait"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent during the tournament in Kuwait?It is not neccessary to use all the tables.
SELECT pos FROM table_name_57 WHERE school_country = "arkansas"
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player from arkansas play?It is not neccessary to use all the tables.
SELECT player FROM table_name_3 WHERE country = "united states" AND place = "t3"
CREATE TABLE INST, Here is a database schema( table schema);
Which United States player has a place of T3?It is not neccessary to use all the tables.
SELECT date FROM table_name_77 WHERE loser = "new york giants" AND result = "23-17"
CREATE TABLE INST, Here is a database schema( table schema);
Which date had a loser of New York Giants and a result of 23-17?It is not neccessary to use all the tables.
SELECT round_of_16 FROM table_17289604_38 WHERE round_of_32 = "Koryttseva ( UKR ) W 2–6, 6–1, 7–5"
CREATE TABLE INST, Here is a database schema( table schema);
What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2–6 6–1 7–5?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Home Run = 27
CREATE TABLE INST, Here is a database schema( table schema);
Which team has a Home Run of 27?.It is not neccessary to use all the tables.
SELECT MAX Points FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest value for points?.It is not neccessary to use all the tables.
SELECT * FROM Posts WHERE OwnerUserId = '##UserId##'
CREATE TABLE INST, Here is a database schema( table schema);
Dump Project Management Stack Exchange (PMSE) Posts.It is not neccessary to use all the tables.
SELECT original_album FROM table_name_23 WHERE time = "3:39"
CREATE TABLE INST, Here is a database schema( table schema);
What is Original Album when Time is "3:39"?It is not neccessary to use all the tables.
SELECT years_available FROM table_2889300_6 WHERE kickdrum_pad = "Rubber"
CREATE TABLE INST, Here is a database schema( table schema);
in which year was available the rubber as kickdrum padIt is not neccessary to use all the tables.
SELECT Owner FROM table WHERE Year > 1985 AND Winner = give a toast
CREATE TABLE INST, Here is a database schema( table schema);
Who was the owner of Give a Toast after 1985?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Decision = raycroft AND Attendance > 18,277 AND Date = february 11
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the decision was Raycroft, with attendance larger than 18,277, on February 11?.It is not neccessary to use all the tables.
SELECT MIN(1 AS st_runner_up) FROM table_30007801_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest 1st runner up value?It is not neccessary to use all the tables.
SELECT MIN Bronze FROM table WHERE Rank = 12 AND Silver < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest bronze with a Rank of 12, and a Silver smaller than 2?.It is not neccessary to use all the tables.
SELECT first_name, last_name, salary 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 WHERE T3.city = 'London'
CREATE TABLE INST, Here is a database schema( table schema);
display the full name (first and last name), and salary of those employees who working in any department located in London.It is not neccessary to use all the tables.
SELECT COUNT Date FROM table WHERE Opponent = Alouettes
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of dates for alouettes.It is not neccessary to use all the tables.
SELECT party FROM table_1341577_14 WHERE incumbent = "Cardiss Collins"
CREATE TABLE INST, Here is a database schema( table schema);
To what party does Cardiss Collins belong?It is not neccessary to use all the tables.
SELECT team_2 FROM table_name_86 WHERE score = "2 - 1"
CREATE TABLE INST, Here is a database schema( table schema);
What is Team 2 when Score is 2 - 1?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE U.S. viewers (million) = 2.67
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode that was watched by 2.67 million U.S. viewers?.It is not neccessary to use all the tables.
SELECT 2006-07 FROM table WHERE 2005-06 = 2,601
CREATE TABLE INST, Here is a database schema( table schema);
What was the production in 2006-07 for the commodity that produced 2,601 in 2005-06?.It is not neccessary to use all the tables.
SELECT region FROM table_name_97 WHERE altitude__metres_ = 6854
CREATE TABLE INST, Here is a database schema( table schema);
Say the region for 6854 altitudesIt is not neccessary to use all the tables.
SELECT sprint_points FROM table_name_27 WHERE total_points = "2"
CREATE TABLE INST, Here is a database schema( table schema);
How many sprint points contribute to 2 total points?It is not neccessary to use all the tables.
SELECT COUNT High assists FROM table WHERE Team = Caja Laboral
CREATE TABLE INST, Here is a database schema( table schema);
How many high assists where there for the team of caja laboral?.It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_76 WHERE notes = "q, pb" AND time___sec__ = 11.15 AND lane > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank when time is 11.15 and lane is bigger than 7 with notes Q PB?It is not neccessary to use all the tables.
SELECT player FROM table_name_7 WHERE bowling_style = "source:"
CREATE TABLE INST, Here is a database schema( table schema);
Who has a bowling style of source:?It is not neccessary to use all the tables.
SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint'
CREATE TABLE INST, Here is a database schema( table schema);
What are the result description of the project whose detail is 'sint'?It is not neccessary to use all the tables.
SELECT advisor FROM Student GROUP BY advisor HAVING COUNT(*) >= 2
CREATE TABLE INST, Here is a database schema( table schema);
Show all advisors who have at least two students.It is not neccessary to use all the tables.
SELECT COUNT First elected FROM table WHERE Incumbent = Claude Fuller
CREATE TABLE INST, Here is a database schema( table schema);
How many first elections have Claude Fuller as incumbent?.It is not neccessary to use all the tables.
SELECT COUNT Goals scored FROM table WHERE Draws > 3 AND Loses > 1 AND Points < 26
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of goals scored of the club with more than 3 draws, more than 1 loses, and less than 26 points?.It is not neccessary to use all the tables.
SELECT place_of_birth FROM table_name_65 WHERE elevator = "lucius iii" AND cardinalatial_title = "deacon of s. giorgio in velabro"
CREATE TABLE INST, Here is a database schema( table schema);
What is the birth place for someone elevated by Lucius III and has the Cardinalatial title of Deacon of S. Giorgio in Velabro?It is not neccessary to use all the tables.
SELECT january_15_16 FROM table_25284864_3 WHERE november_3 = "november_3, 2013"
CREATE TABLE INST, Here is a database schema( table schema);
What January 15-16 is is that corresponds to November 3 2013?It is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Player = Kelly Tripucka
CREATE TABLE INST, Here is a database schema( table schema);
What is the nationality of the player named Kelly Tripucka?.It is not neccessary to use all the tables.
SELECT Rider FROM table WHERE Speed = 120.953 mph
CREATE TABLE INST, Here is a database schema( table schema);
Who was the rider with 120.953 mph speed?.It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE Original air date = November 27, 1988
CREATE TABLE INST, Here is a database schema( table schema);
Name the production code for november 27, 1988.It is not neccessary to use all the tables.
SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
CREATE TABLE INST, Here is a database schema( table schema);
Find the dates of orders which belong to the customer named "Jeramie".It is not neccessary to use all the tables.
SELECT gold FROM table_name_58 WHERE bronze = 1 AND silver > 0
CREATE TABLE INST, Here is a database schema( table schema);
Who ha the gold and 1 bronze and more than 0 silver?It is not neccessary to use all the tables.
SELECT number FROM table_name_22 WHERE name = "tony dixon"
CREATE TABLE INST, Here is a database schema( table schema);
What number is Tony Dixon?It is not neccessary to use all the tables.
SELECT MIN(no_in_season) FROM table_2226817_6 WHERE no_in_series = 84
CREATE TABLE INST, Here is a database schema( table schema);
What's the season number of the episode with series number 84?It is not neccessary to use all the tables.
SELECT host_team FROM table_name_48 WHERE date = "november 17"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the host team on November 17?It is not neccessary to use all the tables.
SELECT network FROM table_10716893_3 WHERE lap_by_lap = "Marty Reid" AND host = "Marty Reid"
CREATE TABLE INST, Here is a database schema( table schema);
Which network has Marty Reid as host and lap-by-lap broadcaster?It is not neccessary to use all the tables.
SELECT Song FROM table WHERE Weeks on Top = 1 AND Volume:Issue = 29:8
CREATE TABLE INST, Here is a database schema( table schema);
Which song was 1 week on top and had a volume:issue of 29:8?.It is not neccessary to use all the tables.
SELECT timeslot FROM table_19188562_2 WHERE rating__adults_18_49_ = "0.6"
CREATE TABLE INST, Here is a database schema( table schema);
What time slot had an adult rating of 0.6?It is not neccessary to use all the tables.
SELECT Roman equivalent FROM table WHERE "Normalised" transliteration = i
CREATE TABLE INST, Here is a database schema( table schema);
What is the Roman translation with "Normalised" transliteration i.It is not neccessary to use all the tables.
SELECT opponent_in_the_final FROM table_22839669_1 WHERE score_in_the_final = "3–6, 4–6, 7–5, 4–6"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent in the match with final score 3–6 4–6 7–5 4–6?It is not neccessary to use all the tables.
SELECT cyl FROM table_name_1 WHERE engine = "2.3 16v"
CREATE TABLE INST, Here is a database schema( table schema);
Engine 2.3 16v has how many cylinders?It is not neccessary to use all the tables.
SELECT Population (2011) FROM table WHERE Settlement = Pavliš
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2011 population of pavliš?.It is not neccessary to use all the tables.
SELECT MAX Field goals FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the most field goals.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Country = united states AND Place = 6
CREATE TABLE INST, Here is a database schema( table schema);
What is Player, when Country is "United States", and when Place is "6"?.It is not neccessary to use all the tables.
SELECT fencing FROM table_12407546_1 WHERE running = "9:40.31 (1080 pts)"
CREATE TABLE INST, Here is a database schema( table schema);
What's the fencing score of the player with 9:40.31 (1080 pts) in running?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_62 WHERE attendance = 41 OFFSET 604
CREATE TABLE INST, Here is a database schema( table schema);
what is the week there were 41604 people in attendance?It is not neccessary to use all the tables.
SELECT nation FROM table_name_95 WHERE uci_protour_points = 25
CREATE TABLE INST, Here is a database schema( table schema);
What nation is the cyclist hat has a UCI ProTour Points of 25?It is not neccessary to use all the tables.
SELECT AVG(International_Passengers) FROM airport
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of international passengers of all airports?It is not neccessary to use all the tables.
SELECT COUNT Gold FROM table WHERE Silver > 15 AND Nation = iceland
CREATE TABLE INST, Here is a database schema( table schema);
How many golds were there for Iceland with more than 15 silver?.It is not neccessary to use all the tables.
SELECT MAX Q1 order FROM table WHERE Driver = Felipe Massa
CREATE TABLE INST, Here is a database schema( table schema);
What is the Q1 order for Felipe Massa?.It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Date = March 7
CREATE TABLE INST, Here is a database schema( table schema);
Name the high points for march 7.It is not neccessary to use all the tables.
SELECT average FROM table_name_3 WHERE rank = "2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average that has 2 for the rank?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_89 WHERE tie_no = 1
CREATE TABLE INST, Here is a database schema( table schema);
How many were in Attendance during a Tie no of 1?It is not neccessary to use all the tables.
SELECT Segment B FROM table WHERE Segment D = s Hammock
CREATE TABLE INST, Here is a database schema( table schema);
What is the Segment B when the Segment D is s Hammock?.It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Round = 1 AND Time = 1:58
CREATE TABLE INST, Here is a database schema( table schema);
What is the method of the match with 1 round and a time of 1:58?.It is not neccessary to use all the tables.
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_n...
CREATE TABLE INST, Here is a database schema( table schema);
what is the fare from PHILADELPHIA to PITTSBURGH BUSINESS class one wayIt is not neccessary to use all the tables.
SELECT water_depth FROM table_name_87 WHERE location = "gulf of mexico" AND name = "discoverer clear leader"
CREATE TABLE INST, Here is a database schema( table schema);
What was the water depth in the Gulf of Mexico named Discoverer Clear Leader?It is not neccessary to use all the tables.
SELECT Supercopa Sudamericana 1992 FROM table WHERE Team = santos
CREATE TABLE INST, Here is a database schema( table schema);
Which Supercopa Sudamericana 1992 has a Team of santos?.It is not neccessary to use all the tables.