Simple Question (Direct)
Simple Question
Q4316938
P106
Q12737077
USER
What does Miroslav Nemirov do for a living ?
(Q4316938,P106,c(Q12737077))
action filter_type
action find
entity Q4316938
relation P106
type Q12737077
['Q4316938', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q4316938 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Miroslav Nemirov
action filter_type
action find
entity Miroslav Nemirov
relation occupation
type occupation
['Miroslav Nemirov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Miroslav_Nemirov property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q49757
SYSTEM
poet
Q49757
(Q4316938,P106,c(Q12737077))
action filter_type
action find
entity Q4316938
relation P106
type Q12737077
[ANSWER] Miroslav Nemirov does for a living
['Q4316938', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q4316938 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
poet
Poet Miroslav Nemirov does for a living
poet
action filter_type
action find
entity Miroslav Nemirov
relation occupation
type occupation
['Miroslav Nemirov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Miroslav_Nemirov property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4316938
P19
Q56061
USER
Which administrative territory is the birthplace of Miroslav Nemirov ?
(Q4316938,P19,c(Q56061))
action filter_type
action find
entity Q4316938
relation P19
type Q56061
['Q4316938', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q4316938 property:P19 ?n }
Miroslav Nemirov
action filter_type
action find
entity Miroslav Nemirov
relation place of birth
type administrative territorial entity
['Miroslav Nemirov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Miroslav_Nemirov property:place_of_birth ?n }
[]
administrative territorial entity
Q908
SYSTEM
Rostov-on-Don
Q908
(Q4316938,P19,c(Q56061))
action filter_type
action find
entity Q4316938
relation P19
type Q56061
[ANSWER] is the birthplace of Miroslav Nemirov
['Q4316938', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q56061 . resource:Q4316938 property:P19 ?n }
Rostov-on-Don
Rostov-on-Don is the birthplace of Miroslav Nemirov
Rostov-on-Don
action filter_type
action find
entity Miroslav Nemirov
relation place of birth
type administrative territorial entity
['Miroslav Nemirov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:administrative_territorial_entity . resource:Miroslav_Nemirov property:place_of_birth ?n }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q908 Q4694451
P190
Q56061
USER
Is Agua Hedionda Spa sister town of that one ?
(Q4694451,P190,Q908)
action is_in
entity Q4694451
action find
entity Q908
relation P190
['Q4694451', 'P190', 'Q908']
ASK WHERE { resource:Q908 property:P190 resource:Q4694451 }
Rostov-on-Don Agua Hedionda Spa
action is_in
entity Agua Hedionda Spa
action find
entity Rostov-on-Don
relation sister city
['Agua Hedionda Spa', 'sister city', 'Rostov-on-Don']
ASK WHERE { resource:Rostov-on-Don property:sister_city resource:Agua_Hedionda_Spa }
[]
administrative territorial entity
SYSTEM
NO
(Q4694451,P190,Q908)
action is_in
entity Q4694451
action find
entity Q908
relation P190
[ANSWER]
['Q4694451', 'P190', 'Q908']
ASK WHERE { resource:Q908 property:P190 resource:Q4694451 }
No
action is_in
entity Agua Hedionda Spa
action find
entity Rostov-on-Don
relation sister city
['Agua Hedionda Spa', 'sister city', 'Rostov-on-Don']
ASK WHERE { resource:Rostov-on-Don property:sister_city resource:Agua_Hedionda_Spa }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q908
P190
Q20667921 Q56061
USER
How many french administrative divisions or administrative territories are partner towns of Rostov-on-Don ?
(Q908,P190,c(Q20667921)) (Q908,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q908
relation P190
type Q20667921
action filter_type
action find
entity Q908
relation P190
type Q56061
['Q908', 'P190', {'concept': 'Q20667921'}] ['Q908', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
Rostov-on-Don
action count
action union
action filter_type
action find
entity Rostov-on-Don
relation sister city
type type of french administrative division
action filter_type
action find
entity Rostov-on-Don
relation sister city
type administrative territorial entity
['Rostov-on-Don', 'sister city', {'concept': 'type of french administrative division'}] ['Rostov-on-Don', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
type of french administrative division administrative territorial entity
SYSTEM
13
Q43070 Q200036 Q6487 Q193180 Q1476 Q4093 Q79875 Q1874 Q42147 Q134279 Q1295 Q165420 Q2678
(Q908,P190,c(Q20667921)) (Q908,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q908
relation P190
type Q20667921
action filter_type
action find
entity Q908
relation P190
type Q56061
[ANSWER]
['Q908', 'P190', {'concept': 'Q20667921'}] ['Q908', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
Donetsk Volos Antalya Kajaani Le Mans Glasgow Mobile Odessa Cheongju Luhansk Dortmund Pleven Gomel
13
action count
action union
action filter_type
action find
entity Rostov-on-Don
relation sister city
type type of french administrative division
action filter_type
action find
entity Rostov-on-Don
relation sister city
type administrative territorial entity
['Rostov-on-Don', 'sister city', {'concept': 'type of french administrative division'}] ['Rostov-on-Don', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027424
P532
Q56061 Q2235308
USER
How many ship types have greater number of administrative territories as their base harbour than Derby ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027424
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Q24027424 property:P532 ?c . ?c rdf:type ontology:Q2235308 } } . FILTER ( ?h > ?d ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:Q56061 . ?l rdf:type ontology:Q2235308 . ?l property:P532 ?x } GROUP BY ?l } }
Derby
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Derby
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Derby property:port_of_registry ?c . ?c rdf:type ontology:ship_type } } . FILTER ( ?h > ?d ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:ship_type . ?l property:port_of_registry ?x } GROUP BY ?l } }
[]
administrative territorial entity ship type
SYSTEM
70
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027424
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Q24027424 property:P532 ?c . ?c rdf:type ontology:Q2235308 } } . FILTER ( ?h > ?d ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:Q56061 . ?l rdf:type ontology:Q2235308 . ?l property:P532 ?x } GROUP BY ?l } }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
70
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Derby
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { resource:Derby property:port_of_registry ?c . ?c rdf:type ontology:ship_type } } . FILTER ( ?h > ?d ) . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:ship_type . ?l property:port_of_registry ?x } GROUP BY ?l } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19642082 Q4316938
P27 P17
Q15617994
USER
Which administrative territories do Miroslav Nemirov belong to or do Vossemeerstraat belong to ?
OR((Q4316938,P27,c(Q15617994)), (Q19642082,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4316938
relation P27
action find
entity Q19642082
relation P17
type Q15617994
{'OR': [['Q4316938', 'P27', {'concept': 'Q15617994'}], ['Q19642082', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q19642082 property:P17 ?m } UNION { resource:Q4316938 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Vossemeerstraat Miroslav Nemirov
action filter_type
action union
action find
entity Miroslav Nemirov
relation country of citizenship
action find
entity Vossemeerstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Miroslav Nemirov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vossemeerstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Vossemeerstraat property:country ?m } UNION { resource:Miroslav_Nemirov property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q55
SYSTEM
Russia, Netherlands
Q159 Q55
OR((Q4316938,P27,c(Q15617994)), (Q19642082,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4316938
relation P27
action find
entity Q19642082
relation P17
type Q15617994
Miroslav Nemirov belong to the [ANSWERS]
{'OR': [['Q4316938', 'P27', {'concept': 'Q15617994'}], ['Q19642082', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q19642082 property:P17 ?m } UNION { resource:Q4316938 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Russia Netherlands
Miroslav Nemirov belong to the Russia and Netherlands
Russia Netherlands
action filter_type
action union
action find
entity Miroslav Nemirov
relation country of citizenship
action find
entity Vossemeerstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Miroslav Nemirov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vossemeerstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Vossemeerstraat property:country ?m } UNION { resource:Miroslav_Nemirov property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q159 Q55
P17
Q3947
USER
Which houses are located in Russia and Netherlands ?
(c(Q3947),P17,Q159) (c(Q3947),P17,Q55)
action union
action filter_type
action find_reverse
entity Q159
relation P17
type Q3947
action filter_type
action find_reverse
entity Q55
relation P17
type Q3947
[{'concept': 'Q3947'}, 'P17', 'Q159'] [{'concept': 'Q3947'}, 'P17', 'Q55']
SELECT DISTINCT ?s WHERE { ?s property:P17 ?p . VALUES ( ?p ) { ( resource:Q159 ) ( resource:Q55 ) } }
Russia Netherlands
action union
action filter_type
action find_reverse
entity Russia
relation country
type house
action filter_type
action find_reverse
entity Netherlands
relation country
type house
[{'concept': 'house'}, 'country', 'Russia'] [{'concept': 'house'}, 'country', 'Netherlands']
SELECT DISTINCT ?s WHERE { ?s property:country ?p . VALUES ( ?p ) { ( resource:Russia ) ( resource:Netherlands ) } }
[]
house
Q2044998 Q15120353 Q1051302
SYSTEM
Het Slaakhuis, Villa Looyen, Catshuis
Q4917013 Q19800100 Q2434699 Q2518559 Q2054708 Q17429219 Q2805695 Q794553 Q17614213 Q17592401 Q11721744 Q17446583 Q2215581 Q2141817 Q17597852 Q17594152 Q17428471 Q17445081 Q2859622 Q14753869 Q2044998 Q17457797 Q2096394 Q3515260 Q2411565 Q374958 Q13423739 Q2083655 Q15120353 Q1051302 Q17195357 Q1417159 Q2793728 Q8170986 Q17319271 Q3802482 Q2350612 Q2726497 Q2084244 Q1438648 Q3205344 Q19672227
(c(Q3947),P17,Q159) (c(Q3947),P17,Q55)
action union
action filter_type
action find_reverse
entity Q159
relation P17
type Q3947
action filter_type
action find_reverse
entity Q55
relation P17
type Q3947
[ANSWERS] are located in Russia and Netherlands
[{'concept': 'Q3947'}, 'P17', 'Q159'] [{'concept': 'Q3947'}, 'P17', 'Q55']
SELECT DISTINCT ?s WHERE { ?s property:P17 ?p . VALUES ( ?p ) { ( resource:Q159 ) ( resource:Q55 ) } }
Birth house of Anton Chekhov Khrushchev-Seleznev Estate Duitse Huis De Blauwe Aanslag Hol Maren Kets 6, Marken ACU Keizersgracht 143 Museum Betje Wolff Villa Constance Vredenburgh Loon 7 5581VH te Waalre Bella Vista Coymanshuis Villa Constance Grote Noord 20 Grotewerf 22, Marken Category:Aggene Banket Engherweide Villa Emma Het Slaakhuis Villa Bella Vista Heilig-Hartkerk Surinamestraat 20, The Hague Johan de Witt-huis Fraeylemaborg Villa Torenzicht Mellow Yellow coffeeshop Villa Looyen Catshuis Saxenburg estate Poortgebouw Villa Gelria 's-Gravenweg 168, Kralingen Herenhuis Hofdijk Stins Oudegracht 245, Utrecht Groote Keijser Beverweerd Castle Fort Pannerden Villa Linssen De Kruisstraat (Rimburg)
Het Slaakhuis, Villa Looyen and Catshuis are located in Russia and Netherlands
Het Slaakhuis Villa Looyen Catshuis
action union
action filter_type
action find_reverse
entity Russia
relation country
type house
action filter_type
action find_reverse
entity Netherlands
relation country
type house
[{'concept': 'house'}, 'country', 'Russia'] [{'concept': 'house'}, 'country', 'Netherlands']
SELECT DISTINCT ?s WHERE { ?s property:country ?p . VALUES ( ?p ) { ( resource:Russia ) ( resource:Netherlands ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15120353
P276
Q56061
USER
Where can that house be found ?
(Q15120353,P276,c(Q56061))
action filter_type
action find
entity Q15120353
relation P276
type Q56061
['Q15120353', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q15120353 property:P276 ?g . ?g rdf:type ontology:Q56061 }
Villa Looyen
action filter_type
action find
entity Villa Looyen
relation location
type administrative territorial entity
['Villa Looyen', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Villa_Looyen property:location ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q15120353
SYSTEM
Did you mean Villa Looyen ?
Q2044998 Q15120353 Q1051302
(Q2044998,P276,c(Q56061)) (Q15120353,P276,c(Q56061)) (Q1051302,P276,c(Q56061))
[ANSWER]
['Q2044998', 'P276', {'concept': 'Q56061'}] ['Q15120353', 'P276', {'concept': 'Q56061'}] ['Q1051302', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q15120353 property:P276 ?g . ?g rdf:type ontology:Q56061 }
Het Slaakhuis Villa Looyen Catshuis
Did you mean Villa Looyen ?
Villa Looyen
['Het Slaakhuis', 'location', {'concept': 'administrative territorial entity'}] ['Villa Looyen', 'location', {'concept': 'administrative territorial entity'}] ['Catshuis', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Villa_Looyen property:location ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q15120353,P276,c(Q56061))
['Q15120353', 'P276', {'concept': 'Q56061'}]
['Villa Looyen', 'location', {'concept': 'administrative territorial entity'}]
[]
Q2347146
SYSTEM
Aerdenhout
Q2347146
(Q15120353,P276,c(Q56061))
action filter_type
action find
entity Q15120353
relation P276
type Q56061
That house can be found in [ANSWER]
['Q15120353', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q15120353 property:P276 ?g . ?g rdf:type ontology:Q56061 }
Aerdenhout
That house can be found in Aerdenhout
Aerdenhout
action filter_type
action find
entity Villa Looyen
relation location
type administrative territorial entity
['Villa Looyen', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Villa_Looyen property:location ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]