Simple Question (Direct)
Simple Question
Q6111127
P69
Q1935049
USER
Which military school is Jack Baldwin an alumni of ?
(Q6111127,P69,c(Q1935049))
action filter_type
action find
entity Q6111127
relation P69
type Q1935049
['Q6111127', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?d WHERE { resource:Q6111127 property:P69 ?d . ?d rdf:type ontology:Q1935049 }
Jack Baldwin
action filter_type
action find
entity Jack Baldwin
relation educated at
type military school
['Jack Baldwin', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?d WHERE { resource:Jack_Baldwin property:educated_at ?d . ?d rdf:type ontology:military_school }
[]
military school
Q17020147
SYSTEM
Royal Military College, Sandhurst
Q17020147
(Q6111127,P69,c(Q1935049))
action filter_type
action find
entity Q6111127
relation P69
type Q1935049
[ANSWER] is Jack Baldwin an alumni of
['Q6111127', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?d WHERE { resource:Q6111127 property:P69 ?d . ?d rdf:type ontology:Q1935049 }
Royal Military College, Sandhurst
Royal Military College, Sandhurst is Jack Baldwin an alumni of
Royal Military College, Sandhurst
action filter_type
action find
entity Jack Baldwin
relation educated at
type military school
['Jack Baldwin', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?d WHERE { resource:Jack_Baldwin property:educated_at ?d . ?d rdf:type ontology:military_school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17020147
P361
Q1935049
USER
What is that one a portion of ?
(Q17020147,P361,c(Q1935049))
action filter_type
action find
entity Q17020147
relation P361
type Q1935049
['Q17020147', 'P361', {'concept': 'Q1935049'}]
SELECT DISTINCT ?i WHERE { resource:Q17020147 property:P361 ?i . ?i rdf:type ontology:Q1935049 }
Royal Military College, Sandhurst
action filter_type
action find
entity Royal Military College, Sandhurst
relation part of
type military school
['Royal Military College, Sandhurst', 'part of', {'concept': 'military school'}]
SELECT DISTINCT ?i WHERE { resource:Royal_Military_College,_Sandhurst property:part_of ?i . ?i rdf:type ontology:military_school }
[]
military school
Q575618
SYSTEM
Royal Military Academy Sandhurst
Q575618
(Q17020147,P361,c(Q1935049))
action filter_type
action find
entity Q17020147
relation P361
type Q1935049
That one a portion of is the [ANSWER]
['Q17020147', 'P361', {'concept': 'Q1935049'}]
SELECT DISTINCT ?i WHERE { resource:Q17020147 property:P361 ?i . ?i rdf:type ontology:Q1935049 }
Royal Military Academy Sandhurst
That one a portion of is the Royal Military Academy Sandhurst
Royal Military Academy Sandhurst
action filter_type
action find
entity Royal Military College, Sandhurst
relation part of
type military school
['Royal Military College, Sandhurst', 'part of', {'concept': 'military school'}]
SELECT DISTINCT ?i WHERE { resource:Royal_Military_College,_Sandhurst property:part_of ?i . ?i rdf:type ontology:military_school }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2454587 Q6111127
P190 P27
Q15617994
USER
Which administrative territories do Jack Baldwin belong to or are twin cities of Haskovo Municipality ?
OR((Q6111127,P27,c(Q15617994)), (Q2454587,P190,c(Q15617994)))
action filter_type
action union
action find
entity Q6111127
relation P27
action find
entity Q2454587
relation P190
type Q15617994
{'OR': [['Q6111127', 'P27', {'concept': 'Q15617994'}], ['Q2454587', 'P190', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q6111127 property:P27 ?c } UNION { resource:Q2454587 property:P190 ?c } } . ?c rdf:type ontology:Q15617994 }
Haskovo Municipality Jack Baldwin
action filter_type
action union
action find
entity Jack Baldwin
relation country of citizenship
action find
entity Haskovo Municipality
relation sister city
type designation for an administrative territorial entity
{'OR': [['Jack Baldwin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Haskovo Municipality', 'sister city', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Jack_Baldwin property:country_of_citizenship ?c } UNION { resource:Haskovo_Municipality property:sister_city ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q268001 Q145
SYSTEM
Wieden, United Kingdom
Q268001 Q145
OR((Q6111127,P27,c(Q15617994)), (Q2454587,P190,c(Q15617994)))
action filter_type
action union
action find
entity Q6111127
relation P27
action find
entity Q2454587
relation P190
type Q15617994
[ANSWERS] Jack Baldwin belong to or are twin cities of Haskovo Municipality
{'OR': [['Q6111127', 'P27', {'concept': 'Q15617994'}], ['Q2454587', 'P190', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q6111127 property:P27 ?c } UNION { resource:Q2454587 property:P190 ?c } } . ?c rdf:type ontology:Q15617994 }
Wieden United Kingdom
Wieden and United Kingdom Jack Baldwin belong to or are twin cities of Haskovo Municipality
Wieden United Kingdom
action filter_type
action union
action find
entity Jack Baldwin
relation country of citizenship
action find
entity Haskovo Municipality
relation sister city
type designation for an administrative territorial entity
{'OR': [['Jack Baldwin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Haskovo Municipality', 'sister city', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Jack_Baldwin property:country_of_citizenship ?c } UNION { resource:Haskovo_Municipality property:sister_city ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q268001
P19
Q502895
USER
Who has location of birth at that administrative territory ?
(c(Q502895),P19,Q268001)
action filter_type
action find_reverse
entity Q268001
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q268001']
SELECT DISTINCT ?b WHERE { ?b property:P19 resource:Q268001 . ?b rdf:type ontology:Q502895 }
Wieden
action filter_type
action find_reverse
entity Wieden
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Wieden']
SELECT DISTINCT ?b WHERE { ?b property:place_of_birth resource:Wieden . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q268001
SYSTEM
Did you mean Wieden ?
Q268001 Q145
(c(Q502895),P19,Q268001) (c(Q502895),P19,Q145)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q268001'] [{'concept': 'Q502895'}, 'P19', 'Q145']
SELECT DISTINCT ?b WHERE { ?b property:P19 resource:Q268001 . ?b rdf:type ontology:Q502895 }
Wieden United Kingdom
Did you mean Wieden ?
Wieden
[{'concept': 'common name'}, 'place of birth', 'Wieden'] [{'concept': 'common name'}, 'place of birth', 'United Kingdom']
SELECT DISTINCT ?b WHERE { ?b property:place_of_birth resource:Wieden . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P19,Q268001)
[{'concept': 'Q502895'}, 'P19', 'Q268001']
[{'concept': 'common name'}, 'place of birth', 'Wieden']
[]
Q1289686
SYSTEM
Eduard Ritter
Q1289686
(c(Q502895),P19,Q268001)
action filter_type
action find_reverse
entity Q268001
relation P19
type Q502895
[ANSWER] has location of birth at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q268001']
SELECT DISTINCT ?b WHERE { ?b property:P19 resource:Q268001 . ?b rdf:type ontology:Q502895 }
Eduard Ritter
Eduard Ritter has location of birth at that administrative territory
Eduard Ritter
action filter_type
action find_reverse
entity Wieden
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Wieden']
SELECT DISTINCT ?b WHERE { ?b property:place_of_birth resource:Wieden . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q838948
USER
How many works of art did atmost 29 people dub for ?
(c(Q838948),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 29
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?w ) WHERE { ?x property:P725 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q838948 } GROUP BY ?x } . FILTER ( ?w <= 29 ) }
action count
action atmost
action find_tuple_counts
relation voice actor
type work of art
type common name
value 29
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?w ) WHERE { ?x property:voice_actor ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:work_of_art } GROUP BY ?x } . FILTER ( ?w <= 29 ) }
[]
common name work of art
SYSTEM
92
Q4346544 Q13091172 Q13393950 Q127367 Q16207076 Q3458494 Q23838455 Q8024145 Q15139235 Q21428001 Q890656 Q834799 Q82579 Q568928 Q3139297 Q212792 Q190145 Q909318 Q6675708 Q17485699 Q5901134 Q19948770 Q1325217 Q286868 Q1315185 Q1583966 Q390341 Q25218391 Q7737199 Q477965 Q5640689 Q777739 Q4942936 Q1572709 Q3282491 Q640695 Q14540226 Q477365 Q16782 Q18407657 Q868048 Q615813 Q4367569 Q180098 Q4158396 Q1100231 Q4503243 Q1368693 Q19776571 Q1185099 Q4646903 Q18786473 Q16857406 Q4305149 Q176198 Q25167044 Q622742 Q567884 Q1196712 Q1058469 Q19776435 Q15627005 Q204416 Q5237953 Q1309592 Q890665 Q207659 Q1519753 Q641315 Q729809 Q888131 Q23034444 Q1702819 Q4468674 Q318975 Q2165639 Q4204793 Q1201022 Q587921 Q1810461 Q387674 Q5694508 Q741883 Q1193324 Q18167809 Q7767682 Q18200409 Q18857408 Q16998034 Q179411 Q246418 Q16248866
(c(Q838948),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q838948
type Q502895
value 29
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?w ) WHERE { ?x property:P725 ?t . ?t rdf:type ontology:Q502895 . ?x rdf:type ontology:Q838948 } GROUP BY ?x } . FILTER ( ?w <= 29 ) }
Passport Big Hero 6 My Little Pony: Equestria Girls The Lord of the Rings: The Fellowship of the Ring Battle Beyond the Sun A Tree of Palme Planetarian: Hoshi no Hito Windfall Nobunaga the Fool Riley's First Date? Pokémon Heroes Pokémon: The First Movie: Mewtwo Strikes Back Pokémon 4Ever Garfield: The Movie Hold the Lion, Please Bolt Spider-Man 2 Keroro Gunso the Super Movie 3: Keroro vs. Keroro Great Sky Duel Looney Tunes Super Stars' Foghorn Leghorn & Friends: Barnyard Bigmouth Alice Through the Looking Glass Ant-Man From Caligari to Hitler: German Cinema in the Age of the Masses Flubber Noah Steamboy Underdog Beverly Hills Chihuahua Exile The Good Dinosaur Persepolis Hal Ivan Vasilievich: Back to the Future Book Girl Pretty Cure All Stars Trigun: Badlands Rumble Metropolis Celestial Wives of the Meadow Mari 101 Dalmatians II: Patch's London Adventure Buried Captain America: Civil War Pokémon: The Movie 2000: The Power of One Pokémon the Movie: Black—Victini and Reshiram and White—Victini and Zekrom The Witches Cave Ben-Hur Radio Day Hayate the Combat Butler! Heaven Is a Place on Earth The Tsar's Bride GeGeGe no Kitarō N - The Madness of Reason Star Driver: Kagayaki no Takuto A-Haunting We Will Go Pete's Dragon The Jungle Book Mozart and Salieri The Last Unicorn Wreck-It Ralph 2 Where the Wild Things Are Another Detective Conan: The Phantom of Baker Street Ghost in the Shell 2: Innocence Szenario Fair Play Felidae Inazuma Eleven GO vs. Danbōru Senki W Doraemon: Nobita and the Wind Wizard Pokémon 3: The Movie: Spell of the Unown Space Jam Mimino Spirit: Stallion of the Cimarron Bodacious Space Pirates The Wind Rises Ghost in the Shell 2.0 Secret of the Wings To Kill a Dragon Atlantis: The Lost Empire Watership Down History of the Arkanar Massacre Tiger & Bunny Garfield: A Tail of Two Kitties Springtime with Roo Final Fantasy VII: Advent Children Heaven's Lost Property the Movie: The Angeloid of Clockwork Heaven's Lost Property The Disappearance of Haruhi Suzumiya The Prophet The Swing School A Monster Calls Thou-Vou falakros praktor Monkey Kingdom A Very Merry Pooh Year Gulliver's Travels The Book of Life
92
action count
action atmost
action find_tuple_counts
relation voice actor
type work of art
type common name
value 29
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?w ) WHERE { ?x property:voice_actor ?t . ?t rdf:type ontology:common_name . ?x rdf:type ontology:work_of_art } GROUP BY ?x } . FILTER ( ?w <= 29 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q268001
P47
Q15617994
USER
Which administrative territories share border with Wieden ?
(c(Q15617994),P47,Q268001)
action filter_type
action find
entity Q268001
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q268001']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q268001 property:P47 ?t }
Wieden
action filter_type
action find
entity Wieden
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Wieden']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wieden property:shares_border_with ?t }
[]
designation for an administrative territorial entity
Q267329 Q697548 Q654812
SYSTEM
Innere Stadt, Favoriten, Mariahilf
Q697548 Q519552 Q654812 Q252731 Q267329
(c(Q15617994),P47,Q268001)
action filter_type
action find
entity Q268001
relation P47
type Q15617994
[ANSWERS] share border with Wieden
[{'concept': 'Q15617994'}, 'P47', 'Q268001']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q268001 property:P47 ?t }
Favoriten Landstraße Mariahilf Margareten Innere Stadt
Innere Stadt, Favoriten and Mariahilf share border with Wieden
Innere Stadt Favoriten Mariahilf
action filter_type
action find
entity Wieden
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Wieden']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wieden property:shares_border_with ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q268001
P159
Q3914
USER
Which school has headquarters located at Wieden ?
(c(Q3914),P159,Q268001)
action filter_type
action find_reverse
entity Q268001
relation P159
type Q3914
[{'concept': 'Q3914'}, 'P159', 'Q268001']
SELECT DISTINCT ?x WHERE { ?x property:P159 resource:Q268001 . ?x rdf:type ontology:Q3914 }
Wieden
action filter_type
action find_reverse
entity Wieden
relation headquarters location
type school
[{'concept': 'school'}, 'headquarters location', 'Wieden']
SELECT DISTINCT ?x WHERE { ?x property:headquarters_location resource:Wieden . ?x rdf:type ontology:school }
[]
school
Q2523348
SYSTEM
Vienna Business School
Q2523348
(c(Q3914),P159,Q268001)
action filter_type
action find_reverse
entity Q268001
relation P159
type Q3914
[ANSWER] has headquarters located at Wieden
[{'concept': 'Q3914'}, 'P159', 'Q268001']
SELECT DISTINCT ?x WHERE { ?x property:P159 resource:Q268001 . ?x rdf:type ontology:Q3914 }
Vienna Business School
Vienna Business School has headquarters located at Wieden
Vienna Business School
action filter_type
action find_reverse
entity Wieden
relation headquarters location
type school
[{'concept': 'school'}, 'headquarters location', 'Wieden']
SELECT DISTINCT ?x WHERE { ?x property:headquarters_location resource:Wieden . ?x rdf:type ontology:school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2523348
P17
Q1048835
USER
Which political territory does that school belong to ?
(Q2523348,P17,c(Q1048835))
action filter_type
action find
entity Q2523348
relation P17
type Q1048835
['Q2523348', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q2523348 property:P17 ?i . ?i rdf:type ontology:Q1048835 }
Vienna Business School
action filter_type
action find
entity Vienna Business School
relation country
type political territorial entity
['Vienna Business School', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Vienna_Business_School property:country ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q2523348,P17,c(Q1048835))
action filter_type
action find
entity Q2523348
relation P17
type Q1048835
That school belongs to [ANSWER]n [ANSWER]
['Q2523348', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q2523348 property:P17 ?i . ?i rdf:type ontology:Q1048835 }
Austria
That school belongs to Austrian Austria
Austria
action filter_type
action find
entity Vienna Business School
relation country
type political territorial entity
['Vienna Business School', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Vienna_Business_School property:country ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q267329
P6
Q502895
USER
What people are Innere Stadt the head of goverment of ?
(Q267329,P6,c(Q502895))
action filter_type
action find
entity Q267329
relation P6
type Q502895
['Q267329', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q267329 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Innere Stadt
action filter_type
action find
entity Innere Stadt
relation head of government
type common name
['Innere Stadt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Innere_Stadt property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
common name
Q85380 Q21813446
SYSTEM
Ursula Stenzel, Markus Figl
Q85380 Q21813446
(Q267329,P6,c(Q502895))
action filter_type
action find
entity Q267329
relation P6
type Q502895
[ANSWERS] are Innere Stadt the head of goverment of
['Q267329', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q267329 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Ursula Stenzel Markus Figl
Ursula Stenzel and Markus Figl are Innere Stadt the head of goverment of
Ursula Stenzel Markus Figl
action filter_type
action find
entity Innere Stadt
relation head of government
type common name
['Innere Stadt', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Innere_Stadt property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16425655
Q502895
USER
And how about Holod?
(Q16425655,P6,c(Q502895))
action filter_type
action find
entity Q16425655
relation P6
type Q502895
['Q16425655', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q16425655 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Holod
action filter_type
action find
entity Holod
relation head of government
type common name
['Holod', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Holod property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q24408795
SYSTEM
Ioan Horga
Q24408795
(Q16425655,P6,c(Q502895))
action filter_type
action find
entity Q16425655
relation P6
type Q502895
[ANSWER]
['Q16425655', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q16425655 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Ioan Horga
Ioan Horga
action filter_type
action find
entity Holod
relation head of government
type common name
['Holod', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Holod property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]