Simple Question (Direct)
Simple Question
Q3182771
P27
Q1048835
USER
Which political territory is the native country of John Wilson Bengough ?
(Q3182771,P27,c(Q1048835))
action filter_type
action find
entity Q3182771
relation P27
type Q1048835
['Q3182771', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q3182771 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
John Wilson Bengough
action filter_type
action find
entity John Wilson Bengough
relation country of citizenship
type political territorial entity
['John Wilson Bengough', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:John_Wilson_Bengough property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3182771,P27,c(Q1048835))
action filter_type
action find
entity Q3182771
relation P27
type Q1048835
[ANSWER] is the native country of John Wilson Bengough
['Q3182771', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?j WHERE { resource:Q3182771 property:P27 ?j . ?j rdf:type ontology:Q1048835 }
Canada
Canada is the native country of John Wilson Bengough
Canada
action filter_type
action find
entity John Wilson Bengough
relation country of citizenship
type political territorial entity
['John Wilson Bengough', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:John_Wilson_Bengough property:country_of_citizenship ?j . ?j rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3182771
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q16,P1412,c(Q34770))
action filter_type
action find
entity Q3182771
relation P1412
type Q34770
['Q16', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q3182771 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
John Wilson Bengough
action filter_type
action find
entity John Wilson Bengough
relation languages spoken, written or signed
type language
['Canada', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:John_Wilson_Bengough property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16,P1412,c(Q34770))
action filter_type
action find
entity Q3182771
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q16', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q3182771 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
English
English is that person capable of writing
English
action filter_type
action find
entity John Wilson Bengough
relation languages spoken, written or signed
type language
['Canada', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:John_Wilson_Bengough property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3182771
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q1860,P20,c(Q56061))
action filter_type
action find
entity Q3182771
relation P20
type Q56061
['Q1860', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3182771 property:P20 ?h . ?h rdf:type ontology:Q56061 }
John Wilson Bengough
action filter_type
action find
entity John Wilson Bengough
relation place of death
type administrative territorial entity
['English', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:John_Wilson_Bengough property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q172
SYSTEM
Toronto
Q172
(Q1860,P20,c(Q56061))
action filter_type
action find
entity Q3182771
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q1860', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3182771 property:P20 ?h . ?h rdf:type ontology:Q56061 }
Toronto
The expiration of that person occurred in Toronto
Toronto
action filter_type
action find
entity John Wilson Bengough
relation place of death
type administrative territorial entity
['English', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:John_Wilson_Bengough property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3509945 Q3182771
P20
Q56061
USER
Or Jiří Karen?
OR((Q3182771,P20,c(Q56061)), (Q3509945,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3182771
relation P20
action find
entity Q3509945
relation P20
type Q56061
{'OR': [['Q3182771', 'P20', {'concept': 'Q56061'}], ['Q3509945', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:Q3182771 ) ( resource:Q3509945 ) } . ?l property:P20 ?i } . ?i rdf:type ontology:Q56061 }
Jiří Karen John Wilson Bengough
action filter_type
action union
action find
entity John Wilson Bengough
relation place of death
action find
entity Jiří Karen
relation place of death
type administrative territorial entity
{'OR': [['John Wilson Bengough', 'place of death', {'concept': 'administrative territorial entity'}], ['Jiří Karen', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:John_Wilson_Bengough ) ( resource:Jiří_Karen ) } . ?l property:place_of_death ?i } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q172 Q1085
SYSTEM
Toronto, Prague
Q172 Q1085
OR((Q3182771,P20,c(Q56061)), (Q3509945,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3182771
relation P20
action find
entity Q3509945
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q3182771', 'P20', {'concept': 'Q56061'}], ['Q3509945', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:Q3182771 ) ( resource:Q3509945 ) } . ?l property:P20 ?i } . ?i rdf:type ontology:Q56061 }
Toronto Prague
Toronto Prague
action filter_type
action union
action find
entity John Wilson Bengough
relation place of death
action find
entity Jiří Karen
relation place of death
type administrative territorial entity
{'OR': [['John Wilson Bengough', 'place of death', {'concept': 'administrative territorial entity'}], ['Jiří Karen', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:John_Wilson_Bengough ) ( resource:Jiří_Karen ) } . ?l property:place_of_death ?i } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q665097
P190
Q515
USER
Are Minoh sister town of those administrative territories ?
(Q665097,P190,Q172) (Q665097,P190,Q1085)
action is_in
entity prev_answer
action find
entity Q665097
relation P190
['Q665097', 'P190', 'Q172'] ['Q665097', 'P190', 'Q1085']
ASK WHERE { resource:Q665097 property:P190 ?p . VALUES ( ?p ) { ( resource:Q172 ) ( resource:Q1085 ) } }
Minoh
action is_in
entity prev_answer
action find
entity Minoh
relation sister city
['Minoh', 'sister city', 'Toronto'] ['Minoh', 'sister city', 'Prague']
ASK WHERE { resource:Minoh property:sister_city ?p . VALUES ( ?p ) { ( resource:Toronto ) ( resource:Prague ) } }
[]
city
SYSTEM
NO
(Q665097,P190,Q172) (Q665097,P190,Q1085)
action is_in
entity prev_answer
action find
entity Q665097
relation P190
[ANSWER]
['Q665097', 'P190', 'Q172'] ['Q665097', 'P190', 'Q1085']
ASK WHERE { resource:Q665097 property:P190 ?p . VALUES ( ?p ) { ( resource:Q172 ) ( resource:Q1085 ) } }
No
action is_in
entity prev_answer
action find
entity Minoh
relation sister city
['Minoh', 'sister city', 'Toronto'] ['Minoh', 'sister city', 'Prague']
ASK WHERE { resource:Minoh property:sister_city ?p . VALUES ( ?p ) { ( resource:Toronto ) ( resource:Prague ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1860 Q5329170 Q4330198
P361
Q5962346
USER
Is English a component of Anglo-Frisian languages and Russian product classification ?
(Q1860,P361,Q5329170) (Q1860,P361,Q4330198)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q4330198
relation P361
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q4330198']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q4330198 }
English Anglo-Frisian languages Russian product classification
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Russian product classification
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Russian product classification']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:Russian_product_classification }
[]
classification scheme
SYSTEM
YES and NO respectively
(Q1860,P361,Q5329170) (Q1860,P361,Q4330198)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q4330198
relation P361
[ANSWER]
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q4330198']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q4330198 }
YES and NO respectively
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Russian product classification
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Russian product classification']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:Russian_product_classification }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027502
P532
Q56061 Q2235308
USER
How many ship types have their base port as greater number of administrative territories than Carthusian ?
(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 Q24027502
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?f ) WHERE { ?l property:P532 ?q . ?l rdf:type ontology:Q2235308 . ?q rdf:type ontology:Q56061 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Q24027502 property:P532 ?n . ?n rdf:type ontology:Q2235308 } } . FILTER ( ?f > ?a ) }
Carthusian
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 Carthusian
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?f ) WHERE { ?l property:port_of_registry ?q . ?l rdf:type ontology:ship_type . ?q rdf:type ontology:administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Carthusian property:port_of_registry ?n . ?n rdf:type ontology:ship_type } } . FILTER ( ?f > ?a ) }
[]
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 Q24027502
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?f ) WHERE { ?l property:P532 ?q . ?l rdf:type ontology:Q2235308 . ?q rdf:type ontology:Q56061 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Q24027502 property:P532 ?n . ?n rdf:type ontology:Q2235308 } } . FILTER ( ?f > ?a ) }
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 Carthusian
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?f ) WHERE { ?l property:port_of_registry ?q . ?l rdf:type ontology:ship_type . ?q rdf:type ontology:administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Carthusian property:port_of_registry ?n . ?n rdf:type ontology:ship_type } } . FILTER ( ?f > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q16629249
P532
Q56061 Q2235308
USER
And how about Varnek (ship, 1974-2010)?
(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 Q16629249
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?p ) WHERE { ?q rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 . ?q property:P532 ?u } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q16629249 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?p > ?r ) }
Varnek (ship, 1974-2010)
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 Varnek (ship, 1974-2010)
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?p ) WHERE { ?q rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity . ?q property:port_of_registry ?u } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Varnek_(ship,_1974-2010) property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?p > ?r ) }
[]
administrative territorial entity ship type
SYSTEM
5
Q11707059 Q33209 Q1514518 Q2596850 Q468026
(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 Q16629249
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?p ) WHERE { ?q rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 . ?q property:P532 ?u } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q16629249 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?p > ?r ) }
MS Arrow Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
5
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 Varnek (ship, 1974-2010)
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?p ) WHERE { ?q rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity . ?q property:port_of_registry ?u } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Varnek_(ship,_1974-2010) property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?p > ?r ) }
[]