sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT home_team AS score FROM table_name_39 WHERE away_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team's score when North Melbourne was the away team?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Silver > 1 AND Nation = total
CREATE TABLE INST, Here is a database schema( table schema);
Which rank has more than 1 silver and a total nation?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Attendance = 42827
CREATE TABLE INST, Here is a database schema( table schema);
Name the record when attendance 42827.It is not neccessary to use all the tables.
SELECT directed_by FROM table_26561506_1 WHERE production_code = 177605
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode with production code 177605?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = western washington
CREATE TABLE INST, Here is a database schema( table schema);
Which player went to the college of Western Washington?.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25590) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', labevents.charttime) = '02'
CREATE TABLE INST, Here is a database schema( table schema);
did patient 25590 have laboratory test in 02/this year?It is not neccessary to use all the tables.
SELECT AVG Nangun FROM table WHERE Rank > 2 AND Total = 17.85
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE AVERAGE NANGUN WITH A RANK LARGER THAN 2, TOTAL OF 17.85?.It is not neccessary to use all the tables.
SELECT bore FROM table_name_8 WHERE cyl = "9-cyl radial" AND name = "9 ad"
CREATE TABLE INST, Here is a database schema( table schema);
What is the bore for a 9-cyl radial on a 9 AD?It is not neccessary to use all the tables.
SELECT rank__timeslot_ FROM table_28980706_4 WHERE share__18_49_ = 13
CREATE TABLE INST, Here is a database schema( table schema);
When 13 is the share (18-49) what is the rank (timeslot)?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Arranger = tarek akef AND Length = 3:50
CREATE TABLE INST, Here is a database schema( table schema);
What is the title track that is 3:50 and arranged by Tarek Akef?.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Date = April 9
CREATE TABLE INST, Here is a database schema( table schema);
Which team played on April 9?.It is not neccessary to use all the tables.
SELECT 1988 FROM table_name_54 WHERE 1985 = "2r"
CREATE TABLE INST, Here is a database schema( table schema);
Which 1988 has a 1985 of 2r?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = w 14-10
CREATE TABLE INST, Here is a database schema( table schema);
What date has w 14-10 as the result?.It is not neccessary to use all the tables.
SELECT modern_title_of_house FROM table_name_27 WHERE house = "1st"
CREATE TABLE INST, Here is a database schema( table schema);
What is the modern house title of the 1st house?It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Score = 5–7, 5–7
CREATE TABLE INST, Here is a database schema( table schema);
Who was playing when the score was 5–7, 5–7?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Visitor = columbus
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for columbus visitor.It is not neccessary to use all the tables.
SELECT Attendance Average FROM table WHERE Reg. Season = 2nd aisa, 24-16
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendance of the team that had a regular season result of 2nd aisa, 24-16?.It is not neccessary to use all the tables.
SELECT prefecture FROM table_name_94 WHERE province = "hubei" AND county = "enshi"
CREATE TABLE INST, Here is a database schema( table schema);
Which prefecture is in Hubei province and Enshi county?It is not neccessary to use all the tables.
SELECT League from FROM table WHERE Pick # > 204 AND Nationality = canada AND Position = lw
CREATE TABLE INST, Here is a database schema( table schema);
Which league has a pick number larger than 204 from Canada and LW as the position?.It is not neccessary to use all the tables.
SELECT COUNT 2011 Census FROM table WHERE Density (pop/kmΒ²) = 91.8
CREATE TABLE INST, Here is a database schema( table schema);
How many locations had a density (pop/kmΒ²) of 91.8 in the 2011 census?.It is not neccessary to use all the tables.
SELECT Notes FROM table WHERE Country = south africa
CREATE TABLE INST, Here is a database schema( table schema);
What are the notes for South Africa?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Engine(s) = yamaha v8
CREATE TABLE INST, Here is a database schema( table schema);
Which year has an Engine(s) of yamaha v8?.It is not neccessary to use all the tables.
SELECT Average FROM table WHERE Wickets taken = 212
CREATE TABLE INST, Here is a database schema( table schema);
What are the averages for games with 212 wickets taken?.It is not neccessary to use all the tables.
SELECT Also currently known as FROM table WHERE Tournament = Tampa
CREATE TABLE INST, Here is a database schema( table schema);
What is the current tournament name for the event in Tampa?.It is not neccessary to use all the tables.
SELECT Quality FROM table WHERE International Alphabet of Sanskrit Transliteration = dhanus
CREATE TABLE INST, Here is a database schema( table schema);
What is the quality of the international alphabet of the sanskrit transliteration for the word Dhanus?.It is not neccessary to use all the tables.
SELECT Aprende FROM table WHERE Centennial = 1988
CREATE TABLE INST, Here is a database schema( table schema);
WHich kind of Aprende has a Centennial of 1988?.It is not neccessary to use all the tables.
SELECT result FROM table_14966537_1 WHERE opponent = "Chicago Bears"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the game against the Chicago Bears?It is not neccessary to use all the tables.
SELECT Call sign FROM table WHERE Frequency = 0 97.3 fm
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the call sign for frequency of 0 97.3 fm.It is not neccessary to use all the tables.
SELECT COUNT(cook_islands) FROM table_24807774_1 WHERE bosnian = "Macedonian"
CREATE TABLE INST, Here is a database schema( table schema);
how many bosnian in cook islands is macedonianIt is not neccessary to use all the tables.
SELECT "Yacht Type" FROM table_1896 WHERE "Elapsed Time d:hh:mm:ss" = '3:15:28:24'
CREATE TABLE INST, Here is a database schema( table schema);
When 3:15:28:24 is the elapsed time d:hh:mm:ss what is the type of yacht?It is not neccessary to use all the tables.
SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Find the number of the enrollment date for all the tests that have 'Pass' result, and could you order by the Y-axis in desc?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-250695')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'output amt-jackson pratt drain' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', intakeoutput.intakeoutputtime) = '11'
CREATE TABLE INST, Here is a database schema( table schema);
has patient 021-250695 excreted output amt-jackson pratt drain in 11/last year?It is not neccessary to use all the tables.
SELECT Runner(s)-up FROM table WHERE Winning score = +3 (69-70-71-77=287)
CREATE TABLE INST, Here is a database schema( table schema);
Who was the runner-up when the winning score is +3 (69-70-71-77=287)?.It is not neccessary to use all the tables.
SELECT Song Choice FROM table WHERE Original Artist = Patricia Marx
CREATE TABLE INST, Here is a database schema( table schema);
What was Barreto's song choice where the original artist was Patricia Marx?.It is not neccessary to use all the tables.
SELECT MAX Game FROM table WHERE Record = 3-4-0
CREATE TABLE INST, Here is a database schema( table schema);
How many games have a record of 3-4-0?.It is not neccessary to use all the tables.
SELECT record FROM table_27704187_10 WHERE team = "Milwaukee"
CREATE TABLE INST, Here is a database schema( table schema);
What was the season record when the team played against Milwaukee?It is not neccessary to use all the tables.
SELECT final_round FROM table_name_59 WHERE members = "chris webber"
CREATE TABLE INST, Here is a database schema( table schema);
What was the final round value for member Chris Webber?It is not neccessary to use all the tables.
SELECT location FROM table_1137707_2 WHERE fastest_lap = "Thierry Boutsen"
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of thierry boutsen?It is not neccessary to use all the tables.
SELECT COUNT(maidens) FROM table_name_95 WHERE er < 9.5 AND overs_bowled > 57 AND wickets = 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Maidens when E.R. is less than 9.5 and a Overs Bowled larger than 57 and a Wickets of 9?It is not neccessary to use all the tables.
SELECT AVG Average population (x 1000) FROM table WHERE Deaths = 3 557 AND Crude death rate (per 1000) < 11.9
CREATE TABLE INST, Here is a database schema( table schema);
What is the average population when deaths are 3 557 and crude death date is less than 11.9?.It is not neccessary to use all the tables.
SELECT game FROM table_name_74 WHERE score = "122–125"
CREATE TABLE INST, Here is a database schema( table schema);
Which Game has a Score of 122–125?It is not neccessary to use all the tables.
SELECT secondary_military_speciality FROM table_name_21 WHERE real_name = "gareth morgan"
CREATE TABLE INST, Here is a database schema( table schema);
What is Gareth Morgan's Secondary Military Specialty?It is not neccessary to use all the tables.
SELECT player FROM table_name_84 WHERE college = "western washington"
CREATE TABLE INST, Here is a database schema( table schema);
Which player went to the college of Western Washington?It is not neccessary to use all the tables.
SELECT Rider Names FROM table WHERE Best-Conditioned Horse = Basia
CREATE TABLE INST, Here is a database schema( table schema);
What are all the Riders whose best-conditioned horse is Basia?.It is not neccessary to use all the tables.
SELECT results FROM table_1805191_36 WHERE incumbent = "Marcy Kaptur"
CREATE TABLE INST, Here is a database schema( table schema);
What are the results of those elections for which Marcy Kaptur is the incumbent?It is not neccessary to use all the tables.
SELECT date FROM table_name_89 WHERE opponent = "indiana pacers"
CREATE TABLE INST, Here is a database schema( table schema);
when indiana pacers were the opponent what was the date?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Loss = alexander (5-2)
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the team that lost to Alexander (5-2)?.It is not neccessary to use all the tables.
SELECT 10:00 FROM table WHERE 8:00 = surviving suburbia
CREATE TABLE INST, Here is a database schema( table schema);
When Surviving Suburbia aired at 8:00 what aired at 10:00?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Week < 12 AND Date = november 11, 1990
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent before week 12, on November 11, 1990?.It is not neccessary to use all the tables.
SELECT COUNT Troops per one million population FROM table WHERE Troops per $1 billion ( USD ) GDP = 2.76
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of troops per one million being 2.76.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = punt road oval
CREATE TABLE INST, Here is a database schema( table schema);
When did the away team score at Punt Road Oval?.It is not neccessary to use all the tables.
SELECT album FROM table_name_77 WHERE year > 2008
CREATE TABLE INST, Here is a database schema( table schema);
what is the album when the year is later than 2008?It is not neccessary to use all the tables.
SELECT "Pos." FROM table_66523 WHERE "College" = 'tennessee state'
CREATE TABLE INST, Here is a database schema( table schema);
What position did athlete play from Tennessee state?It is not neccessary to use all the tables.
SELECT MAX("Attendance") FROM table_77761 WHERE "Week" > '2' AND "Date" = 'october 29, 1961'
CREATE TABLE INST, Here is a database schema( table schema);
What is the top attendance for weeks past 2 on october 29, 1961?It is not neccessary to use all the tables.
SELECT loss FROM table_name_67 WHERE record = "38-33"
CREATE TABLE INST, Here is a database schema( table schema);
What is the loss when the record is 38-33?It is not neccessary to use all the tables.
SELECT COUNT(change_since_2006) FROM table_1940144_1 WHERE county = "county Leitrim"
CREATE TABLE INST, Here is a database schema( table schema);
How many places did the rank change since 22006 for County Leitrim?It is not neccessary to use all the tables.
SELECT MIN(_number_of_ep) FROM table_1067134_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the least amount of season epidsodes?It is not neccessary to use all the tables.
SELECT AVG(pick) FROM table_name_36 WHERE overall = 85 AND round < 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the average pick with 85 overall in a round lower than 3?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Home = toronto
CREATE TABLE INST, Here is a database schema( table schema);
what was the score in toronto.It is not neccessary to use all the tables.
SELECT u.Id, DisplayName, COUNT(p.Id) AS PostCount FROM Users AS u LEFT JOIN Posts AS p ON u.Id = p.OwnerUserId GROUP BY u.Id, DisplayName ORDER BY PostCount DESC LIMIT 10
CREATE TABLE INST, Here is a database schema( table schema);
SELECT * FROM Posts LIMIT 10;.It is not neccessary to use all the tables.
SELECT MIN(_number_of_episodes) FROM table_name_55 WHERE mole = "craig slike"
CREATE TABLE INST, Here is a database schema( table schema);
Which # of Episodes has a Mole of craig slike?It is not neccessary to use all the tables.
SELECT MIN(introduced) FROM table_1081459_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest introduced value?It is not neccessary to use all the tables.
SELECT date_of_vacancy FROM table_24172157_3 WHERE table = "Pre-season" AND team = "Liverpool"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of vacancy for the Liverpool team with a table named pre-season?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_20 WHERE home = "ottawa" AND date = "april 26"
CREATE TABLE INST, Here is a database schema( table schema);
What visitor has Ottawa as a home and a date of April 26?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Attendance = 73,529
CREATE TABLE INST, Here is a database schema( table schema);
What was the date when the attendance was 73,529?.It is not neccessary to use all the tables.
SELECT MIN Round FROM table WHERE Player = joe patterson
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Round of joe patterson?.It is not neccessary to use all the tables.
SELECT position FROM table_name_19 WHERE player = "bert coan"
CREATE TABLE INST, Here is a database schema( table schema);
Which position does bert coan play?It is not neccessary to use all the tables.
SELECT city_of_license FROM table_name_98 WHERE call_sign = "kyli"
CREATE TABLE INST, Here is a database schema( table schema);
Which city of license has the Kyli call sign?It is not neccessary to use all the tables.
SELECT Grand Finalist FROM table WHERE Year > 1979 AND Margin < 30 AND Winners = essendon
CREATE TABLE INST, Here is a database schema( table schema);
What grand finalist had a year after 1979, a margin smaller than 30, and winners of essendon?.It is not neccessary to use all the tables.
SELECT round FROM table_25505246_8 WHERE against = "South Africa"
CREATE TABLE INST, Here is a database schema( table schema);
in what round types did the opponent come from south africa?It is not neccessary to use all the tables.
SELECT segment_c FROM table_15187735_21 WHERE series_ep = "21-08"
CREATE TABLE INST, Here is a database schema( table schema);
What are the titles of segment c for series episode is 21-08?It is not neccessary to use all the tables.
SELECT MIN Round FROM table WHERE Team = central florida
CREATE TABLE INST, Here is a database schema( table schema);
What was the earliest Round for Central Florida?.It is not neccessary to use all the tables.
SELECT Track(s) FROM table WHERE Date = 18 november 1985
CREATE TABLE INST, Here is a database schema( table schema);
Which Track(s) is on 18 november 1985?.It is not neccessary to use all the tables.
SELECT latest_version FROM table_name_24 WHERE release_date = "1987-12-09"
CREATE TABLE INST, Here is a database schema( table schema);
Which of the Latest version was released on Release date 1987-12-09?It is not neccessary to use all the tables.
SELECT Yards FROM table WHERE Player = rob turner
CREATE TABLE INST, Here is a database schema( table schema);
How many Yards did Player Rob Turner collect?.It is not neccessary to use all the tables.
SELECT d_42_√ FROM table_name_67 WHERE d_44_√ = "r 36 √"
CREATE TABLE INST, Here is a database schema( table schema);
Name the D 42 √ when it has D 44 √ of r 36 √It is not neccessary to use all the tables.
SELECT U.S. viewers (million) FROM table WHERE Title = "New Beginnings"
CREATE TABLE INST, Here is a database schema( table schema);
How many millions of U.S. viewers watched the episode titled "New Beginnings"?.It is not neccessary to use all the tables.
SELECT calorie FROM table WHERE watt hour = 1
CREATE TABLE INST, Here is a database schema( table schema);
How many calories is 1 watt hour?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')
CREATE TABLE INST, Here is a database schema( table schema);
How many states that have some college students playing in the mid position but not in the goalie position.It is not neccessary to use all the tables.
SELECT COUNT(candidate) FROM table_26263322_1 WHERE background = "Self-employed - media agency"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was the background self-employed - media agency?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE 50m split < 28.58 AND Lane = 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the time for a 50m split less than 28.58 and a lane of 2?.It is not neccessary to use all the tables.
SELECT Reason for termination FROM table WHERE Appointed by = eisenhower category:articles with hcards
CREATE TABLE INST, Here is a database schema( table schema);
Which Reason for termination has Appointed by of eisenhower category:articles with hcards?.It is not neccessary to use all the tables.
SELECT school FROM table_16295365_2 WHERE conf_record = "12-6"
CREATE TABLE INST, Here is a database schema( table schema);
Name the school where conference record is 12-6It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Game Site = candlestick park
CREATE TABLE INST, Here is a database schema( table schema);
When did they play at Candlestick Park?.It is not neccessary to use all the tables.
SELECT home_or_away FROM table_1233808_2 WHERE record = "Biggest win"
CREATE TABLE INST, Here is a database schema( table schema);
Is the biggest win recorded as home or away?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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BURBANK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
list all flights from BURBANK to DENVERIt is not neccessary to use all the tables.
SELECT 6th career/salary FROM table WHERE 2nd career/salary = substitute teacher ($20,000)
CREATE TABLE INST, Here is a database schema( table schema);
2nd career/salary of substitute teacher ($20,000) involves what 6th career/salary?.It is not neccessary to use all the tables.
SELECT "Record" FROM table_53887 WHERE "Score" = '1 – 5'
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the game with a score of 1 5?It is not neccessary to use all the tables.
SELECT AVG(grid) FROM table_name_42 WHERE time_retired = "+3.9 secs" AND laps < 96
CREATE TABLE INST, Here is a database schema( table schema);
Which grid has a time/retired of +3.9 secs in less than 96 laps?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = september 21
CREATE TABLE INST, Here is a database schema( table schema);
What record has September 21 as the date?.It is not neccessary to use all the tables.
SELECT profits__billion_$_ FROM table_1682026_3 WHERE assets__billion_$_ = "192.8"
CREATE TABLE INST, Here is a database schema( table schema);
What are the profits (in billions) where the assets are 192.8 billion?It is not neccessary to use all the tables.
SELECT sarasota FROM table_17085724_1 WHERE indianapolis_concerts = "Samantha Sharpe"
CREATE TABLE INST, Here is a database schema( table schema);
Name the sarasota samantha sharpeIt is not neccessary to use all the tables.
SELECT Date, Name, venue FROM event ORDER BY Event_Attendance DESC
CREATE TABLE INST, Here is a database schema( table schema);
Show the dates places and names of events in descending order of the attendance.It is not neccessary to use all the tables.
SELECT League Apps FROM table WHERE League Goals < 2 AND Position = df AND FA Cup Apps = 5
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_52 WHERE surface = "clay" AND score = "4–6, 6–1, 6–4"
CREATE TABLE INST, Here is a database schema( table schema);
Which tournament was played on clay and there was a score of 4–6 6–1 6–4?It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_name_62 WHERE year > 1988
CREATE TABLE INST, Here is a database schema( table schema);
with year greater than 1988 what is the total number of points?It is not neccessary to use all the tables.
SELECT district FROM table_19753079_41 WHERE first_elected = 1994
CREATE TABLE INST, Here is a database schema( table schema);
When 1994 is the first elected what is the district?It is not neccessary to use all the tables.
SELECT date FROM table_name_23 WHERE venue = "round 3"
CREATE TABLE INST, Here is a database schema( table schema);
When did the venue of round 3 happen?It is not neccessary to use all the tables.
SELECT record FROM table_27539535_7 WHERE february = 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the team's rcord on february 1?It is not neccessary to use all the tables.
SELECT MAX(goals_against) FROM table_name_96 WHERE club = "dallas burn" AND ga_average > 1.46
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest goals against the goalkeeper of Dallas Burn who had a GA average larger than 1.46 had?It is not neccessary to use all the tables.