sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT MAX Field goals FROM table WHERE Player = Walter Rheinschild
CREATE TABLE INST, Here is a database schema( table schema);
How many field goals did Walter Rheinschild have? .It is not neccessary to use all the tables.
SELECT game FROM table_name_77 WHERE road_team = "syracuse" AND result = "109-82"
CREATE TABLE INST, Here is a database schema( table schema);
What is Game when Road Team is "Syracuse" and when Result is "109-82"?It is not neccessary to use all the tables.
SELECT height_ft___m FROM table_name_32 WHERE rank = "11"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Height of rank 11?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = Richmond
CREATE TABLE INST, Here is a database schema( table schema);
What are the home team scores when richmond is the home team?.It is not neccessary to use all the tables.
SELECT AVG(top_10) FROM table_name_37 WHERE wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Top-10 when Wins is less than 0?It is not neccessary to use all the tables.
SELECT time_retired FROM table_name_89 WHERE constructor = "source:"
CREATE TABLE INST, Here is a database schema( table schema);
What's the time/retired for constructor source:?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = mcg
CREATE TABLE INST, Here is a database schema( table schema);
I want to know the home team for mcg venue.It is not neccessary to use all the tables.
SELECT chassis FROM table_name_69 WHERE year > 1959 AND engine = "climax l4"
CREATE TABLE INST, Here is a database schema( table schema);
What company built the chassis for a year later than 1959 and a climax l4 engine?It is not neccessary to use all the tables.
SELECT MIN No. in season FROM table WHERE Production code = 210
CREATE TABLE INST, Here is a database schema( table schema);
What season number in the season has production code 210?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_50 WHERE result = "3-2"
CREATE TABLE INST, Here is a database schema( table schema);
What was the venue when the result was 3-2?It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Driver = scott riggs AND Laps > 400
CREATE TABLE INST, Here is a database schema( table schema);
What was Scott Riggs points when he had more than 400 laps?.It is not neccessary to use all the tables.
SELECT Table diameter FROM table WHERE Crown height = 14.45%
CREATE TABLE INST, Here is a database schema( table schema);
Which Table diameter has a Crown height of 14.45%?.It is not neccessary to use all the tables.
SELECT team_1 FROM table_name_75 WHERE team_2 = "cbm valladolid"
CREATE TABLE INST, Here is a database schema( table schema);
Which team 1 has cbm valladolid as team 2?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team score = 13.11 (89)
CREATE TABLE INST, Here is a database schema( table schema);
Which Venue has a Home team score of 13.11 (89)?.It is not neccessary to use all the tables.
SELECT MAX(crowd) FROM table_name_86 WHERE away_team = "geelong"
CREATE TABLE INST, Here is a database schema( table schema);
When the away team is Geelong what is the highest crowd count?It is not neccessary to use all the tables.
SELECT result FROM table_17120964_5 WHERE man_of_the_match = "Lukas Smital" AND venue = "Home"
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for lukas smital and homeIt is not neccessary to use all the tables.
SELECT COUNT(episode__number) FROM table_22353769_3 WHERE viewers__millions_ = "3.63"
CREATE TABLE INST, Here is a database schema( table schema);
How many epsidode(s) had 3.63 million viewers?It is not neccessary to use all the tables.
SELECT perpetrator FROM table_name_85 WHERE location = "baghdad"
CREATE TABLE INST, Here is a database schema( table schema);
Who went on a rampage in Baghdad?It is not neccessary to use all the tables.
SELECT COUNT Draw FROM table WHERE Lost > 11 AND Match < 14
CREATE TABLE INST, Here is a database schema( table schema);
How many draws correspond to more than 11 losses in a match less than 14?.It is not neccessary to use all the tables.
SELECT team_1 FROM table_name_75 WHERE team_2 = "cbm valladolid"
CREATE TABLE INST, Here is a database schema( table schema);
Which team 1 has cbm valladolid as team 2?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Result = 7-0
CREATE TABLE INST, Here is a database schema( table schema);
What score has 7-0 as the result?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Visitor = warriors
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team of the game with Warriors as the visitor team?.It is not neccessary to use all the tables.
SELECT middle_name, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name
CREATE TABLE INST, Here is a database schema( table schema);
Give me the comparison about author_tutor_ATB over the middle_name by a bar chart.It is not neccessary to use all the tables.
SELECT MAX(first_elected) FROM table_name_52 WHERE district = "illinois 3"
CREATE TABLE INST, Here is a database schema( table schema);
Which First elected has a District of illinois 3?It is not neccessary to use all the tables.
SELECT Lane FROM table WHERE React > 0.209 AND Rank > 6
CREATE TABLE INST, Here is a database schema( table schema);
What Lane has a 0.209 React entered with a Rank entry that is larger than 6?.It is not neccessary to use all the tables.
SELECT tries_against FROM table_17941032_3 WHERE tries_for = "30"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tries against when tries for is 30It is not neccessary to use all the tables.
SELECT COUNT(*) FROM table_204_376 WHERE "opponents" = 'palau'
CREATE TABLE INST, Here is a database schema( table schema);
how many times has palau been an opponent ?It is not neccessary to use all the tables.
SELECT COUNT(lane) FROM table_name_72 WHERE time = "2:08.11" AND rank > 3
CREATE TABLE INST, Here is a database schema( table schema);
How many Lanes have a rank higher than 3 with a time of 2:08.11?It is not neccessary to use all the tables.
SELECT MIN Total Reb FROM table WHERE Player = mcalarney AND 3FGM < 103
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest total reb of player Mcalarney, who has a 3FGM less than 103?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND microlab.culturesite = 'other'
CREATE TABLE INST, Here is a database schema( table schema);
have there been any microbiological other tests for patient 031-3355?It is not neccessary to use all the tables.
SELECT school FROM table_name_29 WHERE colors = "blue and gold"
CREATE TABLE INST, Here is a database schema( table schema);
What school is the team from that has the colors blue and gold?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team score = 9.15 (69)
CREATE TABLE INST, Here is a database schema( table schema);
Which Away team has a Home score of 9.15 (69)?.It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Original title = sahə
CREATE TABLE INST, Here is a database schema( table schema);
What is Director, when Original Title is "Sahə"?.It is not neccessary to use all the tables.
SELECT operator FROM table_name_81 WHERE berths > 1 AND depth__m_ = "12.5-15.5"
CREATE TABLE INST, Here is a database schema( table schema);
Name the operator with berths more than 1 and depth of 12.5-15.5It is not neccessary to use all the tables.
SELECT Overall FHT points FROM table WHERE Name = denis kornilov
CREATE TABLE INST, Here is a database schema( table schema);
What is the overall FHT points for Denis Kornilov?.It is not neccessary to use all the tables.
SELECT Club FROM table WHERE Founded < 1882 AND League = fa premier league
CREATE TABLE INST, Here is a database schema( table schema);
Which Club has a Founded smaller than 1882, and a League of fa premier league?.It is not neccessary to use all the tables.
SELECT Creation, COUNT(Creation) FROM department ORDER BY Creation
CREATE TABLE INST, Here is a database schema( table schema);
Show the number of departments created in different year and bin creation time by year in a line chart, and sort Creation in ascending order please.It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Attendance = 14 november 1998 AND Away team = hayes
CREATE TABLE INST, Here is a database schema( table schema);
Which Tie # that has an Attendance of 14 november 1998, and an Away team of hayes?.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_22 WHERE location = "bangkok"
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest Year with the Location of Bangkok?It is not neccessary to use all the tables.
SELECT MIN(league) AS Cup FROM table_22683369_8
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest number of points scored in the league cup?It is not neccessary to use all the tables.
SELECT surface FROM table_name_72 WHERE date = "october 10, 2004"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface for October 10 2004?It is not neccessary to use all the tables.
SELECT locomotive_type FROM table_15827397_1 WHERE status = "Static display"
CREATE TABLE INST, Here is a database schema( table schema);
Which locomotive type has a status in static displayIt is not neccessary to use all the tables.
SELECT Date FROM table WHERE High assists = mike taylor (5)
CREATE TABLE INST, Here is a database schema( table schema);
What day was the high assist Mike Taylor (5)?.It is not neccessary to use all the tables.
SELECT Genre FROM table WHERE Station = class 95fm
CREATE TABLE INST, Here is a database schema( table schema);
What genre has a station of Class 95FM?.It is not neccessary to use all the tables.
SELECT 2012 FROM table WHERE 2005 = 1r
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE 2012 WITH 2005 OF 1R?.It is not neccessary to use all the tables.
SELECT COUNT(horizontal) FROM table_15928363_1 WHERE framerate___hz__ = "25"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of horizontal when framerate hz is 25It is not neccessary to use all the tables.
SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = "left"
CREATE TABLE INST, Here is a database schema( table schema);
List all of the ids for left-footed players with a height between 180cm and 190cm.It is not neccessary to use all the tables.
SELECT "McCain%" FROM table_23940 WHERE "County" = 'Copiah'
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of the votes in Copiah did McCain get?It is not neccessary to use all the tables.
SELECT MAX Overall Rank FROM table WHERE League = NL/UA
CREATE TABLE INST, Here is a database schema( table schema);
Name the most overall rank for nl/ua league.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_61 WHERE total < 284 AND player = "jeff sluman"
CREATE TABLE INST, Here is a database schema( table schema);
What was Jeff Sluman's To par when his total was smaller than 284?It is not neccessary to use all the tables.
SELECT "Directed by" FROM table_22362 WHERE "No. in season" = '1'
CREATE TABLE INST, Here is a database schema( table schema);
Who directed season 1?It is not neccessary to use all the tables.
SELECT high_points FROM table_17311783_9 WHERE team = "Cleveland"
CREATE TABLE INST, Here is a database schema( table schema);
Who had the high point total against cleveland?It is not neccessary to use all the tables.
SELECT SUM Played FROM table WHERE Goals Against = 45 AND Goals For < 65
CREATE TABLE INST, Here is a database schema( table schema);
How much Played has Goals Against of 45, and Goals For smaller than 65?.It is not neccessary to use all the tables.
SELECT polyunsaturated_fat FROM table_name_28 WHERE smoke_point = "°c ()" AND total_fat = "100g" AND monounsaturated_fat = "63g"
CREATE TABLE INST, Here is a database schema( table schema);
What is the polyunsaturated fat with a smoke point of °c () a total fat of 100g and 63g of monounsaturated fat?It is not neccessary to use all the tables.
SELECT Margin of victory FROM table WHERE Runner(s)-up = betty burfeindt AND Tournament = pompano beach classic
CREATE TABLE INST, Here is a database schema( table schema);
Which Margin of victory has a Runner(s)-up of betty burfeindt, and a Tournament of pompano beach classic?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE To par = –3 AND Country = united states
CREATE TABLE INST, Here is a database schema( table schema);
WHich Score has a To par of –3, and a Country of united states?.It is not neccessary to use all the tables.
SELECT AVG(silver) FROM table_name_49 WHERE total < 3 AND rank > 9
CREATE TABLE INST, Here is a database schema( table schema);
How many silver medals were won with a total medal of 3 and a rank above 9?It is not neccessary to use all the tables.
SELECT MIN(laps) FROM table_name_14 WHERE grid > 24
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of laps with a grid larger than 24?It is not neccessary to use all the tables.
SELECT goodman FROM table_1014319_1 WHERE total = "31" AND horwood = "7" AND result = "Safe"
CREATE TABLE INST, Here is a database schema( table schema);
What score did Goodman give to all songs with safe results which received a 7 from Horwood and have a total score of 31?It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_38 WHERE country = "uzbekistan" AND time > 11.44
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank in Uzbekistan with a time larger than 11.44?It is not neccessary to use all the tables.
SELECT match_points FROM table_27987767_2 WHERE losers = "Gran Parma"
CREATE TABLE INST, Here is a database schema( table schema);
how many match points did gran parma lostIt is not neccessary to use all the tables.
SELECT Natural Wood Keyboard FROM table WHERE Model = clps306
CREATE TABLE INST, Here is a database schema( table schema);
Which is Natural Wood Keyboard with a Model of clps306?.It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_27 WHERE date = "17/11/1990" AND score = "5–0" AND away_team = "carlisle united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tie no of the Carlisle United Away game on 17/11/1990 with a Score of 5–0?It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Date = December 2, 1962
CREATE TABLE INST, Here is a database schema( table schema);
What week of the season did the date December 2, 1962 fall on?.It is not neccessary to use all the tables.
SELECT COUNT Pick FROM table WHERE Player = Alyn McCauley
CREATE TABLE INST, Here is a database schema( table schema);
How many times did Alyn McCauley get picked?.It is not neccessary to use all the tables.
SELECT played FROM table_name_94 WHERE "club" = "club"
CREATE TABLE INST, Here is a database schema( table schema);
Which Played has a Club of club?It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10
CREATE TABLE INST, Here is a database schema( table schema);
For nations with more than 6 silvers and more than 10 golds what is the lowest total?It is not neccessary to use all the tables.
SELECT high_points FROM table_23285761_8 WHERE location_attendance = "Pepsi Center 19,155"
CREATE TABLE INST, Here is a database schema( table schema);
Name the high points for pepsi center 19155It is not neccessary to use all the tables.
SELECT net_profit__€m_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19"
CREATE TABLE INST, Here is a database schema( table schema);
Name the net profit for eps beign 1.19It is not neccessary to use all the tables.
SELECT Most laps led FROM table WHERE Location = Monterey, California AND Winning driver = Scott Rarick
CREATE TABLE INST, Here is a database schema( table schema);
Who had the most laps led in monterey, california when scott rarick won the race?.It is not neccessary to use all the tables.
SELECT series FROM table_name_16 WHERE winner = "paul morris"
CREATE TABLE INST, Here is a database schema( table schema);
Which series was won by Paul Morris?It is not neccessary to use all the tables.
SELECT MAX(points_won) FROM table_name_14 WHERE year = "1996"
CREATE TABLE INST, Here is a database schema( table schema);
How many points were won in 1996?It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE U.S. viewers (million) = 3.93
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode seen by 3.93 million people in the US?.It is not neccessary to use all the tables.
SELECT result FROM table_name_92 WHERE score = "58-6"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the match that had a score of 58-6?It is not neccessary to use all the tables.
SELECT Headquarters FROM table WHERE Code = HY
CREATE TABLE INST, Here is a database schema( table schema);
Where is the headquarters of the place whose abbreviation is hy?.It is not neccessary to use all the tables.
SELECT COUNT(population__2011_) FROM table_2562572_37 WHERE cyrillic_name_other_names = "Александрово"
CREATE TABLE INST, Here is a database schema( table schema);
Name the population for александровоIt is not neccessary to use all the tables.
SELECT MAX(gdp_per_capita__us) AS $___2004_ FROM table_name_37 WHERE area__km²_ > 148825.6 AND state = "roraima"
CREATE TABLE INST, Here is a database schema( table schema);
Which GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6 and a State of roraima?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team from st kilda?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Country = united states AND Total = 144
CREATE TABLE INST, Here is a database schema( table schema);
Which player played in the united states and scored a total of 144 points?.It is not neccessary to use all the tables.
SELECT COUNT(Id) FROM Posts AS q WHERE PostTypeId = 1 AND DATEDIFF(m, q.CreationDate, GETDATE()) >= 6 AND AnswerCount >= 1 AND ViewCount >= 1000
CREATE TABLE INST, Here is a database schema( table schema);
Number of questions that would be automatically protected. Enter Query DescriptionIt is not neccessary to use all the tables.
SELECT captain FROM table_name_56 WHERE team = "crystal palace"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the team captain for Crystal Palace?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Attendance = 55,527
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the opponent for attendance of 55,527.It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_48 WHERE engine = "lamborghini v12" AND chassis = "minardi m191b"
CREATE TABLE INST, Here is a database schema( table schema);
What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b?It is not neccessary to use all the tables.
SELECT "Term start" FROM table_46078 WHERE "Name" = 'prime ministers 1939 - 1943'
CREATE TABLE INST, Here is a database schema( table schema);
What is Term Start, when Name is Prime Ministers 1939 - 1943?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 = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'A...
CREATE TABLE INST, Here is a database schema( table schema);
what flights from PHILADELPHIA to ATLANTAIt is not neccessary to use all the tables.
SELECT away_team AS score FROM table_16388478_4 WHERE crowd = 5391
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team score for the game with a crowd of 5391?It is not neccessary to use all the tables.
SELECT MIN(tournaments) FROM table_name_46 WHERE highest_rank = "maegashira 13"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Tournaments with Highest Rank of Maegashira 13?It is not neccessary to use all the tables.
SELECT name FROM airport WHERE name LIKE '%international%'
CREATE TABLE INST, Here is a database schema( table schema);
Which of the airport names contains the word 'international'?It is not neccessary to use all the tables.
SELECT MAX Bike No FROM table WHERE Position = 30
CREATE TABLE INST, Here is a database schema( table schema);
Name the max bike number of position for 30.It is not neccessary to use all the tables.
SELECT result FROM table_name_37 WHERE week = 4
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game on week 4?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Women's singles = no competition
CREATE TABLE INST, Here is a database schema( table schema);
What year was there no competition in Women's singles?.It is not neccessary to use all the tables.
SELECT period FROM table_name_36 WHERE internet_explorer = "53.52%"
CREATE TABLE INST, Here is a database schema( table schema);
What period has 53.52% as the internet explorer?It is not neccessary to use all the tables.
SELECT MIN(industry) FROM table_name_96 WHERE year > 2005 AND agriculture > 11
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Industry when Year is greater than 2005 and when Agriculture is greater than 11?It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_59 WHERE rank = "17" AND gold > 0
CREATE TABLE INST, Here is a database schema( table schema);
Which Total has a Rank of 17 and a Gold larger than 0?It is not neccessary to use all the tables.
SELECT date FROM table_name_64 WHERE record = "27-25"
CREATE TABLE INST, Here is a database schema( table schema);
When was the record 27-25?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Leading lady = muriel evans
CREATE TABLE INST, Here is a database schema( table schema);
Which title had Muriel Evans as leading lady?.It is not neccessary to use all the tables.
SELECT "Directed by" FROM table_73361 WHERE "Title" = 'Freaky Friday'
CREATE TABLE INST, Here is a database schema( table schema);
Who directed 'Freaky Friday'?It is not neccessary to use all the tables.
SELECT literacy_rate___percentage____2001_census FROM table_name_80 WHERE _percentage_increase = "12.66%"
CREATE TABLE INST, Here is a database schema( table schema);
What was the literacy rate published in the 2001 census for the state that saw a 12.66% increase?It is not neccessary to use all the tables.
SELECT Post-1896 Provinces FROM table WHERE Hanja = 全羅道
CREATE TABLE INST, Here is a database schema( table schema);
What is the post-1986 provinces with a 全羅道 Hanja?.It is not neccessary to use all the tables.
SELECT circuit FROM table_30134667_2 WHERE location = "St. Petersburg, Florida"
CREATE TABLE INST, Here is a database schema( table schema);
Which circuit was located in st. petersburg florida?It is not neccessary to use all the tables.