sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MAX(grid) FROM table_name_89 WHERE rider = "gregorio lavilla"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest grid that has gregorio lavilla as the rider?It is not neccessary to use all the tables.
SELECT MAX Wickets FROM table WHERE Average = 22.66
CREATE TABLE INST, Here is a database schema( table schema);
What number of wickets were there when the average was 22.66?.It is not neccessary to use all the tables.
SELECT team FROM table_name_51 WHERE win__number = "1" AND rating = "+85"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the team that had 1 win and a rating of +85?It is not neccessary to use all the tables.
SELECT MIN(money_list_rank) FROM table_name_2 WHERE lpga_wins < 2 AND year = 2005 AND earnings__$_ < 615 OFFSET 499
CREATE TABLE INST, Here is a database schema( table schema);
In 2005 the earnings is less than 615499 with less than 2 LPGA wins and what smallest Money list rank?It is not neccessary to use all the tables.
SELECT linda_mccartney FROM table_name_80 WHERE stuart = "electric guitar"
CREATE TABLE INST, Here is a database schema( table schema);
Which Linda McCartney has a Stuart of electric guitar?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_96 WHERE country = "united states" AND place = "t4" AND player = "arnold palmer"
CREATE TABLE INST, Here is a database schema( table schema);
What is To Par when Country is "United States" when Place is "T4" and when Player is "Arnold Palmer"?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 6-1 6-3
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the tournament with a Score of 6-1 6-3?.It is not neccessary to use all the tables.
SELECT COUNT(ministries) FROM table_21422977_1 WHERE nº = 3
CREATE TABLE INST, Here is a database schema( table schema);
When nº is 3 what are all the ministires?It is not neccessary to use all the tables.
SELECT COUNT(rnd) FROM table_27965906_2 WHERE ss_winning_car = "Kim Baker, Bobby Archer, Tommy Archer"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of rnd for kim baker bobby archer tommy archerIt is not neccessary to use all the tables.
SELECT COUNT(earnings___) AS $__ FROM table_name_43 WHERE events < 28 AND rank < 3
CREATE TABLE INST, Here is a database schema( table schema);
How much money did the player ranked above 3 with under 28 events earn?It is not neccessary to use all the tables.
SELECT MIN No. in season FROM table WHERE Directed by = Anthony Hemingway
CREATE TABLE INST, Here is a database schema( table schema);
Where is the first season that Anthony Hemingway appears?.It is not neccessary to use all the tables.
SELECT goberman FROM table_name_9 WHERE obrist = "2%" AND merkley = "34%"
CREATE TABLE INST, Here is a database schema( table schema);
Which Goberman has an Obrist of 2% and a Merkley of 34%?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_52 WHERE venue = "mt smart stadium" AND year = 1996
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponent for 1996 at the mt smart stadium venueIt is not neccessary to use all the tables.
SELECT psd___pc FROM table_name_65 WHERE date = "18-22/04/2009"
CREATE TABLE INST, Here is a database schema( table schema);
What is the psd-pc for 18-22/04/2009?It is not neccessary to use all the tables.
SELECT score FROM table_name_70 WHERE date = "october 29, 2008"
CREATE TABLE INST, Here is a database schema( table schema);
Which score has a Date of october 29 2008?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Team 2 = usl dunkerque (d2)
CREATE TABLE INST, Here is a database schema( table schema);
What was the Score of the match with USL Dunkerque (d2) as Team 2?.It is not neccessary to use all the tables.
SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"
CREATE TABLE INST, Here is a database schema( table schema);
How many series had viewers totaling 23.93 million?It is not neccessary to use all the tables.
SELECT COUNT("Per\u00adcent\u00adage") FROM table_21910 WHERE "Rank" = '51'
CREATE TABLE INST, Here is a database schema( table schema);
This constellation with a ranking of 51 has how many percentages on record?It is not neccessary to use all the tables.
SELECT Birth FROM table WHERE Became Queen = 15 april 1820
CREATE TABLE INST, Here is a database schema( table schema);
When was the person who became queen on 15 April 1820 born?.It is not neccessary to use all the tables.
SELECT Power FROM table WHERE City of license = beaver creek
CREATE TABLE INST, Here is a database schema( table schema);
What is the power when the city of license is Beaver Creek?.It is not neccessary to use all the tables.
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"
CREATE TABLE INST, Here is a database schema( table schema);
What is the club/province of Sireli Bobo who plays wing and has less than 24 caps?It is not neccessary to use all the tables.
SELECT competition FROM table_name_68 WHERE result = "3-1"
CREATE TABLE INST, Here is a database schema( table schema);
Which competition with a result of 3-1?It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Region = european union
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the format for european union.It is not neccessary to use all the tables.
SELECT AVG Tier FROM table WHERE Postseason = – AND Season = 2012–13
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Tier when the postseason shows -, and the season is 2012–13?.It is not neccessary to use all the tables.
SELECT Proper velocity w dx/dτ in units of c FROM table WHERE Lorentz factor γ dt/dτ = E/mc 2 = √5 ≅ 2.236
CREATE TABLE INST, Here is a database schema( table schema);
If the lorentz factor γ dt/dτ = e/mc 2 is √5 ≅ 2.236, what is the proper velocity w dx/dτ in units of c?.It is not neccessary to use all the tables.
SELECT close_ranged_weapons FROM table_27704991_1 WHERE armor = "Bronze cuirass , Linothorax"
CREATE TABLE INST, Here is a database schema( table schema);
If the armor is bronze cuirass linothorax what are the close ranged weapons?It is not neccessary to use all the tables.
SELECT MIN Position FROM table WHERE Goal Difference = -22 AND Points > 5
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest position with a -22 goal difference and more than 5 points?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = May 11
CREATE TABLE INST, Here is a database schema( table schema);
What was the score in the game on May 11? .It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Record = 84-56
CREATE TABLE INST, Here is a database schema( table schema);
What game score was there for the team with a record of 84-56?.It is not neccessary to use all the tables.
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID)
CREATE TABLE INST, Here is a database schema( table schema);
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by time, and order by the Y in asc.It is not neccessary to use all the tables.
SELECT city_of_license FROM table_name_20 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 years FROM table_name_16 WHERE area = "rangitoto"
CREATE TABLE INST, Here is a database schema( table schema);
Which years have an Area of rangitoto?It is not neccessary to use all the tables.
SELECT first_elected FROM table_1341453_40 WHERE incumbent = "Bud Shuster"
CREATE TABLE INST, Here is a database schema( table schema);
When was incumbent Bud Shuster first elected?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Iron Chef = Hiroyuki Sakai
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner when the iron chef is hiroyuki sakai?.It is not neccessary to use all the tables.
SELECT Host city FROM table 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 Recognised Seats FROM table WHERE Discipline = Pharmacology
CREATE TABLE INST, Here is a database schema( table schema);
Name the recognised seats for pharmacology.It is not neccessary to use all the tables.
SELECT MAX(number_in_series) FROM table_1231892_4 WHERE broadcast_order = "S04 E07"
CREATE TABLE INST, Here is a database schema( table schema);
What's the series number of the episode with a broadcast order s04 e07?It is not neccessary to use all the tables.
SELECT Medal FROM table WHERE Event = men's light welterweight AND Games = 1996 atlanta
CREATE TABLE INST, Here is a database schema( table schema);
What medal was won in the men's light welterweight event at the 1996 Atlanta games?.It is not neccessary to use all the tables.
SELECT writer FROM table_name_89 WHERE producer = "phil collinson" AND director = "alice troughton"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the writer that the director was Alice Troughton and the producer was Phil Collinson?It is not neccessary to use all the tables.
SELECT engine FROM table_name_64 WHERE chassis = "lotus 16"
CREATE TABLE INST, Here is a database schema( table schema);
What model engine has a lotus 16 chassis?It is not neccessary to use all the tables.
SELECT MIN Number in Fleet FROM table WHERE Chassis Manufacturer = Scania AND Fleet Numbers = 3230
CREATE TABLE INST, Here is a database schema( table schema);
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230?.It is not neccessary to use all the tables.
SELECT store_id FROM customer GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which store has most the customers?It is not neccessary to use all the tables.
SELECT COUNT Runs Conceded FROM table WHERE Overs Bowled = 53
CREATE TABLE INST, Here is a database schema( table schema);
Name the runs conceded where overs bowled is 53.It is not neccessary to use all the tables.
SELECT MAX Joined FROM table WHERE Current Conference = Dropped athletics
CREATE TABLE INST, Here is a database schema( table schema);
What joined year does Dropped Athletics have?.It is not neccessary to use all the tables.
SELECT MIN(no_in_season) FROM table_19897294_10 WHERE no_in_series = "US6"
CREATE TABLE INST, Here is a database schema( table schema);
What's the season number of the episode with series number US6?It is not neccessary to use all the tables.
SELECT course FROM table_name_58 WHERE type = "team time trial"
CREATE TABLE INST, Here is a database schema( table schema);
Name the course for team time trialIt 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 prescriptions.formulary_drug_cd = "OXYM15"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients have drug code oxym15?It is not neccessary to use all the tables.
SELECT AVG(draw) FROM table_name_67 WHERE performer = "jenny newman" AND points < 77
CREATE TABLE INST, Here is a database schema( table schema);
Which Draw has a Performer of jenny newman and Points smaller than 77?It is not neccessary to use all the tables.
SELECT AVG(played) FROM table_name_3 WHERE position > 3 AND against < 27 AND lost < 6
CREATE TABLE INST, Here is a database schema( table schema);
What is the average games Played with positions higher than 3 that have goals Against less than 27 and a Lost games smaller than 6?It is not neccessary to use all the tables.
SELECT venue FROM table_name_22 WHERE date = "27-02-2003"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Venue with a Date with 27-02-2003?It is not neccessary to use all the tables.
SELECT COUNT("No.") FROM table_20271 WHERE "Runner(s)-up" = 'Howard Clark'
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of numbers for howard clarkIt is not neccessary to use all the tables.
SELECT Date FROM table WHERE Result = won AND Score = 1-0
CREATE TABLE INST, Here is a database schema( table schema);
Which date has a Result of won, and a Score of 1-0?.It is not neccessary to use all the tables.
SELECT SUM(population_2001_census) FROM table_name_10 WHERE population_1991_census = 476 OFFSET 815
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of Population 2001 Census that has 476815 in Population 1991 Census?It is not neccessary to use all the tables.
SELECT COUNT("#") FROM table_19398 WHERE "Date of Situation" = '23 January 2003'
CREATE TABLE INST, Here is a database schema( table schema);
How many # entries are there for the date of situation of 23 January 2003?It is not neccessary to use all the tables.
SELECT road_team FROM table_name_67 WHERE result = "86-84"
CREATE TABLE INST, Here is a database schema( table schema);
What road team has 86-84 as the result?It is not neccessary to use all the tables.
SELECT Televote Points FROM table WHERE Jury Points = 0 AND Draw = 23
CREATE TABLE INST, Here is a database schema( table schema);
What is the televote points for 0 jury points and 23 draws?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = 1987
CREATE TABLE INST, Here is a database schema( table schema);
What was his record in 1987?.It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_69 WHERE routine_score = 26.6
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the total for a routine score of 26.6?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT (publication.title)) FROM journal, publication WHERE journal.name = 'PVLDB' AND publication.jid = journal.jid
CREATE TABLE INST, Here is a database schema( table schema);
return me the number of papers on PVLDB .It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_65 WHERE class = "125cc" AND team = "mv agusta" AND year > 1957
CREATE TABLE INST, Here is a database schema( table schema);
Name the most points for class of 125cc and team of mv agusta with year more than 1957It is not neccessary to use all the tables.
SELECT MIN Round FROM table WHERE Name = paul hubbard
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest round for Paul Hubbard?.It is not neccessary to use all the tables.
SELECT selection_show FROM table_name_86 WHERE semi_final_heat_host = "no semi final/heat" AND year_s_ = "1969"
CREATE TABLE INST, Here is a database schema( table schema);
What is the selection show in 1969 when the Semi final/heat host shows there was no semi final/heat.It is not neccessary to use all the tables.
SELECT Pick FROM table WHERE School/Club Team = kentucky
CREATE TABLE INST, Here is a database schema( table schema);
Which pick has a school/club team that is kentucky?.It is not neccessary to use all the tables.
SELECT Passengers FROM table WHERE Carriers = air canada
CREATE TABLE INST, Here is a database schema( table schema);
Which Passengers have Carriers of air canada?.It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_12576536_1 WHERE population__woocoo_ = 2700
CREATE TABLE INST, Here is a database schema( table schema);
Name the most year when population of woocoo is 2700It is not neccessary to use all the tables.
SELECT Points for FROM table WHERE Played = 22 AND Tries against = 68
CREATE TABLE INST, Here is a database schema( table schema);
what is the points for when the played is 22 and tries against is 68?.It is not neccessary to use all the tables.
SELECT date FROM table_name_40 WHERE game_site = "lincoln financial field"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the game at Lincoln Financial Field?It is not neccessary to use all the tables.
SELECT High points FROM table WHERE Date = march 29
CREATE TABLE INST, Here is a database schema( table schema);
What were the high points on March 29?.It is not neccessary to use all the tables.
SELECT "High rebounds" FROM table_25881 WHERE "Game" = '29'
CREATE TABLE INST, Here is a database schema( table schema);
Who tied for highest rebounds in game 29?It is not neccessary to use all the tables.
SELECT Range FROM mountain GROUP BY Range ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the range that has the most number of mountains.It is not neccessary to use all the tables.
SELECT open_1st_viii FROM table_11318462_5 WHERE u15_4th_iv = "GT"
CREATE TABLE INST, Here is a database schema( table schema);
what are all the open 1st viii with u15 4th iv being gtIt is not neccessary to use all the tables.
SELECT SUM Spartak FROM table WHERE Played = 102 AND Draw < 19
CREATE TABLE INST, Here is a database schema( table schema);
what is the sum of spartak when played is 102 and draw is less than 19?.It is not neccessary to use all the tables.
SELECT Stage FROM table WHERE Winner = lucien van impe
CREATE TABLE INST, Here is a database schema( table schema);
Which stage has a Winner of lucien van impe?.It is not neccessary to use all the tables.
SELECT class FROM table_name_1 WHERE no_built < 12 AND operator = "southern"
CREATE TABLE INST, Here is a database schema( table schema);
What class has less than 12 numbers built operated by southern?It is not neccessary to use all the tables.
SELECT MIN("Year") FROM table_28310
CREATE TABLE INST, Here is a database schema( table schema);
What was the earliest year?It is not neccessary to use all the tables.
SELECT Model FROM table WHERE Years = 2011 2012-
CREATE TABLE INST, Here is a database schema( table schema);
What is the model that was made in the years 2011 2012-?.It is not neccessary to use all the tables.
SELECT COUNT 1920s FROM table WHERE 1960s = 0 AND 2000s to date < 4 AND 1930s > 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number in the 1920s that has 0 in the 1960s, and less than 4 in the 2000s, and more than 3 in the 1930s?.It is not neccessary to use all the tables.
SELECT comment FROM table_1147701_4 WHERE model_name = "2.4 (2001-2007)"
CREATE TABLE INST, Here is a database schema( table schema);
what's the comment with model name being 2.4 (2001-2007)It is not neccessary to use all the tables.
SELECT COUNT Points FROM table WHERE Lost < 4
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the total number of points for lost less than 4.It is not neccessary to use all the tables.
SELECT COUNT(verbs) FROM table_1977630_2 WHERE yo = "sienta"
CREATE TABLE INST, Here is a database schema( table schema);
how many verbs have the yo form as sienta?It is not neccessary to use all the tables.
SELECT COUNT Pleasure FROM table WHERE Psychological dependence > 1.9 AND Drug = benzodiazepines
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of Pleasure(s), when Psychological Dependence is greater than 1.9, and when Drug is "Benzodiazepines"?.It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Driver = shinji nakano
CREATE TABLE INST, Here is a database schema( table schema);
Which constructor had Shinji Nakano as a driver?.It is not neccessary to use all the tables.
SELECT MIN("Goals") FROM table_15160 WHERE "Leading Scorer" = 'ian rush'
CREATE TABLE INST, Here is a database schema( table schema);
Leading Scorer of Ian rush is what lowest # of goals?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-50099')) AND medication.drugname = 'furosemide 80 mg po tabs' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-13 month')
CREATE TABLE INST, Here is a database schema( table schema);
patient 006-50099 was prescribed furosemide 80 mg po tabs until 13 months ago?It is not neccessary to use all the tables.
SELECT percentage_of_total_area FROM table_15555661_2 WHERE area__km²_ = 1782252
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage of total area in the ecozone that the area is 1782252 km2?It is not neccessary to use all the tables.
SELECT COUNT(name) FROM table_2500440_1 WHERE change___percentage_ = "-19.3"
CREATE TABLE INST, Here is a database schema( table schema);
What place is there a change of -19.3?It is not neccessary to use all the tables.
SELECT "Team" FROM table_29737 WHERE "High points" = 'Anthony Morrow (24)'
CREATE TABLE INST, Here is a database schema( table schema);
If the high points were by Anthony Morrow (24), what was the team?It is not neccessary to use all the tables.
SELECT locality FROM table_name_47 WHERE ofsted < 106478 AND school = "meadowbank primary and nursery school"
CREATE TABLE INST, Here is a database schema( table schema);
Where is the locality with Ofsted less than 106478 for Meadowbank Primary and Nursery School?It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Opponent = rudy martin
CREATE TABLE INST, Here is a database schema( table schema);
What was the time when his opponent was Rudy Martin?.It is not neccessary to use all the tables.
SELECT COUNT Area (km 2 ) FROM table WHERE City / Municipality = Manolo Fortich
CREATE TABLE INST, Here is a database schema( table schema);
How many places are named manolo fortich?.It is not neccessary to use all the tables.
SELECT MIN Goondiwindi FROM table WHERE Inglewood > 2,586 AND Year > 2001
CREATE TABLE INST, Here is a database schema( table schema);
What is the lost amount in Goondiwindi after 2001, and Inglewood had more than 2,586?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Away = ottawa swans
CREATE TABLE INST, Here is a database schema( table schema);
On what date were the Ottawa Swans the away team?.It is not neccessary to use all the tables.
SELECT country FROM table_name_8 WHERE player = "dutch harrison"
CREATE TABLE INST, Here is a database schema( table schema);
What is Country when Player is "Dutch Harrison"?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_62 WHERE laps < 66 AND grid = 15
CREATE TABLE INST, Here is a database schema( table schema);
What was the time when the laps were smaller than 66 and the grid was 15?It is not neccessary to use all the tables.
SELECT code FROM table_name_7 WHERE capacity = "1,461cc" AND name = "1.5 dci 110"
CREATE TABLE INST, Here is a database schema( table schema);
What is the code of 1.5 dci 110, which has a capacity of 1,461cc?It is not neccessary to use all the tables.
SELECT COUNT Crowd FROM table WHERE Away team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
What was the crowd size when Essendon was the away team?.It is not neccessary to use all the tables.
SELECT SUM Laps FROM table WHERE Driver = david coulthard AND Grid < 14
CREATE TABLE INST, Here is a database schema( table schema);
How many Laps have a Driver of david coulthard, and a Grid smaller than 14?.It is not neccessary to use all the tables.
SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN course ON course.course_id = course_offering.course_id WHERE course.name LIKE '%Sponsorship Linked Marketing%' AND semester.semester = 'Winter' AND semester.year = 2017
CREATE TABLE INST, Here is a database schema( table schema);
Next Winter , who 's teaching Sponsorship Linked Marketing ?It is not neccessary to use all the tables.
SELECT score FROM table_name_58 WHERE opponent = "bornor regis town"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when Bornor Regis Town was the opponent?It is not neccessary to use all the tables.
SELECT home_team FROM table_name_12 WHERE tie_no = "44"
CREATE TABLE INST, Here is a database schema( table schema);
Which home team has 44 ties?It is not neccessary to use all the tables.