sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT time_retired FROM table_name_65 WHERE laps < 66 AND grid < 10 AND driver = "heinz-harald frentzen"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time of retirement with Laps smaller than 66 a grid less than 10 and a Driver of heinz-harald frentzen?It is not neccessary to use all the tables.
SELECT COUNT(distance) FROM table_2923917_4 WHERE brisbane = "$3.80"
CREATE TABLE INST, Here is a database schema( table schema);
How many distance places have brisbane at $3.80?It is not neccessary to use all the tables.
SELECT team FROM table_name_75 WHERE sport = "baseball" AND class = "aaa"
CREATE TABLE INST, Here is a database schema( table schema);
Which baseball team is class AAA?It is not neccessary to use all the tables.
SELECT Class FROM table WHERE ERP W = 500
CREATE TABLE INST, Here is a database schema( table schema);
What is the class for the ERP W of 500?.It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Lane = 3
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest rank of Lane 3?.It is not neccessary to use all the tables.
SELECT SUM(season) FROM table_name_74 WHERE series = "formula renault 3.5 series" AND races < 7
CREATE TABLE INST, Here is a database schema( table schema);
In what Season was the Series Formula Renault 3.5 series with less than 7 Races?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = princes park
CREATE TABLE INST, Here is a database schema( table schema);
What was the away teams score at Princes Park?.It is not neccessary to use all the tables.
SELECT position FROM table_name_85 WHERE competition = "super league 1"
CREATE TABLE INST, Here is a database schema( table schema);
What Position has a Super League 1 Competition?It is not neccessary to use all the tables.
SELECT fall_05 FROM table_15055594_6 WHERE states = "Maryland"
CREATE TABLE INST, Here is a database schema( table schema);
How man students were from Maryland in Fall 05?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Year at CU = 1st AND Alma Mater = dayton ('07)
CREATE TABLE INST, Here is a database schema( table schema);
Who has the alma mater of Dayton ('07), and was in their 1st year at CU?.It is not neccessary to use all the tables.
SELECT place FROM table_name_88 WHERE event = "half marathon"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the half marathon Event?It is not neccessary to use all the tables.
SELECT opponent FROM table_14608759_1 WHERE week = 9
CREATE TABLE INST, Here is a database schema( table schema);
In week 9 who were the opponent?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_85 WHERE home_team = "tottenham hotspur"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team that tottenham hotspur played?It is not neccessary to use all the tables.
SELECT date FROM table_name_90 WHERE home_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
On what date did the match where fitzroy was the home team occur?It is not neccessary to use all the tables.
SELECT MAX(draws) FROM table_name_24 WHERE ballarat_fl = "sebastapol" AND against < 1802
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest number of Draws scored by Sebastapol when the value for Against was less than 1802?It is not neccessary to use all the tables.
SELECT 3rd pers pl. FROM table WHERE Case = dative
CREATE TABLE INST, Here is a database schema( table schema);
Name the 3rd pers pl for dative.It is not neccessary to use all the tables.
SELECT sydney FROM table_24291077_4 WHERE melbourne = 334000
CREATE TABLE INST, Here is a database schema( table schema);
How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?It is not neccessary to use all the tables.
SELECT Height FROM table WHERE No = 10
CREATE TABLE INST, Here is a database schema( table schema);
How tall was Player #10?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE To par = –13
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a To par of –13?.It is not neccessary to use all the tables.
SELECT role_name, role_description FROM ROLES WHERE role_code = "MG"
CREATE TABLE INST, Here is a database schema( table schema);
What are the name and description for role code "MG"?It is not neccessary to use all the tables.
SELECT Branding FROM table WHERE Owner = canadian broadcasting corporation AND Frequency = fm 97.7
CREATE TABLE INST, Here is a database schema( table schema);
What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?.It is not neccessary to use all the tables.
SELECT week_3 FROM table_name_47 WHERE week_1 = "amanda batt"
CREATE TABLE INST, Here is a database schema( table schema);
Who is week 3 if week 1 is Amanda Batt?It is not neccessary to use all the tables.
SELECT country FROM table_24486462_1 WHERE compulsory_deduction = "29.3%"
CREATE TABLE INST, Here is a database schema( table schema);
What country has a compulsory deduction of 29.3%?It is not neccessary to use all the tables.
SELECT SUM("Points") FROM table_5810 WHERE "Player" = 'tom hammond' AND "Extra points" > '12'
CREATE TABLE INST, Here is a database schema( table schema);
How many points does Tom Hammond have if he has more than 12 points?It is not neccessary to use all the tables.
SELECT country FROM table_name_42 WHERE engine_make_capacity = "jawa 350cc"
CREATE TABLE INST, Here is a database schema( table schema);
What country had the car with the Jawa 350cc engine?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_25 WHERE tie_no = "15"
CREATE TABLE INST, Here is a database schema( table schema);
Which Attendance has a Tie # of 15?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Hanja = 平安北道
CREATE TABLE INST, Here is a database schema( table schema);
Which country has a city with a Hanja of 平安北道?.It is not neccessary to use all the tables.
SELECT nba_draft FROM table_name_61 WHERE player = "labradford smith"
CREATE TABLE INST, Here is a database schema( table schema);
Which NBA Draft had Labradford Smith?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Spanish title = Tango Bar
CREATE TABLE INST, Here is a database schema( table schema);
Who was the director for Tango Bar?.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Written by = Harry Hannigan AND Directed by = Adam Weissman
CREATE TABLE INST, Here is a database schema( table schema);
Name the original air date for harry hannigan directed by adam weissman.It is not neccessary to use all the tables.
SELECT team FROM table_17271495_1 WHERE driver = "Darren Manning"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team of darren manningIt is not neccessary to use all the tables.
SELECT MAX(top_25) FROM table_name_17 WHERE top_10 > 9 AND events < 29
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest top-25 with more than 9 top-10 but less than 29 events?It is not neccessary to use all the tables.
SELECT competition FROM table_name_1 WHERE position = "8th" AND venue = "budapest, hungary"
CREATE TABLE INST, Here is a database schema( table schema);
Which competition in Budapest, Hungary gave a result of 8th?It is not neccessary to use all the tables.
SELECT COUNT Cereals FROM table WHERE Fruit Trees < 595,147 AND Governorate = nabatieh AND Olives > 116,124
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of cereals of the nabatieh governorate, which has less than 595,147 fruit trees and more than 116,124 olives?.It is not neccessary to use all the tables.
SELECT Margin of victory FROM table WHERE Winning score = 68-67-69-65=269
CREATE TABLE INST, Here is a database schema( table schema);
What was the Margin of Victory of winning score 68-67-69-65=269?.It is not neccessary to use all the tables.
SELECT MAX Total FROM table WHERE 3rd run = 48.734 (8)
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest total when the 3rd run was 48.734 (8)?.It is not neccessary to use all the tables.
SELECT COUNT Silver FROM table WHERE Total < 15 AND Rank < 5 AND Bronze = 4 AND Gold < 3
CREATE TABLE INST, Here is a database schema( table schema);
How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3?.It is not neccessary to use all the tables.
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents WHERE STRFTIME('%y', labevents.charttime) <= '2100' GROUP BY labevents.itemid) AS t1 WHERE t1.c1 <= 4)
CREATE TABLE INST, Here is a database schema( table schema);
what are the top four most common lab tests until 2100?It is not neccessary to use all the tables.
SELECT entrant FROM table_name_82 WHERE engine = "cosworth v8" AND year = 1970
CREATE TABLE INST, Here is a database schema( table schema);
In 1970 what entrant had a cosworth v8 engine?It is not neccessary to use all the tables.
SELECT COUNT(title) FROM table_27115960_1 WHERE us_viewers__million_ = "7.56"
CREATE TABLE INST, Here is a database schema( table schema);
Title is the total number where u.s. viewers (million) is 7.56.It is not neccessary to use all the tables.
SELECT P FROM table WHERE Name = Clapham
CREATE TABLE INST, Here is a database schema( table schema);
What was the position (P) for Clapham?.It is not neccessary to use all the tables.
SELECT SUM("Bronze") FROM table_13254 WHERE "Rank" = '10' AND "Gold" < '0'
CREATE TABLE INST, Here is a database schema( table schema);
How many bronzes had a rank of 10 and 0 gold?It is not neccessary to use all the tables.
SELECT RPM FROM table WHERE Standard speed (6th gear) = 88
CREATE TABLE INST, Here is a database schema( table schema);
when standard speed (6th gear) is 88, what is the rpm?.It is not neccessary to use all the tables.
SELECT 2011 FROM table_name_93 WHERE 2002 = "—" AND model = "seat marbella"
CREATE TABLE INST, Here is a database schema( table schema);
Name the 2011 which has a 2002 of — and a Model of seat marbella?It is not neccessary to use all the tables.
SELECT Typhus FROM table WHERE Smallpox = 4
CREATE TABLE INST, Here is a database schema( table schema);
What are all the typhus number when smallpox is 4.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = corio oval
CREATE TABLE INST, Here is a database schema( table schema);
Which home team has a Venue of corio oval?.It is not neccessary to use all the tables.
SELECT drawn FROM table_12792876_2 WHERE tries_against = "30"
CREATE TABLE INST, Here is a database schema( table schema);
How many draws were there when there were 30 tries against?It is not neccessary to use all the tables.
SELECT arrival FROM table_18333678_2 WHERE departure = "11.35"
CREATE TABLE INST, Here is a database schema( table schema);
when does the train departuring at 11.35 arriveIt is not neccessary to use all the tables.
SELECT AVG(against) FROM table_name_45 WHERE date = "21/5/1997"
CREATE TABLE INST, Here is a database schema( table schema);
What was the average of againsts on 21/5/1997?It is not neccessary to use all the tables.
SELECT country FROM table_name_52 WHERE player = "jeff sluman"
CREATE TABLE INST, Here is a database schema( table schema);
What country does Jeff Sluman play for?It is not neccessary to use all the tables.
SELECT Champion FROM table WHERE Runner-Up = north melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What champion has north melbourne as the runner-up?.It is not neccessary to use all the tables.
SELECT rank FROM table_name_20 WHERE gold > 0 AND bronze = 0 AND nation = "germany (ger)"
CREATE TABLE INST, Here is a database schema( table schema);
What rank has a gold greater than 0 0 as the bronze with germany (ger) as the nation?It is not neccessary to use all the tables.
SELECT position FROM table_2508633_9 WHERE college = "Langston"
CREATE TABLE INST, Here is a database schema( table schema);
What position was the draft pick that came from Langston?It is not neccessary to use all the tables.
SELECT 1st (m) FROM table WHERE Nationality = FIN
CREATE TABLE INST, Here is a database schema( table schema);
What was the length of the jumper representing FIN, in meters?.It is not neccessary to use all the tables.
SELECT date_of_appointment FROM table_27495117_3 WHERE outgoing_manager = "Luis César Sampedro"
CREATE TABLE INST, Here is a database schema( table schema);
what was the appointment date for outgoing manager luis c sar sampedroIt is not neccessary to use all the tables.
SELECT SUM Puchat Ligi FROM table WHERE Total < 5 AND Ekstraklasa > 1
CREATE TABLE INST, Here is a database schema( table schema);
How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?.It is not neccessary to use all the tables.
SELECT AVG(damage_millions_USD), MAX(damage_millions_USD) FROM storm WHERE max_speed > 1000
CREATE TABLE INST, Here is a database schema( table schema);
Show the average and maximum damage for all storms with max speed higher than 1000.It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Total = 282
CREATE TABLE INST, Here is a database schema( table schema);
What was the finish of the player who had a total of 282?.It is not neccessary to use all the tables.
SELECT MAX(game) FROM table_17118657_7 WHERE location_attendance = "US Airways Center 7,311"
CREATE TABLE INST, Here is a database schema( table schema);
Which game number had a location/attendance of US Airways Center 7311 respectively?It is not neccessary to use all the tables.
SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama'
CREATE TABLE INST, Here is a database schema( table schema);
What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opponent = chris evert AND Surface = carpet
CREATE TABLE INST, Here is a database schema( table schema);
Name the date for chris evert opponent and carpet surface.It is not neccessary to use all the tables.
SELECT MAX Extra points FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of extra points?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Record = 4-0-0
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent with the record of 4-0-0?.It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_98 WHERE grid = "14"
CREATE TABLE INST, Here is a database schema( table schema);
What's the time/retired for a grid of 14?It is not neccessary to use all the tables.
SELECT COUNT(no_in_series) FROM table_27437601_2 WHERE no_in_season = 12
CREATE TABLE INST, Here is a database schema( table schema);
List the series number for season 12.It is not neccessary to use all the tables.
SELECT "ICAO" FROM table_80194 WHERE "City" = 'douala'
CREATE TABLE INST, Here is a database schema( table schema);
What is the ICAO of Douala city?It is not neccessary to use all the tables.
SELECT attendance FROM table_name_35 WHERE date = "november 3, 1974"
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance from November 3 1974?It is not neccessary to use all the tables.
SELECT advisor, COUNT(*) FROM Student GROUP BY advisor
CREATE TABLE INST, Here is a database schema( table schema);
Show all advisors and corresponding number of students.It is not neccessary to use all the tables.
SELECT republican FROM table_name_49 WHERE district > 4
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Republican in the district more than 4?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_63 WHERE position = "9th"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Position of 9th?It is not neccessary to use all the tables.
SELECT ground FROM table_16388047_1 WHERE home_team = "Essendon"
CREATE TABLE INST, Here is a database schema( table schema);
Name the ground for essendonIt is not neccessary to use all the tables.
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:00' AND course.course_id = course_offering.course_id AND course.department = 'PHYSICS' AND course.number = 522 AND semester.semester = 'WN' A...
CREATE TABLE INST, Here is a database schema( table schema);
After 10:00 , is there a section for PHYSICS 522 ?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Transfer window = winter AND Ends > 2009 AND Moving from = bolton wanderers
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the country that has a transfer window of winter with an end after 2009 and moving from Bolton Wanderers?.It is not neccessary to use all the tables.
SELECT Rank IN Respective AS divisions FROM table_name_60 WHERE capacity = "4100"
CREATE TABLE INST, Here is a database schema( table schema);
What Rank in Respective Divisions has a capacity of 4100?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Team = @ new orleans
CREATE TABLE INST, Here is a database schema( table schema);
What date has @ new orleans as the team?.It is not neccessary to use all the tables.
SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises"
CREATE TABLE INST, Here is a database schema( table schema);
Find the average age of members of the club "Hopkins Student Enterprises".It is not neccessary to use all the tables.
SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?It is not neccessary to use all the tables.
SELECT Country of origin* FROM table WHERE College = far eastern
CREATE TABLE INST, Here is a database schema( table schema);
Which country of origin corresponds to Far Eastern college?.It is not neccessary to use all the tables.
SELECT demographic.admittime, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "42963"
CREATE TABLE INST, Here is a database schema( table schema);
specify the admission time of patient id 42963 and name of drug he was treated withIt is not neccessary to use all the tables.
SELECT conference FROM table_name_71 WHERE season = "1967–68"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Conference for the 1967–68 season?It is not neccessary to use all the tables.
SELECT elector FROM table_name_91 WHERE cardinalatial_title = "priest of s. sabina and archbishop of reims"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims?It is not neccessary to use all the tables.
SELECT Competition FROM table WHERE Location = addis ababa
CREATE TABLE INST, Here is a database schema( table schema);
Which competition was held at Addis Ababa?.It is not neccessary to use all the tables.
SELECT game_site FROM table_name_8 WHERE attendance = "78,722"
CREATE TABLE INST, Here is a database schema( table schema);
What game did Jets have an attendance of 78722?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Qual 2 = 1:34.578
CREATE TABLE INST, Here is a database schema( table schema);
What team had 1:34.578 in Qual 2?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_7 WHERE date = "october 13, 1968"
CREATE TABLE INST, Here is a database schema( table schema);
Who did the Browns play on October 13 1968?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_56 WHERE margin_of_victory = "2 strokes" AND date = "sep 20, 1981"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the tournament played on Sep 20 1981 ending with a margin of vicroty of 2 strokes?It is not neccessary to use all the tables.
SELECT team FROM table_name_10 WHERE assists > 118 AND rank < 2
CREATE TABLE INST, Here is a database schema( table schema);
I want the team with assists greater than 118 and rank less than 2It is not neccessary to use all the tables.
SELECT winner FROM table_name_87 WHERE stage = "16"
CREATE TABLE INST, Here is a database schema( table schema);
Who won stage 16?It is not neccessary to use all the tables.
SELECT Team #2 FROM table WHERE Team #1 = Iraklis
CREATE TABLE INST, Here is a database schema( table schema);
What's the team #2 in the round where team #1 is Iraklis?.It is not neccessary to use all the tables.
SELECT Lead FROM table WHERE Country = canada
CREATE TABLE INST, Here is a database schema( table schema);
Who was Canada's lead?.It is not neccessary to use all the tables.
SELECT Event/Place FROM table WHERE Time = 58:33
CREATE TABLE INST, Here is a database schema( table schema);
Where did someone run a 58:33?.It is not neccessary to use all the tables.
SELECT COUNT(game) FROM table_17355408_12 WHERE record = "2-3"
CREATE TABLE INST, Here is a database schema( table schema);
What game was the record 2-3?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_64 WHERE location = "zolder"
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the constructor for zolderIt is not neccessary to use all the tables.
SELECT Texas FROM table WHERE North Dakota = johnson
CREATE TABLE INST, Here is a database schema( table schema);
What Texas has Johnson from Nort Dakota?.It is not neccessary to use all the tables.
SELECT Station Name FROM table WHERE Opening Year = 2013 AND Park and Ride Lot = no
CREATE TABLE INST, Here is a database schema( table schema);
Which station was opened in 2013, with no park & ride lot?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_11 WHERE score = 71 - 74 - 68 = 213
CREATE TABLE INST, Here is a database schema( table schema);
For which to par was the score 71-74-68=213?It is not neccessary to use all the tables.
SELECT MAX Wins FROM table WHERE Goals For = 18 AND Losses < 5
CREATE TABLE INST, Here is a database schema( table schema);
What team has the most wins with at least 18 goals and less than 5 losses?.It is not neccessary to use all the tables.
SELECT COUNT Height FROM table WHERE Hometown = Toronto
CREATE TABLE INST, Here is a database schema( table schema);
When toronto is the hometown how many height measurements are there?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Venue = glenferrie oval
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team at glenferrie oval?.It is not neccessary to use all the tables.
SELECT Commissioned FROM table WHERE Laid Down = 17 dec 1951
CREATE TABLE INST, Here is a database schema( table schema);
what is the commissioned date with laid down of 17 dec 1951?.It is not neccessary to use all the tables.