sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT score FROM table_name_46 WHERE record = "15-9"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the game that resulted in a 15-9 record?It is not neccessary to use all the tables.
|
SELECT "First elected" FROM table_73137 WHERE "Result" = 'Re-elected' AND "Incumbent" = 'Brian Higgins'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the first elected for re-elected and brian higginsIt is not neccessary to use all the tables.
|
SELECT t1.name FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id WHERE t2.support_rate < t2.oppose_rate
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Find the names of the candidates whose support percentage is lower than their oppose rate.It is not neccessary to use all the tables.
|
SELECT score FROM table_name_86 WHERE visitor = "minnesota"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the score when Minnesota visited?It is not neccessary to use all the tables.
|
SELECT "name" FROM table_203_221 ORDER BY "matches played" DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
who played the most amount of matches ?It is not neccessary to use all the tables.
|
SELECT notes FROM table_name_10 WHERE rank = 6
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Rank 6 has what notes?It is not neccessary to use all the tables.
|
SELECT college FROM table_name_19 WHERE pick > 6 AND position = "rb" AND round = 28
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which college with a position of rb had a pick larger than 6 in round 28?It is not neccessary to use all the tables.
|
SELECT country FROM table_name_47 WHERE score = 71 - 65 - 69 = 205
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the country when the score is 71-65-69=205?It is not neccessary to use all the tables.
|
SELECT COUNT Fin. Pos FROM table WHERE Points = 15
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If the points is 15, what is the fin. pos?.It is not neccessary to use all the tables.
|
SELECT COUNT(swimsuit) FROM table_11674683_2 WHERE delegate = "Israel"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the number of swimsuit for israelIt is not neccessary to use all the tables.
|
SELECT cfl_team FROM table_name_23 WHERE player = "peter hogarth"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
which CFL team has a player called Peter Hogarth?It is not neccessary to use all the tables.
|
SELECT High rebounds FROM table WHERE Date = May 11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List all high rebound entries from May 11..It is not neccessary to use all the tables.
|
SELECT Position FROM table WHERE Round < 14 AND College = illinois
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Position has a Round smaller than 14, and a College of illinois?.It is not neccessary to use all the tables.
|
SELECT to_par FROM table_name_67 WHERE finish = "t20"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the To par of the player with a Finish of T20?It is not neccessary to use all the tables.
|
SELECT rider FROM table_name_57 WHERE rank < 10 AND time = "1:26.31.20"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the rider who has a rank lower than 10 and a time of 1:26.31.20?It is not neccessary to use all the tables.
|
SELECT MAX("played") FROM table_203_506 WHERE "drawn" >= 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the most number of games played by a team with at least one draw ?It is not neccessary to use all the tables.
|
SELECT date FROM table_21761882_4 WHERE week = 3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the date of the game in week 3?It is not neccessary to use all the tables.
|
SELECT Competition FROM table WHERE Date = may 5, 2001
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What competition has may 5, 2001 as the date?.It is not neccessary to use all the tables.
|
SELECT Original channel FROM table WHERE Programme = going for gold
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which channel did Going for Gold air on?.It is not neccessary to use all the tables.
|
SELECT COUNT Writer FROM table WHERE # = 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many people wrote episode number 2 of the season?.It is not neccessary to use all the tables.
|
SELECT competition FROM table_name_62 WHERE venue = "away" AND man_of_the_match = "n/a"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For what competition was the venue away the n/a the man of the match?It is not neccessary to use all the tables.
|
SELECT SUM(attendance) FROM table_name_39 WHERE score = "17-13"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many people went to the game that had 17-13?It is not neccessary to use all the tables.
|
SELECT Player FROM table WHERE Jersey Number(s) = 2
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which player wears the number 2 on his jersey?.It is not neccessary to use all the tables.
|
SELECT result FROM table_name_27 WHERE score = "22-21"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What resulted in a score of 22-21?It is not neccessary to use all the tables.
|
SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "HYPOXIA"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is maximum days of hospital stay of patients whose primary disease is hypoxia?It is not neccessary to use all the tables.
|
SELECT "Year" FROM table_68679 WHERE "Character" = 'leiloon bala barareh'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the year of the TV series that has a character of Leiloon Bala Barareh?It is not neccessary to use all the tables.
|
SELECT MIN(year) FROM table_name_28 WHERE rank > 85
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest Year when Rank is greater than 85?It is not neccessary to use all the tables.
|
SELECT MAX Week FROM table WHERE Date = october 27, 1968
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the attendance on October 27, 1968?.It is not neccessary to use all the tables.
|
SELECT MIN("Year") FROM table_40510 WHERE "Event" = '100 m' AND "Venue" = 'thessaloniki, greece'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which year was the 100 m event played in Thessaloniki, Greece?It is not neccessary to use all the tables.
|
SELECT "chumps" FROM table_204_269 WHERE "chumps" <> 'chantelle and steve' GROUP BY "chumps" HAVING COUNT(*) = (SELECT COUNT(*) FROM table_204_269 WHERE "chumps" = 'chantelle and steve')
|
CREATE TABLE INST, Here is a database schema( table schema);
|
which couple was the chumps the same amount of times as chantelle and steve ?It is not neccessary to use all the tables.
|
SELECT charity FROM table_12286195_1 WHERE background = "Reality Star"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the charity of the celebrity with the background reality star?It is not neccessary to use all the tables.
|
SELECT Format FROM table WHERE Catalog = f4 87199
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Format o Catalog F4 87199?.It is not neccessary to use all the tables.
|
SELECT COUNT(match) FROM table_name_20 WHERE result = "0:5 (0:3)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the match number that had a result of 0:5 (0:3)?It is not neccessary to use all the tables.
|
SELECT Goals FROM table WHERE Assists > 28 AND Player = steve walker
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is Goals, when Assists is greater than 28, and when Player is Steve Walker?.It is not neccessary to use all the tables.
|
SELECT SUM(wins) FROM table_name_20 WHERE year = 1994
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many wins were there in 1994?It is not neccessary to use all the tables.
|
SELECT "Departure" FROM table_22269 WHERE "Going to" = 'Peterborough East' AND "Arrival" = '12.40'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the departure for Peterborough East whose arrival time is 12.40?It is not neccessary to use all the tables.
|
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 54825) AND prescriptions.drug = 'aspirin ec' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', prescriptions.startdate) = '12' ORDER BY prescriptions.startdate DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what was the last time patient 54825 received a prescription for aspirin ec, in 12/last year?It is not neccessary to use all the tables.
|
SELECT Country FROM table WHERE Score = 69-69-73=211
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What country scored 69-69-73=211?.It is not neccessary to use all the tables.
|
SELECT SUM(population) FROM table_name_21 WHERE county = "mississippi" AND number_of_households < 17 OFFSET 741
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Population has a County of mississippi and a Number of households smaller than 17741?It is not neccessary to use all the tables.
|
SELECT Opponent FROM table WHERE Attendance = 71,740
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Opponent has Attendance of 71,740?.It is not neccessary to use all the tables.
|
SELECT SUM 1 USD = FROM table WHERE Currency = uruguayan peso (uyu) AND 1 Euro = > 25.3797
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the 1USD= that has the Uruguayan Peso (uyu) and 1 Euro is greater than 25.3797?.It is not neccessary to use all the tables.
|
SELECT points_against FROM table_12807904_5 WHERE points = "63"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what are the total points agains the score of 63?It is not neccessary to use all the tables.
|
SELECT "To par" FROM table_50020 WHERE "Country" = 'united states' AND "Place" = 't1' AND "Score" = '76-68=144'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the to par of the player from the United States with a place of t1 and a 76-68=144 score?It is not neccessary to use all the tables.
|
SELECT MIN(trine_dehli_cleve) FROM table_28677723_14 WHERE style = "English Waltz"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the trine dehli cleve for english waltzIt is not neccessary to use all the tables.
|
SELECT District FROM table WHERE Residence = Dublin
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In which district is the residence Dublin?.It is not neccessary to use all the tables.
|
SELECT appointed_by FROM table_name_61 WHERE party = "conservative" AND province__division_ = "ontario" AND date_appointed = "june 18, 1993"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who appointed the conservative from Ontario on June 18 1993?It is not neccessary to use all the tables.
|
SELECT laps FROM table_name_67 WHERE grid = 3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Tell me the laps for 3 gridsIt is not neccessary to use all the tables.
|
SELECT City of License /Market FROM table WHERE Channel TV ( DT ) = 3 (26)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which city of license/market has 3 (26) as their channel tv (dt)?.It is not neccessary to use all the tables.
|
SELECT visitor FROM table_name_86 WHERE date = "april 2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Visitor of the game on April 2?It is not neccessary to use all the tables.
|
SELECT home FROM table_name_87 WHERE visitor = "chicago black hawks" AND score = "2–3"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which home team had a visitor of Chicago Black Hawks with a score of 2–3?It is not neccessary to use all the tables.
|
SELECT volume__hm³_ FROM table_28702208_1 WHERE reservoir = "Tanes"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the volume when the resrvoir is Tanes?It is not neccessary to use all the tables.
|
SELECT "D.O.B." FROM table_37654 WHERE "Throws" = 'r' AND "Position" = 'c' AND "First" = 'torey'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which DOB has Throws of r, and a Position of c, and a First of torey?It is not neccessary to use all the tables.
|
SELECT AVG(year) FROM table_name_14 WHERE chinese_title = "敗犬女王"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
I want the average year of 敗犬女王It is not neccessary to use all the tables.
|
SELECT COUNT Party FROM table WHERE Candidates = Henry E. Barbour (R) 52.1% Henry Hawson (D) 47.9%
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic.It is not neccessary to use all the tables.
|
SELECT nfl_recap FROM table_name_70 WHERE date = "december 24, 2005"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the NFL Recap of the game held on December 24, 2005?It is not neccessary to use all the tables.
|
SELECT Actor's Name FROM table WHERE Film Name = escho raz o voyne
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Tell me the actor's name for escho raz o voyne.It is not neccessary to use all the tables.
|
SELECT type FROM table_name_72 WHERE date = "14th century" AND condition = "preserved"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Type of castle from the 14th Century which Condition is preserved?It is not neccessary to use all the tables.
|
SELECT COUNT(april) FROM table_name_61 WHERE game > 83
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What were the total number of games in April greater than 83?It is not neccessary to use all the tables.
|
SELECT runners_up FROM table_name_48 WHERE winners = "cork city f.c." AND date = "10/05/1998"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?It is not neccessary to use all the tables.
|
SELECT AVG(points) FROM table_name_55 WHERE played < 16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the average points when played is less than 16?It is not neccessary to use all the tables.
|
SELECT Number of Broadband Subscribers FROM table WHERE Population = ~3,644,070
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many broadband subscribers are there where the population is ~3,644,070?.It is not neccessary to use all the tables.
|
SELECT COUNT Episode Number FROM table WHERE Coat Of Cash Wearing Celebrity = Matt Di Angelo
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the total number of episodes for coat of cash wearing celebrity is matt di angelo.It is not neccessary to use all the tables.
|
SELECT first_name, last_name FROM employees WHERE department_id = 70 OR department_id = 90
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the first and last name for those employees who works either in department 70 or 90?It is not neccessary to use all the tables.
|
SELECT AVG Round FROM table WHERE Overall < 187 AND Player = dave stachelski
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the average round where Dave Stachelski was picked smaller than 187..It is not neccessary to use all the tables.
|
SELECT Department FROM table WHERE Small (100ha) = 11370
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which department has a small of 11370? .It is not neccessary to use all the tables.
|
SELECT College FROM table WHERE Round > 1 AND Pick > 163
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is College, when Round is greater than 1, and when Pick is greater than 163?.It is not neccessary to use all the tables.
|
SELECT COUNT Week FROM table WHERE Attendance = 64,116
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many weeks have an attendance of 64,116?.It is not neccessary to use all the tables.
|
SELECT MAX Game FROM table WHERE Date = March 26
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the number of the game played on March 26?.It is not neccessary to use all the tables.
|
SELECT Moving to FROM table WHERE Transfer fee = £300,000
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the item "Moving to", when the Transfer fee is £300,000?.It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT allergytype) FROM Allergy_type
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many different allergy types exist?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_57 WHERE home = "toronto eagles"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What score has Toronto Eagles as the home?It is not neccessary to use all the tables.
|
SELECT Evening Gown FROM table WHERE State = South Dakota
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what's the evening gown where state is south dakota.It is not neccessary to use all the tables.
|
SELECT MIN Wins FROM table WHERE Tournament = totals AND Top-25 > 3
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the smallest number of wins for the Totals Tournament with a Top-25 value greater than 3?.It is not neccessary to use all the tables.
|
SELECT length FROM table_name_29 WHERE junctions = "sh 359 us 59" AND route_name = "fm 2895"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the length of route FM 2895 with junctions sh 359 us 59?It is not neccessary to use all the tables.
|
SELECT Score FROM table WHERE Attendance > 134 AND Home team = workington
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score when the attendance is greater than 134 and Workington is the home team?.It is not neccessary to use all the tables.
|
SELECT pick FROM table_name_97 WHERE name = "robert griffin iii"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the pick for robert griffin iii?It is not neccessary to use all the tables.
|
SELECT famous_for FROM table_14345690_5 WHERE finished = "2nd"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the famous for that finished 2nd?It is not neccessary to use all the tables.
|
SELECT Location Attendance FROM table WHERE Record = 20-12
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What location had a record of 20-12, and how many people attended?.It is not neccessary to use all the tables.
|
SELECT winning_driver FROM table_1140114_5 WHERE circuit = "Sachsenring"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which driver won at the Sachsenring circuit?It is not neccessary to use all the tables.
|
SELECT other FROM table_name_54 WHERE year = "2012"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the other for 2012?It is not neccessary to use all the tables.
|
SELECT Date FROM table WHERE Result = 5–0 AND Opponent = tooting & mitcham
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which date has a Result of 5–0, and an Opponent of tooting & mitcham?.It is not neccessary to use all the tables.
|
SELECT total_votes FROM table_23390604_1 WHERE spoiled_ballots = 3072
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List all the total scores for the election which had 3072 invalid votesIt is not neccessary to use all the tables.
|
SELECT Max 1-min wind mph (km/h) FROM table WHERE Dates active = september22– september28
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Max 1-min wind mph (km/h) that has Dates active on september22– september28?.It is not neccessary to use all the tables.
|
SELECT SUM Roll FROM table WHERE Area = karaka
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the sum roll of Karaka area?.It is not neccessary to use all the tables.
|
SELECT team FROM table_name_18 WHERE make = "dodge" AND year > 2008
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the team when the make is dodge and the year is after 2008?It is not neccessary to use all the tables.
|
SELECT Home team score FROM table WHERE Away team = south melbourne
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the home team score when the away team is south melbourne.It is not neccessary to use all the tables.
|
SELECT choice FROM table_10360656_1 WHERE player_name = "Bill Hill"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What round was Bill Hill drafted?It is not neccessary to use all the tables.
|
SELECT Frequency FROM table WHERE Format = talk
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the frequency of the talk station?.It is not neccessary to use all the tables.
|
SELECT Tournament FROM table WHERE Year > 1973
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What tournament took place after 1973?.It is not neccessary to use all the tables.
|
SELECT away_team AS score FROM table_name_85 WHERE venue = "lake oval"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the team that plays in lake oval?It is not neccessary to use all the tables.
|
SELECT Built FROM table WHERE Location = lovell
|
CREATE TABLE INST, Here is a database schema( table schema);
|
In what year was the bridge in Lovell built?.It is not neccessary to use all the tables.
|
SELECT MAX Round FROM table WHERE Result = loss
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which highest Round has a Result of loss?.It is not neccessary to use all the tables.
|
SELECT MIN Points FROM table WHERE Home = toronto
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest amount of points of the game with toronto as the home team?.It is not neccessary to use all the tables.
|
SELECT Nation FROM table WHERE Performance = 9.69
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which nation ran a time of 9.69 seconds?.It is not neccessary to use all the tables.
|
SELECT Record FROM table WHERE Attendance = 22,713
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the record when the attendance was 22,713?.It is not neccessary to use all the tables.
|
SELECT high_assists FROM table_11963536_11 WHERE date = "May 11"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the high assist total on May 11?It is not neccessary to use all the tables.
|
SELECT score FROM table_name_7 WHERE record = "22-55"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the score of the game where the record was 22-55?It is not neccessary to use all the tables.
|
SELECT MAX 07 A Pts FROM table WHERE Avg = 1.4902
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many 07 A points for the team with 1.4902 average?.It is not neccessary to use all the tables.
|
SELECT MAX(total_seats) FROM table_name_4 WHERE share_of_votes = "33.9%"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
When the share of votes is 33.9% what's the highest total amount of seats?It is not neccessary to use all the tables.
|
SELECT MIN("Points") FROM table_65787 WHERE "Language" = 'portuguese'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the lowest points when the language is Portuguese?It is not neccessary to use all the tables.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.