sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Time FROM table WHERE Res. = draw
CREATE TABLE INST, Here is a database schema( table schema);
When there was a draw, what was the time?.It is not neccessary to use all the tables.
SELECT MIN Week FROM table WHERE Time (CST) = 7:15 p.m. AND Game site = fedexfield
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?.It is not neccessary to use all the tables.
SELECT r_z___arcsecond__ FROM table_15318324_1 WHERE r_y___arcsecond__ = "−0.247"
CREATE TABLE INST, Here is a database schema( table schema);
How many values of r z (arcsecond) correspond with a r y (arcsecond) value of −0.247?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = september 24, 2006
CREATE TABLE INST, Here is a database schema( table schema);
What is the score of the match on September 24, 2006?.It is not neccessary to use all the tables.
SELECT school FROM table_name_8 WHERE year_left = 1966 AND mascot = "indians"
CREATE TABLE INST, Here is a database schema( table schema);
Which School has a Year Left of 1966 and a Mascot of indians?It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_56 WHERE gold < 1 AND bronze = 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of total for gold less than 1 and bronze of 3It is not neccessary to use all the tables.
SELECT MAX(total_passengers) FROM table_name_94 WHERE rank = 1
CREATE TABLE INST, Here is a database schema( table schema);
what is the highest amount of passengers when there is a rank of 1?It is not neccessary to use all the tables.
SELECT AVG Wins FROM table WHERE Byes < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average of wins when the byes are less than 0?.It is not neccessary to use all the tables.
SELECT COUNT(dominant_religion__2002_) FROM table_2562572_52 WHERE cyrillic_name = "Сибач"
CREATE TABLE INST, Here is a database schema( table schema);
how many times is the cyrillic name сибач?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_31 WHERE opponent = "piero luisi"
CREATE TABLE INST, Here is a database schema( table schema);
Which Tournament has a Opponent of piero luisi?It is not neccessary to use all the tables.
SELECT MAX Total FROM table WHERE Nation = romania AND Bronze < 2
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest total of Romania when the bronze was less than 2?.It is not neccessary to use all the tables.
SELECT U.S. AC FROM table WHERE Album = the best AND Year = 1965
CREATE TABLE INST, Here is a database schema( table schema);
What was the best album in 1965?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Team = Miami
CREATE TABLE INST, Here is a database schema( table schema);
When did they play Miami?.It is not neccessary to use all the tables.
SELECT MIN Points FROM table WHERE Place = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the fewest points of 5 place.It is not neccessary to use all the tables.
SELECT competition FROM table_name_28 WHERE score = "2-1"
CREATE TABLE INST, Here is a database schema( table schema);
what is the competition when the score is 2-1?It is not neccessary to use all the tables.
SELECT MIN Lost FROM table WHERE Goals For < 21
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest lost entry for a team with fewer than 21 goals for?.It is not neccessary to use all the tables.
SELECT Text FROM table WHERE Date (CE) = c. 1180
CREATE TABLE INST, Here is a database schema( table schema);
Which text has a date of c. 1180?.It is not neccessary to use all the tables.
SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.2
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the evening gown scores where the interview score is less than 8.77 the swimsuit score is equal to 7.8 and the average score is less than 8.2?It is not neccessary to use all the tables.
SELECT Other Mozilla FROM table WHERE Safari = 3.76%
CREATE TABLE INST, Here is a database schema( table schema);
If Safari is 3.76%, what is the other Mozilla amount?.It is not neccessary to use all the tables.
SELECT Incorporated in FROM table WHERE Principal activities = travel agency
CREATE TABLE INST, Here is a database schema( table schema);
Name the incorporated for principal activites of travel agency.It is not neccessary to use all the tables.
SELECT Date of appointment FROM table WHERE Date of vacancy = 21 December 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of appointment when the date of vacancy is 21 december 2007?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Position = rw AND League from = western hockey league
CREATE TABLE INST, Here is a database schema( table schema);
Which Player has a Position of rw, and a League from of western hockey league?.It is not neccessary to use all the tables.
SELECT Sixth place FROM table WHERE Series = 7
CREATE TABLE INST, Here is a database schema( table schema);
Who was in sixth place in series 7?.It is not neccessary to use all the tables.
SELECT date FROM table_name_53 WHERE home_team = "luton town"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Home Team is "Luton Town"?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team score = 6.6 (42) AND Away team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the home team when the away team, Melbourne, scored 6.6 (42)?.It is not neccessary to use all the tables.
SELECT record FROM table_name_84 WHERE date = "june 14"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record for the date of June 14?It is not neccessary to use all the tables.
SELECT MAX(loses) FROM table_name_90 WHERE wins > 3 AND pos > 3
CREATE TABLE INST, Here is a database schema( table schema);
What's the highest Loses with Wins that's larger than 3 and a Pos. Larger than 3?It is not neccessary to use all the tables.
SELECT COUNT Week FROM table WHERE Attendance = 17,737
CREATE TABLE INST, Here is a database schema( table schema);
In what Week was the Attendance 17,737?.It is not neccessary to use all the tables.
SELECT t3.fname, t3.lname 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 = "Bootup Baltimore" AND t3.sex = "F"
CREATE TABLE INST, Here is a database schema( table schema);
Find all the female members of club "Bootup Baltimore". Show the first name and last name.It is not neccessary to use all the tables.
SELECT AVG(rank) FROM table_name_82 WHERE country = "hungary"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average rank for Hungary?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Club = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
In what season was there a club of South Melbourne?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Venue = h AND Date = 3 december 1898
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent of the match on 3 December 1898 in venue h?.It is not neccessary to use all the tables.
SELECT Maximum memory FROM table WHERE Standard memory = 16 mb
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum memory of the model that has a standard memory of 16 mb?.It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Attendance = 74303
CREATE TABLE INST, Here is a database schema( table schema);
On which week was the attendance 74303?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Tie no = 15
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team for tie no 15?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team = fitzroy
CREATE TABLE INST, Here is a database schema( table schema);
Where did fitzroy play as the home team?.It is not neccessary to use all the tables.
SELECT MAX National University of Ireland FROM table WHERE Total = 60 AND Administrative Panel > 7
CREATE TABLE INST, Here is a database schema( table schema);
What was the greatest number of members for the National University of Ireland, when the Total number of members in the Seanad was 60, and when the Administrative Panel had more than 7 members?.It is not neccessary to use all the tables.
SELECT Opposition FROM table WHERE Round = quarter-final
CREATE TABLE INST, Here is a database schema( table schema);
Who were the opposition in the quarter-final?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Record = 33-30-8
CREATE TABLE INST, Here is a database schema( table schema);
Who had a 33-30-8 record at home?.It is not neccessary to use all the tables.
SELECT MAX(wins) FROM table_name_61 WHERE against = 1940 AND byes > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Wins has an Against of 1940 and a Byes larger than 0?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 10.14 (74)
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team against which the home team scored 10.14 (74)?.It is not neccessary to use all the tables.
SELECT away_captain FROM table_name_60 WHERE venue = "waca ground"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away captain at Waca Ground?It is not neccessary to use all the tables.
SELECT AVG(product_price), product_category_code FROM products GROUP BY product_category_code
CREATE TABLE INST, Here is a database schema( table schema);
What is the average price of the products for each category?It is not neccessary to use all the tables.
SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, show me about the distribution of founder and the average of price , and group by attribute founder in a bar chart, display by the X-axis from low to high please.It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-13959')) AND lab.labname = 'peep' AND STRFTIME('%y-%m', lab.labresulttime) >= '2104-...
CREATE TABLE INST, Here is a database schema( table schema);
had a peep lab test patient 017-13959 received since 06/2104?It is not neccessary to use all the tables.
SELECT SUM(silver) FROM table_name_19 WHERE bronze < 1
CREATE TABLE INST, Here is a database schema( table schema);
COunt the silver that has a Bronze smaller than 1?It is not neccessary to use all the tables.
SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antiemetic - serotonin antagonist' AND DATET...
CREATE TABLE INST, Here is a database schema( table schema);
what are the four most frequent microbiological tests that patients were given in the same month after receiving antiemetic - serotonin antagonist the last year?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT governor) FROM party
CREATE TABLE INST, Here is a database schema( table schema);
Count the number of distinct governors.It is not neccessary to use all the tables.
SELECT result FROM table_name_47 WHERE attendance = "16,000"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game that was attended by 16000 people?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the home team score for essendon away team.It is not neccessary to use all the tables.
SELECT part_3 FROM table_name_31 WHERE part_2 = "*hegait"
CREATE TABLE INST, Here is a database schema( table schema);
What is the part 3 with *hegait in part 2?It is not neccessary to use all the tables.
SELECT company FROM table_name_14 WHERE director = "simon stone" AND year < 2011
CREATE TABLE INST, Here is a database schema( table schema);
What company does Simon Stone direct earlier than 2011?It is not neccessary to use all the tables.
SELECT distance FROM table_name_66 WHERE course = "chieti to macerata"
CREATE TABLE INST, Here is a database schema( table schema);
What's the distance for the chieti to macerata course?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "PITUITARY BLEED" AND prescriptions.route = "OU"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of patients whose primary disease is pituitary bleed and drug route is ou?It is not neccessary to use all the tables.
SELECT Tickets Sold / Available FROM table WHERE Gross Revenue (2011) = $366,916
CREATE TABLE INST, Here is a database schema( table schema);
How many tickets were sold/available when the gross revenue (2011) was $366,916?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "HOME HEALTH CARE"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of male patients who had home health care discharge?It is not neccessary to use all the tables.
SELECT license FROM table_15038373_1 WHERE software = "BeeOne SMOD/HMS"
CREATE TABLE INST, Here is a database schema( table schema);
What is hte license for beeone smod/hms software?It is not neccessary to use all the tables.
SELECT COUNT Highest Score FROM table WHERE 100s = 1
CREATE TABLE INST, Here is a database schema( table schema);
How many times has the 100s record been 1?.It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Away team = geelong
CREATE TABLE INST, Here is a database schema( table schema);
What is the total crowd size that saw Geelong play as the away team?.It is not neccessary to use all the tables.
SELECT Total FROM table WHERE Rank points = olympic gold medalist
CREATE TABLE INST, Here is a database schema( table schema);
That's the total for rank points of olympic gold medalist?.It is not neccessary to use all the tables.
SELECT winning_driver FROM table_25572068_1 WHERE series = "FR2.0 11"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning driver in the FR2.0 11 series?It is not neccessary to use all the tables.
SELECT Royal house FROM table WHERE State = chu
CREATE TABLE INST, Here is a database schema( table schema);
Which royal house is in the state of chu?.It is not neccessary to use all the tables.
SELECT LName, COUNT(LName) FROM Student WHERE Major = 600 GROUP BY LName ORDER BY LName
CREATE TABLE INST, Here is a database schema( table schema);
List how many students in each last name who majored in 600 using a bar chart, and sort by the bars from low to high.It is not neccessary to use all the tables.
SELECT COUNT High assists FROM table WHERE Date = December 21
CREATE TABLE INST, Here is a database schema( table schema);
Who had highest assists at game on December 21?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = south melbourne
CREATE TABLE INST, Here is a database schema( table schema);
Who was South Melbourne's away opponents?.It is not neccessary to use all the tables.
SELECT Week 7 FROM table WHERE Week 3 = 35.90
CREATE TABLE INST, Here is a database schema( table schema);
What is week 7 when week 3 is 35.90?.It is not neccessary to use all the tables.
SELECT name FROM table_name_63 WHERE decile = "6" AND roll = 93
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the name with decile of 6 and roll of 93It is not neccessary to use all the tables.
SELECT Game site FROM table WHERE Opponent = Dallas Texans
CREATE TABLE INST, Here is a database schema( table schema);
What was the game site against the Dallas Texans?.It is not neccessary to use all the tables.
SELECT result FROM table_name_26 WHERE date = "11 august 1992"
CREATE TABLE INST, Here is a database schema( table schema);
What is Result when Date is 11 August 1992?It is not neccessary to use all the tables.
SELECT cospar_id FROM table_18161217_2 WHERE satellite = "Kosmos 2379"
CREATE TABLE INST, Here is a database schema( table schema);
What it the international designation for the kosmos 2379 satellite?It is not neccessary to use all the tables.
SELECT Motorway FROM table WHERE Scheduled completion = 2013 AND County = brod-posavina
CREATE TABLE INST, Here is a database schema( table schema);
Which motorway is in brod-posavina county and has a scheduled completion in 2013?.It is not neccessary to use all the tables.
SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30
CREATE TABLE INST, Here is a database schema( table schema);
Show the church names for the weddings of all people older than 30.It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Label = candlelight records
CREATE TABLE INST, Here is a database schema( table schema);
What is Candlelight Records format?.It is not neccessary to use all the tables.
SELECT host_city FROM table_name_43 WHERE hosts = "alicia keys"
CREATE TABLE INST, Here is a database schema( table schema);
What is the host city that has Alicia Keys listed as a host?It is not neccessary to use all the tables.
SELECT MIN(game) FROM table_name_81 WHERE record = "3-3-1"
CREATE TABLE INST, Here is a database schema( table schema);
Record of 3-3-1 had what lowest game?It is not neccessary to use all the tables.
SELECT record FROM table_name_84 WHERE opponent = "kansas city kings"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Laker's record when they played against Kansas City Kings?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT (review.text)) FROM review, user WHERE review.year = 2015 AND user.name = 'Niloofar' AND user.user_id = review.user_id
CREATE TABLE INST, Here is a database schema( table schema);
How many reviews has Niloofar written in 2015It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team = carlton
CREATE TABLE INST, Here is a database schema( table schema);
What day is carlton the home side?.It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_95 WHERE venue = "tampere, finland"
CREATE TABLE INST, Here is a database schema( table schema);
What year did she compete in tampere finland?It is not neccessary to use all the tables.
SELECT score FROM table_name_18 WHERE date = "march 1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Score on March 1?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Home team = carlton
CREATE TABLE INST, Here is a database schema( table schema);
What away team score has carlton home team?.It is not neccessary to use all the tables.
SELECT Candidate Name FROM table WHERE Target/Approach = vaccine to amyloid-beta
CREATE TABLE INST, Here is a database schema( table schema);
What is Candidate Name, when Target/Approach is "vaccine to amyloid-beta"?.It is not neccessary to use all the tables.
SELECT team FROM table_name_5 WHERE replaced_by = "omar arellano"
CREATE TABLE INST, Here is a database schema( table schema);
What is Team, when Replaced By is 'Omar Arellano'?It is not neccessary to use all the tables.
SELECT Fleet Series (Quantity) FROM table WHERE Builder = mci AND Order Year = 2002
CREATE TABLE INST, Here is a database schema( table schema);
Which Fleet Series (Quantity) that has a Builder of mci, and an Order Year of 2002?.It is not neccessary to use all the tables.
SELECT MIN(pl_gp) FROM table_name_53 WHERE reg_gp = 1 AND player = "murray bannerman" AND pick__number < 58
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest PI GP when the Reg GP is 1 Murray Bannerman is the Player and the Pick # is under 58?It is not neccessary to use all the tables.
SELECT surface FROM table_name_93 WHERE partner = "sandrine testud" AND date = "november 14, 1999"
CREATE TABLE INST, Here is a database schema( table schema);
Which surface had a partner of Sandrine Testud on November 14 1999?It is not neccessary to use all the tables.
SELECT year, SUM(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ORDER BY year DESC
CREATE TABLE INST, Here is a database schema( table schema);
For each year, bin the year into day of the week interval, and return the total number of times the team Boston Red Stockings won in the postseasons using a line chart, sort by the x axis in desc.It is not neccessary to use all the tables.
SELECT artist FROM table_13789248_2 WHERE position = 32
CREATE TABLE INST, Here is a database schema( table schema);
who is the the artbeingt with position being 32It is not neccessary to use all the tables.
SELECT Gross Revenue (1979) FROM table WHERE Venue = lyceum theatre
CREATE TABLE INST, Here is a database schema( table schema);
What is the Gross Revenue (1979) of the Venue, lyceum theatre?.It is not neccessary to use all the tables.
SELECT contestant FROM table_18626383_2 WHERE hometown = "Santiago del Estero"
CREATE TABLE INST, Here is a database schema( table schema);
When santiago del estero is the hometown who is the contestant?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Score = 70-68-70-68=276
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a Score of 70-68-70-68=276?.It is not neccessary to use all the tables.
SELECT state FROM table_name_70 WHERE region = "mideast" AND host = "university of tennessee"
CREATE TABLE INST, Here is a database schema( table schema);
Mideast region host University of Tennessee is in what state?It is not neccessary to use all the tables.
SELECT Location/Attendance FROM table WHERE Record = 3-1-0
CREATE TABLE INST, Here is a database schema( table schema);
What is the location and attendance of the game with a 3-1-0 record?.It is not neccessary to use all the tables.
SELECT team FROM table_29398373_2 WHERE head_coach = "Javier Clemente"
CREATE TABLE INST, Here is a database schema( table schema);
Name the team for javier clementeIt is not neccessary to use all the tables.
SELECT SUM 1st week sales FROM table WHERE Album = finding forever AND Number < 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1st week sales for the album finding forever before the number 6?.It is not neccessary to use all the tables.
SELECT title FROM table_20967430_2 WHERE original_air_date = "November 08, 1985"
CREATE TABLE INST, Here is a database schema( table schema);
Name the title that aired for november 08 1985It is not neccessary to use all the tables.
SELECT District FROM table WHERE Incumbent = John Porter
CREATE TABLE INST, Here is a database schema( table schema);
What district was John Porter elected in?.It is not neccessary to use all the tables.
SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'seizures' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
CREATE TABLE INST, Here is a database schema( table schema);
list the patient ids of those patients who in this year had been diagnosed with seizures.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Score = l 88–94 (ot)
CREATE TABLE INST, Here is a database schema( table schema);
What team has a Score of l 88–94 (ot)?.It is not neccessary to use all the tables.
SELECT Train Number FROM table WHERE Departure Pune = 13:00
CREATE TABLE INST, Here is a database schema( table schema);
which train number departs pune at 13:00.It is not neccessary to use all the tables.