sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT result FROM table_name_36 WHERE date = "november 25, 1973"
CREATE TABLE INST, Here is a database schema( table schema);
What were the results for november 25 1973?It is not neccessary to use all the tables.
SELECT surface FROM table_name_14 WHERE partner = "natalia gussoni"
CREATE TABLE INST, Here is a database schema( table schema);
What surface has natalia gussoni as the partner?It is not neccessary to use all the tables.
SELECT studio_s_ FROM table_name_89 WHERE movie = "ra.one"
CREATE TABLE INST, Here is a database schema( table schema);
What is the studio of ra.one?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_96 WHERE game > 4
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance for the game after game 4?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_19 WHERE field = "bishop kearney field"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent at Bishop Kearney Field?It is not neccessary to use all the tables.
SELECT language FROM table_name_87 WHERE genre = "movies" AND service = "sky" AND network = "ump movies"
CREATE TABLE INST, Here is a database schema( table schema);
What language is the moviein that is on UMP movies network through Sky service?It is not neccessary to use all the tables.
SELECT nationality FROM table_name_65 WHERE goals = 33
CREATE TABLE INST, Here is a database schema( table schema);
What was the nationality for the player with 33 goals?It is not neccessary to use all the tables.
SELECT Score, Text, PostId AS "post_link" FROM Comments WHERE UserId = '##UserId:int##' ORDER BY Score DESC
CREATE TABLE INST, Here is a database schema( table schema);
User's comments ordered by score.It is not neccessary to use all the tables.
SELECT Mens Singles FROM table WHERE Womens Singles = Yoshie Takada
CREATE TABLE INST, Here is a database schema( table schema);
Who won in the men singles group in the year when Yoshie Takada won in the women singles?.It is not neccessary to use all the tables.
SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'COMP' AND COURSE_0.number = 239 AND COURSE_1.course_id = course_prerequisite.course_id
CREATE TABLE INST, Here is a database schema( table schema);
COMP 239 is a have-to for what classes ?It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE Engine = cosworth v8 AND Chassis = hesketh 308e
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Position = 1st AND Venue = paris
CREATE TABLE INST, Here is a database schema( table schema);
what is the year that the position was 1st in paris?.It is not neccessary to use all the tables.
SELECT COUNT Track no. FROM table WHERE Track = Song 2
CREATE TABLE INST, Here is a database schema( table schema);
How many track numbers were called song 2?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_90 WHERE winner = "marie-laure taya"
CREATE TABLE INST, Here is a database schema( table schema);
where did marie-laure taya win?It is not neccessary to use all the tables.
SELECT b_52_model FROM table_18933037_3 WHERE unit = "7th BW attached to 43rd SW"
CREATE TABLE INST, Here is a database schema( table schema);
When 7th bw attached to 43rd sw is the unit what is the b-52 model?It is not neccessary to use all the tables.
SELECT Road Team FROM table WHERE Result = 118-112
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Road Team for the game ending with a score of 118-112?.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Player = keith shologan
CREATE TABLE INST, Here is a database schema( table schema);
What college did Keith Shologan play for?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Opponent = john flemming
CREATE TABLE INST, Here is a database schema( table schema);
Which record has john flemming as the opponent?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 0-1
CREATE TABLE INST, Here is a database schema( table schema);
What was the Score of the game with a Record of 0-1?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_34 WHERE country = "peru" AND total > 3
CREATE TABLE INST, Here is a database schema( table schema);
What rank was Peru with a total greater than 3?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_16 WHERE opponent = "fernando verdasco"
CREATE TABLE INST, Here is a database schema( table schema);
Which outcome has a Opponent of fernando verdasco?It is not neccessary to use all the tables.
SELECT Year(s) FROM table WHERE City = kunming
CREATE TABLE INST, Here is a database schema( table schema);
what is the year(s) when the city is kunming?.It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_38 WHERE remixed_by = "laurent boutonnat"
CREATE TABLE INST, Here is a database schema( table schema);
What the highest Year with a Remixed by Laurent Boutonnat?It is not neccessary to use all the tables.
SELECT Operating_system, COUNT(*) FROM web_client_accelerator GROUP BY Operating_system
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of web accelerators used for each Operating system.It is not neccessary to use all the tables.
SELECT SUM Runs FROM table WHERE Batting partners = mahela jayawardene and thilan samaraweera
CREATE TABLE INST, Here is a database schema( table schema);
How many runs did mahela jayawardene and thilan samaraweera have?.It is not neccessary to use all the tables.
SELECT Memory Type FROM table WHERE Form factor = 15.4" AND Model = precision m65
CREATE TABLE INST, Here is a database schema( table schema);
What is the memory type with a form factor of 15.4", and a Model of precision m65?.It is not neccessary to use all the tables.
SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = "Margaret Ann Awitan Bayot"
CREATE TABLE INST, Here is a database schema( table schema);
How many pageants were margaret ann awitan bayot the delegate of?It is not neccessary to use all the tables.
SELECT race_caller FROM table_22583466_3 WHERE year = 1998
CREATE TABLE INST, Here is a database schema( table schema);
Who called the race in 1998?It is not neccessary to use all the tables.
SELECT type FROM table_name_69 WHERE moving_from = "gimnàstic"
CREATE TABLE INST, Here is a database schema( table schema);
What is the type when they move from Gimnàstic?It is not neccessary to use all the tables.
SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance for the game on August 16?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
How much did the home team st kilda score?.It is not neccessary to use all the tables.
SELECT division FROM table_1046170_5 WHERE us_open_cup = "Did Not Qualify" AND year = 2003
CREATE TABLE INST, Here is a database schema( table schema);
how many division did not qualify for u.s. open cup in 2003It is not neccessary to use all the tables.
SELECT Name FROM technician ORDER BY Age
CREATE TABLE INST, Here is a database schema( table schema);
List the names of technicians in ascending order of age.It is not neccessary to use all the tables.
SELECT MAX Year FROM table WHERE French Open = rafael nadal AND Wimbledon = roger federer AND Australian Open = roger federer
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest year rafael nadal was in the French Open, Roger Federer was in Wimbledon, and Roger Federer was in the Australian Open?.It is not neccessary to use all the tables.
SELECT AVG Wins FROM table WHERE Rank > 3 AND Earnings( $ ) > 9,735,814
CREATE TABLE INST, Here is a database schema( table schema);
What is the average wins with a rank over 3 and more earnings than $9,735,814?.It is not neccessary to use all the tables.
SELECT Speed FROM table WHERE Construction begun = 2010 AND Expected start of revenue services = 2015
CREATE TABLE INST, Here is a database schema( table schema);
What is the Speed when Construction begun in 2010, and an Expected start of revenue services of 2015?.It is not neccessary to use all the tables.
SELECT right_ascension___j2000__ FROM table_name_72 WHERE ngc_number < 6575 AND declination___j2000__ = "°38′00″"
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the right ascension which has an NGC less than 6575 and declination of °38′00″It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Original air date = March 2, 1997
CREATE TABLE INST, Here is a database schema( table schema);
what is the name of the episode whose premiere was in march 2, 1997?.It is not neccessary to use all the tables.
SELECT result FROM table_name_46 WHERE opponent = "pat lawlor"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the match against Pat Lawlor?It is not neccessary to use all the tables.
SELECT weight_ & _height FROM table_name_65 WHERE player = "michael worrincy"
CREATE TABLE INST, Here is a database schema( table schema);
Which Weight & Height has a Player of michael worrincy?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Goals = h.paul 8/9
CREATE TABLE INST, Here is a database schema( table schema);
Which venue has h.paul 8/9 goals?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = january 31
CREATE TABLE INST, Here is a database schema( table schema);
Which Record has a Date of january 31?.It is not neccessary to use all the tables.
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_singles = "Lindaweni Fanetri"
CREATE TABLE INST, Here is a database schema( table schema);
When the girls singles is lindaweni fanetri what is the mixed doubled?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_name_56 WHERE game_site = "riverfront stadium"
CREATE TABLE INST, Here is a database schema( table schema);
What's the Lowest Attendance with a Game site of Riverfront Stadium?It is not neccessary to use all the tables.
SELECT share_of_votes FROM table_name_44 WHERE election = 2008
CREATE TABLE INST, Here is a database schema( table schema);
What is the share of votes in the 2008 election?It is not neccessary to use all the tables.
SELECT 8:00 FROM table WHERE 9:00 = grey's anatomy AND 8:30 = ugly betty
CREATE TABLE INST, Here is a database schema( table schema);
What played at 8:00 when Grey's Anatomy played at 9:00 and Ugly Betty played at 8:30?.It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE Original airdate = march 1, 1998
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode that originally aired on March 1, 1998?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
Where does Geelong play their home game?.It is not neccessary to use all the tables.
SELECT COUNT(pick__number) FROM table_name_32 WHERE player = "anton rodin" AND reg_gp > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total pick# played by Anton Rodin with a Reg GP over 0?It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Small Silver > 9 AND Club = aik AND Bronze > 8
CREATE TABLE INST, Here is a database schema( table schema);
Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Competition = world indoor championships AND Year > 2008
CREATE TABLE INST, Here is a database schema( table schema);
Which position was the World Indoor Championships in a year later than 2008?.It is not neccessary to use all the tables.
SELECT Position in table FROM table WHERE Date of vacancy = 16 February 2009
CREATE TABLE INST, Here is a database schema( table schema);
Which vacancy occurred on 16 February 2009?.It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Country = poland
CREATE TABLE INST, Here is a database schema( table schema);
What director is from Poland?.It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE High assists = ben gordon (8)
CREATE TABLE INST, Here is a database schema( table schema);
Where did Ben Gordon (8) have the high assists?.It is not neccessary to use all the tables.
SELECT college_junior_club_team FROM table_2897457_3 WHERE player = "Jim Mathieson"
CREATE TABLE INST, Here is a database schema( table schema);
Which college/junior/club team has jim mathieson as the player?It is not neccessary to use all the tables.
SELECT First cap FROM table WHERE Goals < 33 AND Caps = 39
CREATE TABLE INST, Here is a database schema( table schema);
When was the first cap associated with 39 caps and under 33 goals?.It is not neccessary to use all the tables.
SELECT College/Junior/Club Team (League) FROM table WHERE Player = brendan locke
CREATE TABLE INST, Here is a database schema( table schema);
What is Brendan Locke's College/Junior/Club Team (League)?.It is not neccessary to use all the tables.
SELECT Wednesday FROM table WHERE Friday = 307 VS.
CREATE TABLE INST, Here is a database schema( table schema);
which episode was Transmitted on wednesday if the episode of "307 vs." was transmitted on friday? .It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Tie no = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Tie no is "3"?.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_33 WHERE category = "1" AND stage = 12
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest year for stage 12 category 1?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Race Name = Trenton 300
CREATE TABLE INST, Here is a database schema( table schema);
Name the location for trenton 300.It is not neccessary to use all the tables.
SELECT Yards FROM table WHERE Completion % = 64.9%
CREATE TABLE INST, Here is a database schema( table schema);
Which yard has a Completion of 64.9%?.It is not neccessary to use all the tables.
SELECT score FROM table_name_2 WHERE record = "5–4–3"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score of the game with a Record of 5–4–3?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Pick < 25 AND School = university of california
CREATE TABLE INST, Here is a database schema( table schema);
What position has a pick less than 25 for the university of california?.It is not neccessary to use all the tables.
SELECT Ranking FROM table WHERE Season finale = may 15, 2011
CREATE TABLE INST, Here is a database schema( table schema);
What was the ranking of the season whose finale aired on May 15, 2011?.It is not neccessary to use all the tables.
SELECT College/junior/club team FROM table WHERE Player = Milan Kostolny
CREATE TABLE INST, Here is a database schema( table schema);
What college team did Milan Kostolny play for?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pos. = qb AND College = texas tech
CREATE TABLE INST, Here is a database schema( table schema);
Which player had a position of QB for Texas Tech?.It is not neccessary to use all the tables.
SELECT Longitude FROM table WHERE Diameter < 1,575.0 AND Year named = 1997 AND Name = philae sulcus
CREATE TABLE INST, Here is a database schema( table schema);
What's the longitude for philae sulcus in 1997 with a diameter less than 1,575.0?.It is not neccessary to use all the tables.
SELECT MIN Draws FROM table WHERE Wins < 15 AND Against = 1228
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest number of draws when the wins are less than 15, and against is 1228?.It is not neccessary to use all the tables.
SELECT MIN Episode FROM table WHERE Coach = Donnie Klang
CREATE TABLE INST, Here is a database schema( table schema);
Name the least episode for donnie klang.It is not neccessary to use all the tables.
SELECT COUNT Field goals FROM table WHERE Touchdowns < 3 AND Points = 4 AND Extra points < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of field goals for a player that had less than 3 touchdowns, had 4 points, and had less than 4 extra points?.It is not neccessary to use all the tables.
SELECT ground FROM table_name_60 WHERE date = "31 jul 2007"
CREATE TABLE INST, Here is a database schema( table schema);
On what ground was the game on 31 Jul 2007?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_93 WHERE result = "l 56-3"
CREATE TABLE INST, Here is a database schema( table schema);
Which week has a result L 56-3?It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Attendance = 74,162
CREATE TABLE INST, Here is a database schema( table schema);
What is the latest week with an attendance of 74,162?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_72 WHERE week < 3 AND date = "september 18, 1965"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance of the game on September 18 1965 before week 3?It is not neccessary to use all the tables.
SELECT home_team FROM table_16388398_2 WHERE ground = "M.C.G."
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team that played on M.C.G. grounds?It is not neccessary to use all the tables.
SELECT Club(s) FROM table WHERE Goal(s) = 10
CREATE TABLE INST, Here is a database schema( table schema);
What club did the championship player come from who had 10 goals?.It is not neccessary to use all the tables.
SELECT Runner-up FROM table WHERE Premier = Richmond
CREATE TABLE INST, Here is a database schema( table schema);
who are all the runner-up for premier in richmond.It is not neccessary to use all the tables.
SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%')
CREATE TABLE INST, Here is a database schema( table schema);
display the employee number name( first name and last name ) and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.It is not neccessary to use all the tables.
SELECT Pilot FROM table WHERE Record description = maximum load to m (ft) AND Date = 23 september 1961
CREATE TABLE INST, Here is a database schema( table schema);
Record description of maximum load to m (ft), and a Date of 23 september 1961 is what pilot?.It is not neccessary to use all the tables.
SELECT COUNT(to_par) FROM table_name_26 WHERE year_s__won = "1995"
CREATE TABLE INST, Here is a database schema( table schema);
What was the total To Par for the winner in 1995?It is not neccessary to use all the tables.
SELECT Carrier, COUNT(Carrier) FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID GROUP BY Carrier ORDER BY COUNT(Carrier)
CREATE TABLE INST, Here is a database schema( table schema);
Give a bar chart showing how many shops in each carrier, display in asc by the y axis.It is not neccessary to use all the tables.
SELECT MIN Crowd FROM table WHERE Away team score = 18.16 (124)
CREATE TABLE INST, Here is a database schema( table schema);
What is the size of the crowd for the game where the away team scored 18.16 (124)?.It is not neccessary to use all the tables.
SELECT district FROM table_1341453_45 WHERE incumbent = "Ruben Hinojosa"
CREATE TABLE INST, Here is a database schema( table schema);
What district is ruben hinojosa from?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 11.16 (82)
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the away team that played a home team who scored 11.16 (82)?.It is not neccessary to use all the tables.
SELECT MAX Draws FROM table WHERE Played < 9
CREATE TABLE INST, Here is a database schema( table schema);
The highest draws with smaller than 9 played?.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 WHERE demographic.expire_flag = "0" AND diagnoses.short_title = "Obesity NOS"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients survived and were diagnosed with obesity nos?It is not neccessary to use all the tables.
SELECT points FROM table_name_32 WHERE goals = "79" AND games = "38"
CREATE TABLE INST, Here is a database schema( table schema);
How many points were scored by the player with 79 goals and who played 38 games?It is not neccessary to use all the tables.
SELECT semi_finalist__number2 FROM table_name_59 WHERE year = "2007"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Semi-Finalist #2 in 2007?It is not neccessary to use all the tables.
SELECT place FROM table_name_28 WHERE score = 70 - 68 = 138
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a Score of 70-68=138?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Bronze < 1 AND Total = 2
CREATE TABLE INST, Here is a database schema( table schema);
How many silver medals when the total was 2 and less than 1 bronze?.It is not neccessary to use all the tables.
SELECT f_laps FROM table_name_16 WHERE season = "2011" AND races = "18"
CREATE TABLE INST, Here is a database schema( table schema);
what is the f/laps when the season is 2011 and races is 18?It is not neccessary to use all the tables.
SELECT SUM(starts) FROM table_name_37 WHERE winnings = "$139,774" AND wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the sum of Starts that the Winnings of $139774 and the Wins smaller than 0?It is not neccessary to use all the tables.
SELECT MAX(extra_points) FROM table_name_2 WHERE player = "herrnstein" AND points < 30
CREATE TABLE INST, Here is a database schema( table schema);
Which Extra points is the highest one that has a Player of herrnstein and Points smaller than 30?It is not neccessary to use all the tables.
SELECT direction FROM table_100518_1 WHERE mantra = "Oṃ Yaṃ Vāyuve Namaḥ"
CREATE TABLE INST, Here is a database schema( table schema);
Where the mantra is "oṃ yaṃ vāyuve namaḥ" what is the direction of the guardian?It is not neccessary to use all the tables.
SELECT Lost FROM table WHERE Club = club
CREATE TABLE INST, Here is a database schema( table schema);
Which Lost has a Club of club?.It is not neccessary to use all the tables.
SELECT MAX Byes FROM table WHERE Against < 1867 AND Wins = 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the most byes with 11 wins and fewer than 1867 againsts?.It is not neccessary to use all the tables.
SELECT Points against FROM table WHERE Try diff = +22
CREATE TABLE INST, Here is a database schema( table schema);
What is Points Against, when Try Diff is +22?.It is not neccessary to use all the tables.
SELECT year FROM table_name_80 WHERE best_film = "mystery"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Best Film of mystery?It is not neccessary to use all the tables.
SELECT metrical_equivalence FROM table_26538461_2 WHERE portuguese_name = "Linha"
CREATE TABLE INST, Here is a database schema( table schema);
Name the metrical equivalence for linhaIt is not neccessary to use all the tables.