instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What player was drafted by the philadelphia union? | CREATE TABLE table_27735 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
) | SELECT "Player" FROM table_27735 WHERE "MLS Team" = 'Philadelphia Union' |
What is the name when born is december 30, 1957 detroit, mi? | CREATE TABLE table_1198175_1 (
name VARCHAR,
born VARCHAR
) | SELECT name FROM table_1198175_1 WHERE born = "December 30, 1957 Detroit, MI" |
What is listed for the Wins with a Year of 1989? | CREATE TABLE table_name_84 (
wins VARCHAR,
year VARCHAR
) | SELECT wins FROM table_name_84 WHERE year = 1989 |
What is the name of the athlete from Myanmar? | CREATE TABLE table_name_97 (
athletes VARCHAR,
country VARCHAR
) | SELECT athletes FROM table_name_97 WHERE country = "myanmar" |
Which battle of the planets where ova (harmony gold dub) is solaris? | CREATE TABLE table_21753 (
"Gatchaman" text,
"Battle of the Planets" text,
"G-Force" text,
"Eagle Riders" text,
"OVA (Harmony Gold Dub)" text
) | SELECT "Battle of the Planets" FROM table_21753 WHERE "OVA (Harmony Gold Dub)" = 'Solaris' |
what is the tallest peak in the sierra nevadas ? | CREATE TABLE table_204_25 (
id number,
"rank" number,
"mountain peak" text,
"mountain range" text,
"elevation" text,
"prominence" text,
"isolation" text,
"location" text
) | SELECT "mountain peak" FROM table_204_25 WHERE "mountain range" = 'sierra nevada' ORDER BY "elevation" DESC LIMIT 1 |
who won the election after s. sivaprakasam in the fifth pondicherry assembly ? | CREATE TABLE table_204_54 (
id number,
"pondicherry assembly" text,
"duration" text,
"name of m.l.a." text,
"party affiliation" text,
"election year" number
) | SELECT "name of m.l.a." FROM table_204_54 WHERE "pondicherry assembly" = 'fifth' |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the name , and group by attribute name, I want to sort by the the average of code in desc. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC |
who finished directly before akinremi ? | CREATE TABLE table_204_71 (
id number,
"rank" number,
"heat" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT "name" FROM table_204_71 WHERE "rank" = (SELECT "rank" FROM table_204_71 WHERE "name" = 'christy akinremi') - 1 |
What was the 2nd leg score having an aggregate score of 4-2? | CREATE TABLE table_38613 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "2nd leg" FROM table_38613 WHERE "Aggregate" = '4-2' |
What role was nominated at the Sydney Film Festival? | CREATE TABLE table_name_56 (
role VARCHAR,
festival_organization VARCHAR
) | SELECT role FROM table_name_56 WHERE festival_organization = "sydney film festival" |
Name the school/club team/country for the player that is 6-5 ft | CREATE TABLE table_56338 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"School/Club Team/Country" text
) | SELECT "School/Club Team/Country" FROM table_56338 WHERE "Height in Ft." = '6-5' |
Name the 2012 for 2009 of 1r | CREATE TABLE table_58551 (
"Tournament" text,
"2009" text,
"2011" text,
"2012" text,
"2013" text
) | SELECT "2012" FROM table_58551 WHERE "2009" = '1r' |
Which Round has a Name of john goodyear? | CREATE TABLE table_name_55 (
round VARCHAR,
name VARCHAR
) | SELECT round FROM table_name_55 WHERE name = "john goodyear" |
What is Team 1 Al-Hilal's Agg.? | CREATE TABLE table_71674 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Agg." FROM table_71674 WHERE "Team 1" = 'al-hilal' |
What week were there 56,023 people in attendance? | CREATE TABLE table_62056 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Week") FROM table_62056 WHERE "Attendance" = '56,023' |
What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million? | CREATE TABLE table_name_67 (
share INTEGER,
viewers__m_ VARCHAR,
timeslot_rank VARCHAR
) | SELECT MIN(share) FROM table_name_67 WHERE viewers__m_ < 8.78 AND timeslot_rank < 4 |
Create a pie chart showing how many country across country. | CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
) | SELECT Country, COUNT(Country) FROM artist GROUP BY Country |
I want the score for 30 april 1977 | CREATE TABLE table_31873 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_31873 WHERE "Date" = '30 april 1977' |
What are the first names of all students who are older than 20? | CREATE TABLE lives_in (
stuid number,
dormid number,
room_number number
)
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
) | SELECT fname FROM student WHERE age > 20 |
What is the smallest crowd size for away team Fitzroy? | CREATE TABLE table_name_40 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "fitzroy" |
what is the least silver for germany when gold is more than 4? | CREATE TABLE table_66454 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Silver") FROM table_66454 WHERE "Nation" = 'germany' AND "Gold" > '4' |
who won the senate seat in arkansas | CREATE TABLE table_1133844_4 (
senator VARCHAR,
state__linked_to_summaries_below_ VARCHAR
) | SELECT senator FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "Arkansas" |
What is the air date when the U.S. viewers was 5.50 million? | CREATE TABLE table_17467447_1 (
original_airdate VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT original_airdate FROM table_17467447_1 WHERE us_viewers__million_ = "5.50" |
Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%? | CREATE TABLE table_34089 (
"Driver" text,
"Points" real,
"Season" real,
"Races" real,
"Percentage of possible points" text
) | SELECT "Races" FROM table_34089 WHERE "Points" > '123' AND "Driver" = 'fernando alonso' AND "Percentage of possible points" = '74.44%' |
What numbered game did they play chicago? | CREATE TABLE table_27755603_11 (
game VARCHAR,
team VARCHAR
) | SELECT game FROM table_27755603_11 WHERE team = "Chicago" |
Which player has a nationality of spain? | CREATE TABLE table_name_24 (
player VARCHAR,
nationality VARCHAR
) | SELECT player FROM table_name_24 WHERE nationality = "spain" |
What is the total sum of the goals at competitions with more than 10 draws? | CREATE TABLE table_43363 (
"Competition" text,
"Appearances" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals for" real,
"Goals against" real
) | SELECT SUM("Goals for") FROM table_43363 WHERE "Drawn" > '10' |
What competition has a score greater than 30, a draw less than 5, and a loss larger than 10? | CREATE TABLE table_name_88 (
competition VARCHAR,
lost VARCHAR,
points VARCHAR,
draw VARCHAR
) | SELECT competition FROM table_name_88 WHERE points > 30 AND draw < 5 AND lost > 10 |
Name the total number of ranks for kujalleq with former name of brattahl and population less than 47 | CREATE TABLE table_68047 (
"Rank" real,
"Population" real,
"Name" text,
"Former Name" text,
"Municipality" text
) | SELECT COUNT("Rank") FROM table_68047 WHERE "Municipality" = 'kujalleq' AND "Former Name" = 'brattahlíð' AND "Population" < '47' |
Show the number of the countries that have managers of age above 50 or below 46. | CREATE TABLE train (
Train_ID int,
Train_Num text,
Name text,
From text,
Arrival text,
Railway_ID int
)
CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage (
Railway_ID int,
Manager_ID int,
From_Year text
)
CREATE TABLE manager (
Manager_ID int,
Name text,
Country text,
Working_year_starts text,
Age int,
Level int
) | SELECT Country, COUNT(Country) FROM manager WHERE Age > 50 OR Age < 46 GROUP BY Country |
what was the team 's playoff result in the year after being champions ? | CREATE TABLE table_203_521 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
) | SELECT "playoffs" FROM table_203_521 WHERE "year" = (SELECT "year" FROM table_203_521 WHERE "playoffs" = 'champions') + 1 |
What is the name of episode # 10a? | CREATE TABLE table_2701851_2 (
title VARCHAR,
no_in_series VARCHAR
) | SELECT title FROM table_2701851_2 WHERE no_in_series = "10a" |
Please show different types of artworks with the corresponding number of artworks of each type. | CREATE TABLE festival_detail (
festival_id number,
festival_name text,
chair_name text,
location text,
year number,
num_of_audience number
)
CREATE TABLE nomination (
artwork_id number,
festival_id number,
result text
)
CREATE TABLE artwork (
artwork_id number,
type text,
name text
) | SELECT type, COUNT(*) FROM artwork GROUP BY type |
Who was the director for the film produced by River Films? | CREATE TABLE table_40914 (
"Title" text,
"Director" text,
"Producer" text,
"Production Cost" text,
"Singapore Gross" text
) | SELECT "Director" FROM table_40914 WHERE "Producer" = 'river films' |
When the tries against is 90 how many points are there? | CREATE TABLE table_39094 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points" FROM table_39094 WHERE "Tries against" = '90' |
On what date was a friendly match held at Auckland? | CREATE TABLE table_38154 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
) | SELECT "Date" FROM table_38154 WHERE "Competition" = 'friendly match' AND "Venue" = 'auckland' |
What is the medal named fatuma roba category:articles with hcards for? | CREATE TABLE table_33801 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Medal" FROM table_33801 WHERE "Name" = 'fatuma roba category:articles with hcards' |
What is the lowest Date, when Doubles, II Class is 18, and when Total is less than 164? | CREATE TABLE table_40516 (
"Date" real,
"Doubles, I Class" real,
"Doubles, II Class" real,
"Greater Doubles" real,
"Doubles" real,
"Semidoubles" real,
"Total" real
) | SELECT MIN("Date") FROM table_40516 WHERE "Doubles, II Class" = '18' AND "Total" < '164' |
List the name of the county with the largest population. | CREATE TABLE county_public_safety (
Name VARCHAR,
Population VARCHAR
) | SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1 |
For those records from the products and each product's manufacturer, give me the comparison about the amount of name over the name , and group by attribute name, and rank bars in asc order please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name |
What municipality had 26839 people living in it in 2010? | CREATE TABLE table_216776_2 (
municipality VARCHAR,
population__2010_ VARCHAR
) | SELECT municipality FROM table_216776_2 WHERE population__2010_ = 26839 |
Which production had Rex Robbins as Herbie? | CREATE TABLE table_name_96 (
productions VARCHAR,
herbie VARCHAR
) | SELECT productions FROM table_name_96 WHERE herbie = "rex robbins" |
Name the least pick number for steven turner | CREATE TABLE table_25017530_5 (
pick__number INTEGER,
player VARCHAR
) | SELECT MIN(pick__number) FROM table_25017530_5 WHERE player = "Steven Turner" |
Date of december 29 has what visitor? | CREATE TABLE table_name_9 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_9 WHERE date = "december 29" |
how long did it take for jan urfer to complete run 2 ? | CREATE TABLE table_203_358 (
id number,
"pos." number,
"athlete" text,
"run 1" number,
"run 2" number,
"total" text
) | SELECT "run 2" FROM table_203_358 WHERE "athlete" = 'jan urfer' |
which episode was Transmitted on friday if the episode of '515 the adventures of tintin' was transmitted on monday? | CREATE TABLE table_18173916_8 (
friday VARCHAR,
monday VARCHAR
) | SELECT friday FROM table_18173916_8 WHERE monday = "515 The Adventures of Tintin" |
What bran is the callsign dytc-fm? | CREATE TABLE table_28307 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
) | SELECT "Branding" FROM table_28307 WHERE "Callsign" = 'DYTC-FM' |
what province is the town of temagami ? | CREATE TABLE table_204_944 (
id number,
"mine" text,
"province" text,
"coordinates" text,
"town" text,
"dates" text,
"comments" text
) | SELECT "province" FROM table_204_944 WHERE "town" = 'temagami' |
what is the constellation when the Right ascension ( J2000 ) is 10h18m58.4s? | CREATE TABLE table_53389 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
) | SELECT "Constellation" FROM table_53389 WHERE "Right ascension ( J2000 )" = '10h18m58.4s' |
what is the total number of publisher where first appearance is daredevil #1 | CREATE TABLE table_448 (
"Character(s)" text,
"First Appearance" text,
"Cover Date" text,
"Publisher" text,
"Estimated Value" text
) | SELECT COUNT("Publisher") FROM table_448 WHERE "First Appearance" = 'Daredevil #1' |
What was Team 1 Junior's points? | CREATE TABLE table_27603010_14 (
points VARCHAR,
team__number1 VARCHAR
) | SELECT points FROM table_27603010_14 WHERE team__number1 = "Junior" |
What was the To par for the player whose final score was 67-71=138? | CREATE TABLE table_name_26 (
to_par VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_26 WHERE score = 67 - 71 = 138 |
What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day? | CREATE TABLE table_20922 (
"Country" text,
"Region" text,
"Joined OPEC" real,
"Population (July 2012)" real,
"Area (km\u00b2)" real,
"Production ( bbl /day)" text
) | SELECT MIN("Area (km\u00b2)") FROM table_20922 WHERE "Production ( bbl /day)" = '3,200,000 (12th)' |
When did the Tournament of the Tour Championship take place? | CREATE TABLE table_name_10 (
date VARCHAR,
tournament VARCHAR
) | SELECT date FROM table_name_10 WHERE tournament = "the tour championship" |
What team played in front of 28,536 at an away stadium? | CREATE TABLE table_name_34 (
away_team VARCHAR,
crowd INTEGER
) | SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536 |
Find the id of the customers who have order status both 'On Road' and 'Shipped'. | CREATE TABLE customers (
customer_id VARCHAR
)
CREATE TABLE orders (
customer_id VARCHAR,
order_status VARCHAR
) | SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped" |
What is the Set 5 with a Date that is jun 29? | CREATE TABLE table_42319 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
) | SELECT "Set 5" FROM table_42319 WHERE "Date" = 'jun 29' |
What was the regular season standings for the year when the playoffs reached the conference semifinals and the team did not qualify for the US Open Cup? | CREATE TABLE table_19191 (
"Year" real,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"US Open Cup" text,
"Avg. Attendance" real
) | SELECT "Reg. Season" FROM table_19191 WHERE "Playoffs" = 'Conference Semifinals' AND "US Open Cup" = 'Did not qualify' |
Who was the away team when Melbourne was the home team? | CREATE TABLE table_53022 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_53022 WHERE "Home team" = 'melbourne' |
Name the district for mike rogers | CREATE TABLE table_27290 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_27290 WHERE "Incumbent" = 'Mike Rogers' |
What is the year that there were 0 wins, team AJS, and under 12 points? | CREATE TABLE table_36847 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT COUNT("Year") FROM table_36847 WHERE "Wins" = '0' AND "Team" = 'ajs' AND "Points" < '12' |
What's the latest keynote version of version 2.3 of numbers with pages greater than 4.3? | CREATE TABLE table_name_18 (
keynote_version INTEGER,
numbers_version VARCHAR,
pages_version VARCHAR
) | SELECT MAX(keynote_version) FROM table_name_18 WHERE numbers_version = "2.3" AND pages_version > 4.3 |
Which country has a score of 70-66=136? | CREATE TABLE table_80160 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_80160 WHERE "Score" = '70-66=136' |
What is the Attendance of New Zealand Scores in bold? | CREATE TABLE table_65097 (
"Date" text,
"Opponent" text,
"Score" text,
"Venue" text,
"Attendance" text
) | SELECT "Attendance" FROM table_65097 WHERE "Date" = 'new zealand scores in bold' |
What episode number has 2j5352 as a production code? | CREATE TABLE table_24625467_1 (
no VARCHAR,
production_code VARCHAR
) | SELECT no FROM table_24625467_1 WHERE production_code = "2J5352" |
How many teams were in the series championnat de france formula renault 2.0? | CREATE TABLE table_26124171_1 (
team VARCHAR,
series VARCHAR
) | SELECT team FROM table_26124171_1 WHERE series = "Championnat de France Formula Renault 2.0" |
What is Venue, when Status is 'Test Match', and when Against is '12'? | CREATE TABLE table_79078 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Venue" FROM table_79078 WHERE "Status" = 'test match' AND "Against" = '12' |
How many places named asan-maina? | CREATE TABLE table_28161 (
"Village" text,
"Area km\u00b2" text,
"Population (2000 census )" real,
"Region" text,
"Pop. Density" real
) | SELECT COUNT("Region") FROM table_28161 WHERE "Village" = 'Asan-Maina' |
What percentage of users were using Safari during the period in which 30.82% were using Firefox? | CREATE TABLE table_name_96 (
safari VARCHAR,
firefox VARCHAR
) | SELECT safari FROM table_name_96 WHERE firefox = "30.82%" |
What artist had a mintage of 41,828 before year 2002? | CREATE TABLE table_52214 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" text,
"Issue Price" text
) | SELECT "Artist" FROM table_52214 WHERE "Year" < '2002' AND "Mintage" = '41,828' |
WHAT IS THE WORLDWIDE BOX OFFICE FOR BRAVE? | CREATE TABLE table_name_41 (
worldwide VARCHAR,
film VARCHAR
) | SELECT worldwide FROM table_name_41 WHERE film = "brave" |
How many players are from the country of Brazil? | CREATE TABLE table_73681 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
) | SELECT COUNT("Position") FROM table_73681 WHERE "Nationality\u00b2" = 'Brazil' |
Which roll has an Area of mahia? | CREATE TABLE table_name_2 (
roll VARCHAR,
area VARCHAR
) | SELECT roll FROM table_name_2 WHERE area = "mahia" |
What is the language total number if the Tacachi Municipality is 3? | CREATE TABLE table_27383 (
"Language" text,
"Punata Municipality" real,
"Villa Rivero Municipality" real,
"San Benito Municipality" real,
"Tacachi Municipality" real,
"Cuchumuela Municipality" real
) | SELECT COUNT("Language") FROM table_27383 WHERE "Tacachi Municipality" = '3' |
Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80. | CREATE TABLE submission (
College VARCHAR,
Scores INTEGER
) | SELECT College FROM submission WHERE Scores > 90 INTERSECT SELECT College FROM submission WHERE Scores < 80 |
Name the site for game of game 2 | CREATE TABLE table_name_26 (
site VARCHAR,
game VARCHAR
) | SELECT site FROM table_name_26 WHERE game = "game 2" |
What was the score for the home team who plays their matches at the mcg venue? | CREATE TABLE table_54954 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_54954 WHERE "Venue" = 'mcg' |
Name the winner for nick nuyens for general classification and stage of 2 | CREATE TABLE table_name_96 (
winner VARCHAR,
general_classification VARCHAR,
stage VARCHAR
) | SELECT winner FROM table_name_96 WHERE general_classification = "nick nuyens" AND stage = "2" |
how many games were attended by at least 8,000 people ? | CREATE TABLE table_204_971 (
id number,
"m" number,
"date" text,
"tournament" text,
"round" text,
"ground" text,
"opponent" text,
"score" text,
"attendance" number,
"dinamo scorers" text,
"report" text
) | SELECT COUNT(*) FROM table_204_971 WHERE "attendance" >= 8000 |
How many faculty is there in total in the year of 2002? | CREATE TABLE faculty (
faculty INTEGER,
YEAR VARCHAR
) | SELECT SUM(faculty) FROM faculty WHERE YEAR = 2002 |
What are the names of players who train between 500 and 1500 hours? | CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
) | SELECT pname FROM player WHERE hs BETWEEN 500 AND 1500 |
Which venue is the friendly match in? | CREATE TABLE table_name_7 (
venue VARCHAR,
competition VARCHAR
) | SELECT venue FROM table_name_7 WHERE competition = "friendly match" |
Which Attendance has a Record of 34 51? | CREATE TABLE table_37944 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT MIN("Attendance") FROM table_37944 WHERE "Record" = '34–51' |
What is the average Heat for anjelika solovieva? | CREATE TABLE table_name_38 (
heat INTEGER,
name VARCHAR
) | SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva" |
What is Division One's average Other Apps, with a League Goal less than 1? | CREATE TABLE table_52682 (
"Division" text,
"League Apps (Sub)" real,
"League Goals" real,
"FA Cup Apps (Sub)" text,
"FA Cup Goals" real,
"FL Cup Apps (Sub)" real,
"FL Cup Goals" real,
"Other Apps" real,
"Other Goals" real,
"Total Apps (Sub)" text,
"Total Goals" real
) | SELECT AVG("Other Apps") FROM table_52682 WHERE "Division" = 'one' AND "League Goals" < '1' |
What is the score when the game took place on January 18? | CREATE TABLE table_1669 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_1669 WHERE "Date" = 'January 18' |
WHAT SCORE HAD A RECORD OF 1-1? | CREATE TABLE table_name_42 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_42 WHERE record = "1-1" |
how many years was sk sturm graz winner ? | CREATE TABLE table_203_125 (
id number,
"club" text,
"winners" number,
"runner-ups" number,
"winning years" text,
"runner-up years" text
) | SELECT "winners" FROM table_203_125 WHERE "club" = 'sk sturm graz' |
If the English translation is hello girl, what was the language? | CREATE TABLE table_22907 (
"Draw" real,
"Country" text,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Result" text
) | SELECT "Language" FROM table_22907 WHERE "English translation" = 'Hello girl' |
Name the replaced by for slaven belupo | CREATE TABLE table_27225944_3 (
replaced_by VARCHAR,
team VARCHAR
) | SELECT replaced_by FROM table_27225944_3 WHERE team = "Slaven Belupo" |
Name the song choice for michael jackson | CREATE TABLE table_23048 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Song choice" FROM table_23048 WHERE "Original artist" = 'Michael Jackson' |
What was the score for t9 place for Harold Mcspaden? | CREATE TABLE table_78650 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To Par" real,
"Money ( $ )" text
) | SELECT "Score" FROM table_78650 WHERE "Place" = 't9' AND "Player" = 'harold mcspaden' |
Where does Bob Tway Place? | CREATE TABLE table_51119 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Place" FROM table_51119 WHERE "Player" = 'bob tway' |
What is the lowest attendance that East End Park has ever had? | CREATE TABLE table_16519 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
) | SELECT MIN("Lowest") FROM table_16519 WHERE "Stadium" = 'East End Park' |
What time span is listed under years for the 96th congres? | CREATE TABLE table_4022 (
"Representative" text,
"Party" text,
"Years" text,
"Congress" text,
"District Home" text,
"Occupation" text,
"Electoral history" text
) | SELECT "Years" FROM table_4022 WHERE "Congress" = '96th' |
what is the geo id when the land (sqmi) is less than 36.112, the latitude is more than 47.536618, the township is west bay and water (sqmi) is more than 0.209? | CREATE TABLE table_13494 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | SELECT SUM("GEO ID") FROM table_13494 WHERE "Land ( sqmi )" < '36.112' AND "Latitude" > '47.536618' AND "Township" = 'west bay' AND "Water (sqmi)" > '0.209' |
What is Score, when Place is 'T8', and when Player is 'Orville Moody'? | CREATE TABLE table_name_40 (
score VARCHAR,
place VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_40 WHERE place = "t8" AND player = "orville moody" |
what was the result on 01x06 | CREATE TABLE table_29141354_1 (
scores VARCHAR,
episode VARCHAR
) | SELECT scores FROM table_29141354_1 WHERE episode = "01x06" |
Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023? | CREATE TABLE table_65671 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | SELECT "Driver" FROM table_65671 WHERE "Grid" < '17' AND "Points" > '0' AND "Laps" = '87' AND "Time/Retired" = '1:48:11.023' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.