Simple Question (Direct)
Simple Question
Q25912897
P106
Q12737077
USER
What are the professions of André Babel ?
(Q25912897,P106,c(Q12737077))
action filter_type
action find
entity Q25912897
relation P106
type Q12737077
['Q25912897', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q25912897 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
André Babel
action filter_type
action find
entity André Babel
relation occupation
type occupation
['André Babel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:André_Babel property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q1930187 Q42603
SYSTEM
journalist, priest
Q1930187 Q42603
(Q25912897,P106,c(Q12737077))
action filter_type
action find
entity Q25912897
relation P106
type Q12737077
The professions of André Babel are [ANSWERS]
['Q25912897', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q25912897 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
journalist priest
The professions of André Babel are journalist and priest
journalist priest
action filter_type
action find
entity André Babel
relation occupation
type occupation
['André Babel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:André_Babel property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q25912897
P20
Q56061
USER
Where did the expiration of André Babel occur ?
(Q25912897,P20,c(Q56061))
action filter_type
action find
entity Q25912897
relation P20
type Q56061
['Q25912897', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q25912897 property:P20 ?f . ?f rdf:type ontology:Q56061 }
André Babel
action filter_type
action find
entity André Babel
relation place of death
type administrative territorial entity
['André Babel', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:André_Babel property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q71
SYSTEM
Geneva
Q71
(Q25912897,P20,c(Q56061))
action filter_type
action find
entity Q25912897
relation P20
type Q56061
The expiration of André Babel occurred in [ANSWER]
['Q25912897', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q25912897 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Geneva
The expiration of André Babel occurred in Geneva
Geneva
action filter_type
action find
entity André Babel
relation place of death
type administrative territorial entity
['André Babel', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:André_Babel property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3991526
Q56061
USER
And what about Tina De Mola?
(Q3991526,P20,c(Q56061))
action filter_type
action find
entity Q3991526
relation P20
type Q56061
['Q3991526', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q3991526 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Tina De Mola
action filter_type
action find
entity Tina De Mola
relation place of death
type administrative territorial entity
['Tina De Mola', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Tina_De_Mola property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3991526,P20,c(Q56061))
action filter_type
action find
entity Q3991526
relation P20
type Q56061
[ANSWER]
['Q3991526', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q3991526 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Rome
Rome
action filter_type
action find
entity Tina De Mola
relation place of death
type administrative territorial entity
['Tina De Mola', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Tina_De_Mola property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q220 Q13587801 Q25127
P190
Q15617994
USER
Is that administrative territory a sister city of New York, Lincolnshire and Lamporo ?
(Q220,P190,Q13587801) (Q220,P190,Q25127)
action is_in
entity Q220
action intersection
action find_reverse
entity Q13587801
relation P190
action find_reverse
entity Q25127
relation P190
['Q220', 'P190', 'Q13587801'] ['Q220', 'P190', 'Q25127']
ASK WHERE { resource:Q220 property:P190 resource:Q13587801 . resource:Q220 property:P190 resource:Q25127 }
Rome New York, Lincolnshire Lamporo
action is_in
entity Rome
action intersection
action find_reverse
entity New York, Lincolnshire
relation sister city
action find_reverse
entity Lamporo
relation sister city
['Rome', 'sister city', 'New York, Lincolnshire'] ['Rome', 'sister city', 'Lamporo']
ASK WHERE { resource:Rome property:sister_city resource:New_York,_Lincolnshire . resource:Rome property:sister_city resource:Lamporo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q220,P190,Q13587801) (Q220,P190,Q25127)
action is_in
entity Q220
action intersection
action find_reverse
entity Q13587801
relation P190
action find_reverse
entity Q25127
relation P190
[ANSWER]
['Q220', 'P190', 'Q13587801'] ['Q220', 'P190', 'Q25127']
ASK WHERE { resource:Q220 property:P190 resource:Q13587801 . resource:Q220 property:P190 resource:Q25127 }
No
action is_in
entity Rome
action intersection
action find_reverse
entity New York, Lincolnshire
relation sister city
action find_reverse
entity Lamporo
relation sister city
['Rome', 'sister city', 'New York, Lincolnshire'] ['Rome', 'sister city', 'Lamporo']
ASK WHERE { resource:Rome property:sister_city resource:New_York,_Lincolnshire . resource:Rome property:sister_city resource:Lamporo }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q71 Q142
P17
Q15617994
USER
Is Geneva situated in France ?
(Q71,P17,Q142)
action is_in
entity Q142
action find
entity Q71
relation P17
['Q71', 'P17', 'Q142']
ASK WHERE { resource:Q71 property:P17 resource:Q142 }
Geneva France
action is_in
entity France
action find
entity Geneva
relation country
['Geneva', 'country', 'France']
ASK WHERE { resource:Geneva property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q71,P17,Q142)
action is_in
entity Q142
action find
entity Q71
relation P17
[ANSWER]
['Q71', 'P17', 'Q142']
ASK WHERE { resource:Q71 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity Geneva
relation country
['Geneva', 'country', 'France']
ASK WHERE { resource:Geneva property:country resource:France }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types are the registry port of max number of administrative territories ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = ?x ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?p property:P532 ?d . ?p rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?q ) WHERE { ?m property:P532 ?u . ?m rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?m } } }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = ?x ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?p property:port_of_registry ?d . ?p rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?q ) WHERE { ?m property:port_of_registry ?u . ?m rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } } }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] is the registry port of max number of administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = ?x ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?p property:P532 ?d . ?p rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?q ) WHERE { ?m property:P532 ?u . ?m rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?m } } }
MS Arrow
MS Arrow is the registry port of max number of administrative territories
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?j = ?x ) . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?p property:port_of_registry ?d . ?p rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?q ) WHERE { ?m property:port_of_registry ?u . ?m rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P532
Q56061
USER
How many administrative territories are the port of registry of that ship type ?
(Q11707059,P532,c(Q56061))
action count
action filter_type
action find
entity Q11707059
relation P532
type Q56061
['Q11707059', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Q11707059 property:P532 ?w . ?w rdf:type ontology:Q56061 }
action count
action filter_type
action find
entity MS Arrow
relation port of registry
type administrative territorial entity
['MS Arrow', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:MS_Arrow property:port_of_registry ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
3
Q1770 Q23800 Q18569
(Q11707059,P532,c(Q56061))
action count
action filter_type
action find
entity Q11707059
relation P532
type Q56061
[ANSWER]
['Q11707059', 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Q11707059 property:P532 ?w . ?w rdf:type ontology:Q56061 }
Tallinn Valletta Douglas
3
action count
action filter_type
action find
entity MS Arrow
relation port of registry
type administrative territorial entity
['MS Arrow', 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:MS_Arrow property:port_of_registry ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q220
P6
Q502895
USER
Which people do Rome serve as the head of government for ?
(Q220,P6,c(Q502895))
action filter_type
action find
entity Q220
relation P6
type Q502895
['Q220', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q220 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Rome
action filter_type
action find
entity Rome
relation head of government
type common name
['Rome', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Rome property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q405098 Q23766020
SYSTEM
Ignazio Marino, Virginia Raggi
Q405098 Q23766020
(Q220,P6,c(Q502895))
action filter_type
action find
entity Q220
relation P6
type Q502895
Rome serve as the head of government for [ANSWERS]
['Q220', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q220 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Ignazio Marino Virginia Raggi
Rome serve as the head of government for Ignazio Marino and Virginia Raggi
Ignazio Marino Virginia Raggi
action filter_type
action find
entity Rome
relation head of government
type common name
['Rome', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Rome property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q405098
P991
Q40231
USER
Where was that person elected successfully from ?
(c(Q40231),P991,Q405098)
action filter_type
action find_reverse
entity Q405098
relation P991
type Q40231
[{'concept': 'Q40231'}, 'P991', 'Q405098']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q405098 . ?p rdf:type ontology:Q40231 }
Ignazio Marino
action filter_type
action find_reverse
entity Ignazio Marino
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Ignazio Marino']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Ignazio_Marino . ?p rdf:type ontology:election }
[]
election
Clarification for simple ques.
Q23766020
SYSTEM
Did you mean Virginia Raggi ?
Q405098 Q23766020
(c(Q40231),P991,Q405098) (c(Q40231),P991,Q23766020)
[ANSWER]
[{'concept': 'Q40231'}, 'P991', 'Q405098'] [{'concept': 'Q40231'}, 'P991', 'Q23766020']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q405098 . ?p rdf:type ontology:Q40231 }
Ignazio Marino Virginia Raggi
Did you mean Virginia Raggi ?
Virginia Raggi
[{'concept': 'election'}, 'successful candidate', 'Ignazio Marino'] [{'concept': 'election'}, 'successful candidate', 'Virginia Raggi']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Ignazio_Marino . ?p rdf:type ontology:election }
[]
Simple Question (Coreferenced)
USER
No, I meant Ignazio Marino. Could you tell me the answer for that?
(c(Q40231),P991,Q405098)
Q405098
[{'concept': 'Q40231'}, 'P991', 'Q405098']
[{'concept': 'election'}, 'successful candidate', 'Ignazio Marino']
[]
Q7363036
SYSTEM
Rome municipal election, 2013
Q7363036
(c(Q40231),P991,Q405098)
action filter_type
action find_reverse
entity Q405098
relation P991
type Q40231
Successfully that person was elected in [ANSWER] from
[{'concept': 'Q40231'}, 'P991', 'Q405098']
SELECT DISTINCT ?p WHERE { ?p property:P991 resource:Q405098 . ?p rdf:type ontology:Q40231 }
Rome municipal election, 2013
Successfully that person was elected in Rome municipal election, 2013 from
Rome municipal election, 2013
action filter_type
action find_reverse
entity Ignazio Marino
relation successful candidate
type election
[{'concept': 'election'}, 'successful candidate', 'Ignazio Marino']
SELECT DISTINCT ?p WHERE { ?p property:successful_candidate resource:Ignazio_Marino . ?p rdf:type ontology:election }
[]