Simple Question (Direct)
Simple Question
Q5737622
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Johan Forssell ?
(Q5737622,P27,c(Q15617994))
action filter_type
action find
entity Q5737622
relation P27
type Q15617994
['Q5737622', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q5737622 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Johan Forssell
action filter_type
action find
entity Johan Forssell
relation country of citizenship
type designation for an administrative territorial entity
['Johan Forssell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Johan_Forssell property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q5737622,P27,c(Q15617994))
action filter_type
action find
entity Q5737622
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Johan Forssell
['Q5737622', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q5737622 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Sweden
Sweden is the country of citizenship of Johan Forssell
Sweden
action filter_type
action find
entity Johan Forssell
relation country of citizenship
type designation for an administrative territorial entity
['Johan Forssell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Johan_Forssell property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5737622
P734
Q82799
USER
Who has the surname that person ?
(Q34,P734,c(Q82799))
action filter_type
action find
entity Q5737622
relation P734
type Q82799
['Q34', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q5737622 property:P734 ?q . ?q rdf:type ontology:Q82799 }
Johan Forssell
action filter_type
action find
entity Johan Forssell
relation family name
type name
['Sweden', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Johan_Forssell property:family_name ?q . ?q rdf:type ontology:name }
[]
name
Q21506779
SYSTEM
Forssell
Q21506779
(Q34,P734,c(Q82799))
action filter_type
action find
entity Q5737622
relation P734
type Q82799
[ANSWER] has the surname that person
['Q34', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { resource:Q5737622 property:P734 ?q . ?q rdf:type ontology:Q82799 }
Forssell
Forssell has the surname that person
Forssell
action filter_type
action find
entity Johan Forssell
relation family name
type name
['Sweden', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { resource:Johan_Forssell property:family_name ?q . ?q rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6211999 Q5737622
P19 P20
Q56061
USER
Which administrative territories are the birthplace of Johan Forssell or did Joe Richey expire ?
OR((Q5737622,P19,c(Q56061)), (Q6211999,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5737622
relation P19
action find
entity Q6211999
relation P20
type Q56061
{'OR': [['Q5737622', 'P19', {'concept': 'Q56061'}], ['Q6211999', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6211999 property:P20 ?v } UNION { resource:Q5737622 property:P19 ?v } } . ?v rdf:type ontology:Q56061 }
Joe Richey Johan Forssell
action filter_type
action union
action find
entity Johan Forssell
relation place of birth
action find
entity Joe Richey
relation place of death
type administrative territorial entity
{'OR': [['Johan Forssell', 'place of birth', {'concept': 'administrative territorial entity'}], ['Joe Richey', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Joe_Richey property:place_of_death ?v } UNION { resource:Johan_Forssell property:place_of_birth ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754 Q43301
SYSTEM
Stockholm, Fresno
Q1754 Q43301
OR((Q5737622,P19,c(Q56061)), (Q6211999,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5737622
relation P19
action find
entity Q6211999
relation P20
type Q56061
[ANSWERS] are the birthplace of Johan Forssell or did Joe Richey expire
{'OR': [['Q5737622', 'P19', {'concept': 'Q56061'}], ['Q6211999', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6211999 property:P20 ?v } UNION { resource:Q5737622 property:P19 ?v } } . ?v rdf:type ontology:Q56061 }
Stockholm Fresno
Stockholm and Fresno are the birthplace of Johan Forssell or did Joe Richey expire
Stockholm Fresno
action filter_type
action union
action find
entity Johan Forssell
relation place of birth
action find
entity Joe Richey
relation place of death
type administrative territorial entity
{'OR': [['Johan Forssell', 'place of birth', {'concept': 'administrative territorial entity'}], ['Joe Richey', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Joe_Richey property:place_of_death ?v } UNION { resource:Johan_Forssell property:place_of_birth ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1754
P138
Q79529 Q34442
USER
How many chemical substances or roads have Stockholm as their namesake ?
(c(Q79529),P138,Q1754) (c(Q34442),P138,Q1754)
action count
action union
action filter_type
action find_reverse
entity Q1754
relation P138
type Q79529
action filter_type
action find_reverse
entity Q1754
relation P138
type Q34442
[{'concept': 'Q79529'}, 'P138', 'Q1754'] [{'concept': 'Q34442'}, 'P138', 'Q1754']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:Q79529 ) ( ontology:Q34442 ) } . ?x rdf:type ?w }
Stockholm
action count
action union
action filter_type
action find_reverse
entity Stockholm
relation named after
type chemical substance
action filter_type
action find_reverse
entity Stockholm
relation named after
type road
[{'concept': 'chemical substance'}, 'named after', 'Stockholm'] [{'concept': 'road'}, 'named after', 'Stockholm']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:chemical_substance ) ( ontology:road ) } . ?x rdf:type ?w }
[]
chemical substance road
SYSTEM
14
Q19551239 Q19551242 Q3451061 Q19551245 Q19551244 Q19551246 Q19551241 Q19551235 Q19551236 Q19551237 Q19551238 Q1846 Q19551234 Q19551240
(c(Q79529),P138,Q1754) (c(Q34442),P138,Q1754)
action count
action union
action filter_type
action find_reverse
entity Q1754
relation P138
type Q79529
action filter_type
action find_reverse
entity Q1754
relation P138
type Q34442
[ANSWER]
[{'concept': 'Q79529'}, 'P138', 'Q1754'] [{'concept': 'Q34442'}, 'P138', 'Q1754']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:Q79529 ) ( ontology:Q34442 ) } . ?x rdf:type ?w }
Stockholmstraat Stockholmstraat rue de Stockholm Stockholmstraat Stockholmstraat Stockholmweg Stockholmstraat Stockholmpad Stockholmplein Stockholmstraat Stockholmstraat holmium ho-166 Stockholmlaan Stockholmstraat
14
action count
action union
action filter_type
action find_reverse
entity Stockholm
relation named after
type chemical substance
action filter_type
action find_reverse
entity Stockholm
relation named after
type road
[{'concept': 'chemical substance'}, 'named after', 'Stockholm'] [{'concept': 'road'}, 'named after', 'Stockholm']
SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?w ) { ( ontology:chemical_substance ) ( ontology:road ) } . ?x rdf:type ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1754
P532
Q16103215
USER
Which boat type has its base port as Stockholm ?
(c(Q16103215),P532,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P532
type Q16103215
[{'concept': 'Q16103215'}, 'P532', 'Q1754']
SELECT DISTINCT ?e WHERE { ?e property:P532 resource:Q1754 . ?e rdf:type ontology:Q16103215 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type boat type
[{'concept': 'boat type'}, 'port of registry', 'Stockholm']
SELECT DISTINCT ?e WHERE { ?e property:port_of_registry resource:Stockholm . ?e rdf:type ontology:boat_type }
[]
boat type
Q7394166
SYSTEM
SS Orion
Q7394166
(c(Q16103215),P532,Q1754)
action filter_type
action find_reverse
entity Q1754
relation P532
type Q16103215
[ANSWER] has its base port as Stockholm
[{'concept': 'Q16103215'}, 'P532', 'Q1754']
SELECT DISTINCT ?e WHERE { ?e property:P532 resource:Q1754 . ?e rdf:type ontology:Q16103215 }
SS Orion
SS Orion has its base port as Stockholm
SS Orion
action filter_type
action find_reverse
entity Stockholm
relation port of registry
type boat type
[{'concept': 'boat type'}, 'port of registry', 'Stockholm']
SELECT DISTINCT ?e WHERE { ?e property:port_of_registry resource:Stockholm . ?e rdf:type ontology:boat_type }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1754
P706
Q811979
USER
Which architectural structure has its location as that administrative territory ?
(c(Q811979),P706,Q7394166)
action filter_type
action find_reverse
entity Q1754
relation P706
type Q811979
[{'concept': 'Q811979'}, 'P706', 'Q7394166']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q811979 . ?v property:P706 resource:Q1754 }
Stockholm
action filter_type
action find_reverse
entity Stockholm
relation located on terrain feature
type architectural structure
[{'concept': 'architectural structure'}, 'located on terrain feature', 'SS Orion']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:architectural_structure . ?v property:located_on_terrain_feature resource:Stockholm }
[]
architectural structure
Q10604793
SYSTEM
Nymble
Q10604793
(c(Q811979),P706,Q7394166)
action filter_type
action find_reverse
entity Q1754
relation P706
type Q811979
[ANSWER] has its location as that administrative territory
[{'concept': 'Q811979'}, 'P706', 'Q7394166']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q811979 . ?v property:P706 resource:Q1754 }
Nymble
Nymble has its location as that administrative territory
Nymble
action filter_type
action find_reverse
entity Stockholm
relation located on terrain feature
type architectural structure
[{'concept': 'architectural structure'}, 'located on terrain feature', 'SS Orion']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:architectural_structure . ?v property:located_on_terrain_feature resource:Stockholm }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q10604793 Q16843175
P17
Q15617994
USER
Does that architectural structure belong to Blevins School District ?
(Q10604793,P17,Q16843175)
action is_in
entity Q16843175
action find
entity Q10604793
relation P17
['Q10604793', 'P17', 'Q16843175']
ASK WHERE { resource:Q10604793 property:P17 resource:Q16843175 }
Nymble Blevins School District
action is_in
entity Blevins School District
action find
entity Nymble
relation country
['Nymble', 'country', 'Blevins School District']
ASK WHERE { resource:Nymble property:country resource:Blevins_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q10604793,P17,Q16843175)
action is_in
entity Q16843175
action find
entity Q10604793
relation P17
[ANSWER]
['Q10604793', 'P17', 'Q16843175']
ASK WHERE { resource:Q10604793 property:P17 resource:Q16843175 }
No
action is_in
entity Blevins School District
action find
entity Nymble
relation country
['Nymble', 'country', 'Blevins School District']
ASK WHERE { resource:Nymble property:country resource:Blevins_School_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q43301 Q11624098 Q256409
P190
Q56061
USER
Is Fresno twin town of Fujikichō and Kulti ?
(Q43301,P190,Q11624098) (Q43301,P190,Q256409)
action is_in
entity Q43301
action intersection
action find_reverse
entity Q11624098
relation P190
action find_reverse
entity Q256409
relation P190
['Q43301', 'P190', 'Q11624098'] ['Q43301', 'P190', 'Q256409']
ASK WHERE { resource:Q43301 property:P190 resource:Q11624098 . resource:Q43301 property:P190 resource:Q256409 }
Fresno Fujikichō Kulti
action is_in
entity Fresno
action intersection
action find_reverse
entity Fujikichō
relation sister city
action find_reverse
entity Kulti
relation sister city
['Fresno', 'sister city', 'Fujikichō'] ['Fresno', 'sister city', 'Kulti']
ASK WHERE { resource:Fresno property:sister_city resource:Fujikichō . resource:Fresno property:sister_city resource:Kulti }
[]
administrative territorial entity
SYSTEM
NO
(Q43301,P190,Q11624098) (Q43301,P190,Q256409)
action is_in
entity Q43301
action intersection
action find_reverse
entity Q11624098
relation P190
action find_reverse
entity Q256409
relation P190
[ANSWER]
['Q43301', 'P190', 'Q11624098'] ['Q43301', 'P190', 'Q256409']
ASK WHERE { resource:Q43301 property:P190 resource:Q11624098 . resource:Q43301 property:P190 resource:Q256409 }
No
action is_in
entity Fresno
action intersection
action find_reverse
entity Fujikichō
relation sister city
action find_reverse
entity Kulti
relation sister city
['Fresno', 'sister city', 'Fujikichō'] ['Fresno', 'sister city', 'Kulti']
ASK WHERE { resource:Fresno property:sister_city resource:Fujikichō . resource:Fresno property:sister_city resource:Kulti }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1754 Q216
P190
Q56061
USER
Is Vilnius the sister city of Stockholm ?
(Q1754,P190,Q216)
action is_in
entity Q216
action find
entity Q1754
relation P190
['Q1754', 'P190', 'Q216']
ASK WHERE { resource:Q1754 property:P190 resource:Q216 }
Stockholm Vilnius
action is_in
entity Vilnius
action find
entity Stockholm
relation sister city
['Stockholm', 'sister city', 'Vilnius']
ASK WHERE { resource:Stockholm property:sister_city resource:Vilnius }
[]
administrative territorial entity
SYSTEM
YES
(Q1754,P190,Q216)
action is_in
entity Q216
action find
entity Q1754
relation P190
[ANSWER]
['Q1754', 'P190', 'Q216']
ASK WHERE { resource:Q1754 property:P190 resource:Q216 }
Yes
action is_in
entity Vilnius
action find
entity Stockholm
relation sister city
['Stockholm', 'sister city', 'Vilnius']
ASK WHERE { resource:Stockholm property:sister_city resource:Vilnius }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q10604793 Q988612
P706
Q56061
USER
Is Wieleń the location where Nymble is located ?
(Q10604793,P706,Q988612)
action is_in
entity Q988612
action find
entity Q10604793
relation P706
['Q10604793', 'P706', 'Q988612']
ASK WHERE { resource:Q10604793 property:P706 resource:Q988612 }
Nymble Wieleń
action is_in
entity Wieleń
action find
entity Nymble
relation located on terrain feature
['Nymble', 'located on terrain feature', 'Wieleń']
ASK WHERE { resource:Nymble property:located_on_terrain_feature resource:Wieleń }
[]
administrative territorial entity
SYSTEM
NO
(Q10604793,P706,Q988612)
action is_in
entity Q988612
action find
entity Q10604793
relation P706
[ANSWER]
['Q10604793', 'P706', 'Q988612']
ASK WHERE { resource:Q10604793 property:P706 resource:Q988612 }
No
action is_in
entity Wieleń
action find
entity Nymble
relation located on terrain feature
['Nymble', 'located on terrain feature', 'Wieleń']
ASK WHERE { resource:Nymble property:located_on_terrain_feature resource:Wieleń }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7394166 Q5839547
P532
Q56061
USER
Does Mazi Kalleh have SS Orion as their port of registry ?
(Q7394166,P532,Q5839547)
action is_in
entity Q5839547
action find
entity Q7394166
relation P532
['Q7394166', 'P532', 'Q5839547']
ASK WHERE { resource:Q7394166 property:P532 resource:Q5839547 }
SS Orion Mazi Kalleh
action is_in
entity Mazi Kalleh
action find
entity SS Orion
relation port of registry
['SS Orion', 'port of registry', 'Mazi Kalleh']
ASK WHERE { resource:SS_Orion property:port_of_registry resource:Mazi_Kalleh }
[]
administrative territorial entity
SYSTEM
NO
(Q7394166,P532,Q5839547)
action is_in
entity Q5839547
action find
entity Q7394166
relation P532
[ANSWER]
['Q7394166', 'P532', 'Q5839547']
ASK WHERE { resource:Q7394166 property:P532 resource:Q5839547 }
No
action is_in
entity Mazi Kalleh
action find
entity SS Orion
relation port of registry
['SS Orion', 'port of registry', 'Mazi Kalleh']
ASK WHERE { resource:SS_Orion property:port_of_registry resource:Mazi_Kalleh }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1754 Q1489 Q3711
P190
Q56061
USER
Is Stockholm partner town of Mexico City and Belgrade ?
(Q1754,P190,Q1489) (Q1754,P190,Q3711)
action is_in
entity Q1754
action intersection
action find_reverse
entity Q1489
relation P190
action find_reverse
entity Q3711
relation P190
['Q1754', 'P190', 'Q1489'] ['Q1754', 'P190', 'Q3711']
ASK WHERE { resource:Q1754 property:P190 resource:Q1489 . resource:Q1754 property:P190 resource:Q3711 }
Stockholm Mexico City Belgrade
action is_in
entity Stockholm
action intersection
action find_reverse
entity Mexico City
relation sister city
action find_reverse
entity Belgrade
relation sister city
['Stockholm', 'sister city', 'Mexico City'] ['Stockholm', 'sister city', 'Belgrade']
ASK WHERE { resource:Stockholm property:sister_city resource:Mexico_City . resource:Stockholm property:sister_city resource:Belgrade }
[]
administrative territorial entity
SYSTEM
YES
(Q1754,P190,Q1489) (Q1754,P190,Q3711)
action is_in
entity Q1754
action intersection
action find_reverse
entity Q1489
relation P190
action find_reverse
entity Q3711
relation P190
[ANSWER]
['Q1754', 'P190', 'Q1489'] ['Q1754', 'P190', 'Q3711']
ASK WHERE { resource:Q1754 property:P190 resource:Q1489 . resource:Q1754 property:P190 resource:Q3711 }
Yes
action is_in
entity Stockholm
action intersection
action find_reverse
entity Mexico City
relation sister city
action find_reverse
entity Belgrade
relation sister city
['Stockholm', 'sister city', 'Mexico City'] ['Stockholm', 'sister city', 'Belgrade']
ASK WHERE { resource:Stockholm property:sister_city resource:Mexico_City . resource:Stockholm property:sister_city resource:Belgrade }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q34 Q408 Q538120
P530
Q1048835
USER
Does Sweden have ambassadorial relations with Australia and Poço das Antas ?
(Q34,P530,Q408) (Q34,P530,Q538120)
action is_in
entity Q34
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q538120
relation P530
['Q34', 'P530', 'Q408'] ['Q34', 'P530', 'Q538120']
ASK WHERE { resource:Q34 property:P530 resource:Q408 . resource:Q34 property:P530 resource:Q538120 }
Sweden Australia Poço das Antas
action is_in
entity Sweden
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Poço das Antas
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Australia'] ['Sweden', 'diplomatic relation', 'Poço das Antas']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Australia . resource:Sweden property:diplomatic_relation resource:Poço_das_Antas }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q34,P530,Q408) (Q34,P530,Q538120)
action is_in
entity Q34
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q538120
relation P530
[ANSWER]
['Q34', 'P530', 'Q408'] ['Q34', 'P530', 'Q538120']
ASK WHERE { resource:Q34 property:P530 resource:Q408 . resource:Q34 property:P530 resource:Q538120 }
YES and NO respectively
action is_in
entity Sweden
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Poço das Antas
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Australia'] ['Sweden', 'diplomatic relation', 'Poço das Antas']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Australia . resource:Sweden property:diplomatic_relation resource:Poço_das_Antas }
[]