sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT SUM(rank) FROM table_name_61 WHERE athlete = "solomon bayoh" AND time < 22.16
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_3 WHERE name = "stephen myler" AND tries < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many Points have a Name of stephen myler and Tries smaller than 0?It is not neccessary to use all the tables.
SELECT Elementary Schools FROM table WHERE Principal (2013-2014) = Cort Monroe
CREATE TABLE INST, Here is a database schema( table schema);
Which elementary schools list Cort Monroe as the principal from 2013 to 2014?.It is not neccessary to use all the tables.
SELECT points FROM table_name_58 WHERE club = "newport rfc"
CREATE TABLE INST, Here is a database schema( table schema);
How many points did Newport RFC get?It is not neccessary to use all the tables.
SELECT Team #2 FROM table WHERE Team #1 = hapoel tel aviv
CREATE TABLE INST, Here is a database schema( table schema);
Who played against Hapoel tel aviv when they were team #1?.It is not neccessary to use all the tables.
SELECT COUNT("Total") FROM table_41421 WHERE "Play-offs" < '0'
CREATE TABLE INST, Here is a database schema( table schema);
How many totals have a play-off less than 0?It is not neccessary to use all the tables.
SELECT round FROM table_23449363_1 WHERE new_entries_this_round = "24"
CREATE TABLE INST, Here is a database schema( table schema);
Which round had 24 new entries?It is not neccessary to use all the tables.
SELECT location_attendance FROM table_name_43 WHERE opponent = "san francisco warriors" AND game = 25
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance of game 25 when the played the San Francisco Warriors?It is not neccessary to use all the tables.
SELECT AVG Lane FROM table WHERE Heat < 2 AND Name = racheal nachula
CREATE TABLE INST, Here is a database schema( table schema);
What is the average lane racheal nachula has when the heat is less than 2?.It is not neccessary to use all the tables.
SELECT common_name FROM table_26957063_3 WHERE length__aa_ = 1323
CREATE TABLE INST, Here is a database schema( table schema);
What is the common name of the animal whose length (AA) is 1323?It is not neccessary to use all the tables.
SELECT date FROM table_name_77 WHERE partner = "kira nagy"
CREATE TABLE INST, Here is a database schema( table schema);
On what Date was the match with partner Kira Nagy?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Country = scotland AND Name = willie macfarlane
CREATE TABLE INST, Here is a database schema( table schema);
What is the To par of Willie MacFarlane from the country of Scotland?.It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Venue = victoria park
CREATE TABLE INST, Here is a database schema( table schema);
What is the away team score at victoria park?.It is not neccessary to use all the tables.
SELECT AVG District FROM table WHERE 2008 Status = re-election AND Democratic = david price
CREATE TABLE INST, Here is a database schema( table schema);
Which District has a 2008 Status of re-election, and a Democratic david price?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_91 WHERE away_team = "footscray"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the venue that away team footscray played at?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Loss = johnson (9-8)
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game that had a loss of Johnson (9-8)?.It is not neccessary to use all the tables.
SELECT COUNT Place FROM table WHERE Round 1 = beat lee janzen 3&2 AND Year < 1998
CREATE TABLE INST, Here is a database schema( table schema);
Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place?.It is not neccessary to use all the tables.
SELECT company FROM table_250309_1 WHERE plant = "Burnaston"
CREATE TABLE INST, Here is a database schema( table schema);
what is the name ofhte company where the plant is in burnaston?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Rank > 68 AND Capacity = 32,000 AND City = santa fe
CREATE TABLE INST, Here is a database schema( table schema);
Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000?.It is not neccessary to use all the tables.
SELECT district FROM table_1341522_36 WHERE incumbent = "Bill Hefner"
CREATE TABLE INST, Here is a database schema( table schema);
To what district does Bill Hefner belong?It is not neccessary to use all the tables.
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE region = "Maule"
CREATE TABLE INST, Here is a database schema( table schema);
What is the median income of Maule?It is not neccessary to use all the tables.
SELECT date_year FROM table_21436373_5 WHERE attendance = 45010
CREATE TABLE INST, Here is a database schema( table schema);
On what date/s has attendance been 45010?It is not neccessary to use all the tables.
SELECT COUNT High Points FROM table WHERE Record = 21-45
CREATE TABLE INST, Here is a database schema( table schema);
Name the high points for 21-45 record.It is not neccessary to use all the tables.
SELECT haat FROM table_name_34 WHERE facility_id = 65944
CREATE TABLE INST, Here is a database schema( table schema);
Which HAAT has 65944?It is not neccessary to use all the tables.
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-27704')) AND intakeoutput.celllabel = 'po oral' AND intakeoutput.cellpath LIKE '%intake%' AND STRFTIME('%y-%m-%d', intakeoutput.intakeoutputtime) = '2105-05-27'
CREATE TABLE INST, Here is a database schema( table schema);
what was the total amount of po oral intake that patient 029-27704 had on 05/27/2105?It is not neccessary to use all the tables.
SELECT class_aAA FROM table_10399701_2 WHERE class_a = "(tie) Apple Springs/Texline"
CREATE TABLE INST, Here is a database schema( table schema);
Who was Class AAA during the same year that Class A was (tie) Apple Springs/Texline?It is not neccessary to use all the tables.
SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = "black maria film and video festival"
CREATE TABLE INST, Here is a database schema( table schema);
Name the nominated work for 1996 and festival of black maria film and video festivalIt is not neccessary to use all the tables.
SELECT Method FROM table WHERE Round < 3 AND Record = 4-2
CREATE TABLE INST, Here is a database schema( table schema);
What's the method for a record of 4-2 and round smaller than 3?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Grand Prix = austrian grand prix
CREATE TABLE INST, Here is a database schema( table schema);
When was the Austrian Grand Prix?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Score < 67 AND Place = t1 AND Player = tiger woods
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Score = 2:2
CREATE TABLE INST, Here is a database schema( table schema);
Who was at home when the score was 2:2?.It is not neccessary to use all the tables.
SELECT 1991 FROM table_name_92 WHERE 1999 = "2r"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 1991 for 2R 1999?It is not neccessary to use all the tables.
SELECT MAX Norwegian Americans (2000) FROM table WHERE Norwegian Americans (1990) = 9170
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum norwegian americans (2000) where norwegian americans (1990) is 9170.It is not neccessary to use all the tables.
SELECT 4 season FROM table WHERE 2 season = 3 168 673 (2 april 2008)
CREATE TABLE INST, Here is a database schema( table schema);
What is 4 Season, when 2 Season is "3 168 673 (2 April 2008)"?.It is not neccessary to use all the tables.
SELECT Date of appointment FROM table WHERE Team = dundee
CREATE TABLE INST, Here is a database schema( table schema);
What date was Dundee appointed?.It is not neccessary to use all the tables.
SELECT COUNT(performance_return_on_capital__score_) FROM table_name_11 WHERE score__iran_ < 3 AND score__global_ = 266
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3 and the Score (Global) is 266?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_19 WHERE week < 6 AND game_site = "cleveland municipal stadium"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent before week 6 at cleveland municipal stadium?It is not neccessary to use all the tables.
SELECT race AS Winner FROM table_name_53 WHERE race = "australian grand prix"
CREATE TABLE INST, Here is a database schema( table schema);
Who won the australian grand prix?It is not neccessary to use all the tables.
SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.days_stay = "23"
CREATE TABLE INST, Here is a database schema( table schema);
how many male patients have stayed in the hospital for 23 days?It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_28 WHERE date = "1 october 1998"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Attendance when Date is 1 October 1998?It is not neccessary to use all the tables.
SELECT winner_and_score FROM table_name_54 WHERE week = "april 22"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the winner and score during the week of April 22?It is not neccessary to use all the tables.
SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY COUNT(Location) DESC
CREATE TABLE INST, Here is a database schema( table schema);
A bar chart shows how many locations, list by the the number of location from high to low.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = concordia
CREATE TABLE INST, Here is a database schema( table schema);
What p;layer attended Concordia College?.It is not neccessary to use all the tables.
SELECT MAX(draws) FROM table_name_89 WHERE goals_against > 56 AND wins > 14
CREATE TABLE INST, Here is a database schema( table schema);
Name the most draws when goals against is more than 56 and wins is more than 14It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = princes park
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team at princes park?.It is not neccessary to use all the tables.
SELECT component FROM table_11944282_1 WHERE allied_related = "Shared"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the integrated where allied-related is shared?It is not neccessary to use all the tables.
SELECT Goals FROM table WHERE Since < 2007 AND App(GS/Sub) = 97 (69/28)
CREATE TABLE INST, Here is a database schema( table schema);
Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28).It is not neccessary to use all the tables.
SELECT Non AS qatari_female FROM table_26214389_3 WHERE year = 2001
CREATE TABLE INST, Here is a database schema( table schema);
If the year is 2001 what are the non qatari female?It is not neccessary to use all the tables.
SELECT original_release FROM table_name_27 WHERE writer_s_ = "dallas frazier"
CREATE TABLE INST, Here is a database schema( table schema);
What is the original Release date of the Track written by Dallas Frazier?It is not neccessary to use all the tables.
SELECT MAX Round FROM table WHERE Pick < 10 AND Name = tory nixon
CREATE TABLE INST, Here is a database schema( table schema);
Which Round is the highest one that has a Pick smaller than 10, and a Name of tory nixon?.It is not neccessary to use all the tables.
SELECT "Track" FROM table_25291 WHERE "Date" = 'September 12, 1981'
CREATE TABLE INST, Here is a database schema( table schema);
Which track was used on September 12, 1981?It is not neccessary to use all the tables.
SELECT name FROM table_name_60 WHERE round = 8
CREATE TABLE INST, Here is a database schema( table schema);
Who is the person from round 8?It is not neccessary to use all the tables.
SELECT MIN(choice) FROM table_10360656_1
CREATE TABLE INST, Here is a database schema( table schema);
Who was the top picki n the draft?It is not neccessary to use all the tables.
SELECT rounds FROM table_name_50 WHERE tyre = "b" AND engine_† = "ferrari 053"
CREATE TABLE INST, Here is a database schema( table schema);
What are the rounds for the B tyres and Ferrari 053 engine +?It is not neccessary to use all the tables.
SELECT general_classification FROM table_name_21 WHERE points_classification = "daniele bennati" AND young_rider_classification = "morris possoni" AND stage = "3"
CREATE TABLE INST, Here is a database schema( table schema);
What is the general classification of the stage 3 with Daniele Bennati as the points classification and Morris Possoni as the young rider classification.It is not neccessary to use all the tables.
SELECT SUM(grid) FROM table_name_31 WHERE driver = "ralf schumacher" AND laps > 53
CREATE TABLE INST, Here is a database schema( table schema);
What is the grid total for ralf schumacher racing over 53 laps?It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE Viewers (m) > 5.63 AND Households (Rating/Share) = 4.5/7
CREATE TABLE INST, Here is a database schema( table schema);
Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7.It is not neccessary to use all the tables.
SELECT result FROM table_name_21 WHERE record = "5-1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game when the record was 5-1?It is not neccessary to use all the tables.
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "warm"
CREATE TABLE INST, Here is a database schema( table schema);
List the all the distinct names of the products with the characteristic name 'warm'.It is not neccessary to use all the tables.
SELECT Original artist FROM table WHERE Theme = Year They Were Born
CREATE TABLE INST, Here is a database schema( table schema);
Who is the original artist for the theme "Year they were born?".It is not neccessary to use all the tables.
SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge"
CREATE TABLE INST, Here is a database schema( table schema);
Name the average decile for state authority and area of fernridgeIt is not neccessary to use all the tables.
SELECT tipuani_municipality FROM table_2509202_2 WHERE tacacoma_municipality = "6"
CREATE TABLE INST, Here is a database schema( table schema);
tipuani municipality when tacacoma municipality is 6?It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Opponent = minnesota vikings
CREATE TABLE INST, Here is a database schema( table schema);
What game week did the Buccaneers play against the Minnesota Vikings?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = princes park
CREATE TABLE INST, Here is a database schema( table schema);
Which team plays home at Princes Park?.It is not neccessary to use all the tables.
SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = "4.5%"
CREATE TABLE INST, Here is a database schema( table schema);
What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Weight class = lightweight AND Date = february 28, 2009
CREATE TABLE INST, Here is a database schema( table schema);
How many years were lightweight class on february 28, 2009?.It is not neccessary to use all the tables.
SELECT COUNT(official_name) FROM table_170961_2 WHERE area_km_2 = "508.30"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the parish where the area is 508.30?It is not neccessary to use all the tables.
SELECT started FROM table_name_23 WHERE country = "eng" AND loan_club = "sunderland" AND end_source = "south wales echo"
CREATE TABLE INST, Here is a database schema( table schema);
When was the loan started when the coutry is eng the loan club is sunderland and the end source is south wales echo?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a date 21 jul 2007?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = november 15
CREATE TABLE INST, Here is a database schema( table schema);
what is the score on november 15.It is not neccessary to use all the tables.
SELECT MIN Played FROM table WHERE Points = 28-10 AND Goals for > 29
CREATE TABLE INST, Here is a database schema( table schema);
Which is the lowest played with 28-10 points and goals higher than 29?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Rank = 18
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name of the Players with a Rank of 18?.It is not neccessary to use all the tables.
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.22"
CREATE TABLE INST, Here is a database schema( table schema);
What is the director name is the U.S. viewers is 2.22 million?It is not neccessary to use all the tables.
SELECT COUNT(export_volume_of_goods_and_services__percent_change_) FROM table_30133_1 WHERE gdp_at_constant_prices__thb_trillions_ = "3.072"
CREATE TABLE INST, Here is a database schema( table schema);
How many export volume of goods/services values are associated with GDP at constant prices values of 3.072?It is not neccessary to use all the tables.
SELECT date_of_exit FROM table_1160304_2 WHERE chart = "Dutch Albums Top 100"
CREATE TABLE INST, Here is a database schema( table schema);
What is the exit date for the Dutch Albums Top 100 Chart?It is not neccessary to use all the tables.
SELECT COUNT(february) FROM table_1539201_1
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of februariesIt is not neccessary to use all the tables.
SELECT SUM(races) FROM table_name_40 WHERE podiums > 4 AND season = "2007"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the races in the 2007 season which has more than 4 podiums?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Lane = 5 AND Name = abubaker kaki khamis
CREATE TABLE INST, Here is a database schema( table schema);
What country had the runner abubaker kaki khamis in lane 5?.It is not neccessary to use all the tables.
SELECT AVG City FROM table WHERE Total < 2 AND Borough > 0
CREATE TABLE INST, Here is a database schema( table schema);
What average city has a total less than 2, with a borough greater than 0?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE 2006 = a AND 2011 = 3r
CREATE TABLE INST, Here is a database schema( table schema);
What is the tournament with a 2006 value of A and a 2011 value of 3r?.It is not neccessary to use all the tables.
SELECT Name, COUNT(Name) FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID GROUP BY Name ORDER BY COUNT(Name)
CREATE TABLE INST, Here is a database schema( table schema);
I want to compare the number of the names of phones by a bar chart, and display from low to high by the total number.It is not neccessary to use all the tables.
SELECT College FROM table WHERE Player = lance moore category:articles with hcards
CREATE TABLE INST, Here is a database schema( table schema);
What college has Lance Moore Category:articles with hcards?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT major), COUNT(DISTINCT city_code) FROM student
CREATE TABLE INST, Here is a database schema( table schema);
Find the numbers of different majors and cities.It is not neccessary to use all the tables.
SELECT l3_cache FROM table_name_3 WHERE release_price___usd__ = "$440"
CREATE TABLE INST, Here is a database schema( table schema);
What is the L3 cache of the processor with a release price of $440?It is not neccessary to use all the tables.
SELECT COUNT(date_of_polls) FROM table_15329030_1 WHERE state = "Madhya Pradesh"
CREATE TABLE INST, Here is a database schema( table schema);
How many dates of polls occur in the Madhya Pradesh state?It is not neccessary to use all the tables.
SELECT total_fat FROM table_name_60 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "45g"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total fat which has a polyunsaturated fat of 11g and monounsaturated fat of 45gIt is not neccessary to use all the tables.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%INDIA%' OR Location LIKE '%india%' AND Reputation >= 10000 ORDER BY Reputation DESC LIMIT 1000
CREATE TABLE INST, Here is a database schema( table schema);
Top 1000 users from India.It is not neccessary to use all the tables.
SELECT bronze FROM table_name_52 WHERE year = 1998
CREATE TABLE INST, Here is a database schema( table schema);
What's the Bronze with the Year of 1998?It is not neccessary to use all the tables.
SELECT flattening_ratio FROM table_name_79 WHERE equatorial_diameter = "49,528km"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Flattening ratio associated with the Equatorial diameter of 49528km?It is not neccessary to use all the tables.
SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code ORDER BY card_type_code DESC
CREATE TABLE INST, Here is a database schema( table schema);
How many cards in different card type code? Plot a bar chart, rank by the x axis in desc.It is not neccessary to use all the tables.
SELECT MIN(innings) FROM table_2985664_8
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest value for innings?It is not neccessary to use all the tables.
SELECT original_air_date FROM table_27332038_1 WHERE production_code = "2ARG24"
CREATE TABLE INST, Here is a database schema( table schema);
when was the episode with production code "2arg24" originally aired?It is not neccessary to use all the tables.
SELECT chassis FROM table_name_51 WHERE points < 6 AND year = 1961
CREATE TABLE INST, Here is a database schema( table schema);
In 1961 what was the Chassis when the points were lower than 6?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = october 1, 1989
CREATE TABLE INST, Here is a database schema( table schema);
What was the result on October 1, 1989?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Origin time = 14:07
CREATE TABLE INST, Here is a database schema( table schema);
Where was the quake that began at 14:07?.It is not neccessary to use all the tables.
SELECT AVG(points) FROM table_name_78 WHERE small_silver > 9 AND club = "aik" AND bronze > 8
CREATE TABLE INST, Here is a database schema( table schema);
Club aik had over 9 small silver medals and more than 8 bronze medals how many total points did they have?It is not neccessary to use all the tables.
SELECT content FROM table_name_1 WHERE television_service = "ewtn"
CREATE TABLE INST, Here is a database schema( table schema);
What content is provided by the television service ewtn?It is not neccessary to use all the tables.
SELECT MAX No. in season FROM table WHERE U.S. viewers (millions) = 14.37
CREATE TABLE INST, Here is a database schema( table schema);
What's the latest episode in a season where the U.S. viewers totaled 14.37 million?.It is not neccessary to use all the tables.
SELECT Points for FROM table WHERE Points against = 272
CREATE TABLE INST, Here is a database schema( table schema);
What is the value of the item "Points" when the value of the item "Points against" is 272?.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Venue = palmerston park
CREATE TABLE INST, Here is a database schema( table schema);
What is the average attendance for all events held at Palmerston Park venue?.It is not neccessary to use all the tables.