Simple Question (Direct)
Simple Question
Q1669274
P106
Q12737077
USER
What are the professions of Jacques-Noël Sané ?
(Q1669274,P106,c(Q12737077))
action filter_type
action find
entity Q1669274
relation P106
type Q12737077
['Q1669274', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1669274 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Jacques-Noël Sané
action filter_type
action find
entity Jacques-Noël Sané
relation occupation
type occupation
['Jacques-Noël Sané', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Jacques-Noël_Sané property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q81096 Q42973
SYSTEM
engineer, architect
Q81096 Q42973
(Q1669274,P106,c(Q12737077))
action filter_type
action find
entity Q1669274
relation P106
type Q12737077
The professions of Jacques-Noël Sané are civil [ANSWERS]
['Q1669274', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q1669274 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
engineer architect
The professions of Jacques-Noël Sané are civil engineer and architect
engineer architect
action filter_type
action find
entity Jacques-Noël Sané
relation occupation
type occupation
['Jacques-Noël Sané', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Jacques-Noël_Sané property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q81096 Q42973
P138
Q34442
USER
Which roads are named after engineer and architect ?
(c(Q34442),P138,Q81096) (c(Q34442),P138,Q42973)
action union
action filter_type
action find_reverse
entity Q81096
relation P138
type Q34442
action filter_type
action find_reverse
entity Q42973
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q81096'] [{'concept': 'Q34442'}, 'P138', 'Q42973']
SELECT DISTINCT ?i WHERE { ?i property:P138 ?h . VALUES ( ?h ) { ( resource:Q42973 ) ( resource:Q81096 ) } }
engineer architect
action union
action filter_type
action find_reverse
entity engineer
relation named after
type road
action filter_type
action find_reverse
entity architect
relation named after
type road
[{'concept': 'road'}, 'named after', 'engineer'] [{'concept': 'road'}, 'named after', 'architect']
SELECT DISTINCT ?i WHERE { ?i property:named_after ?h . VALUES ( ?h ) { ( resource:architect ) ( resource:engineer ) } }
[]
road
Q10535510 Q4027629
SYSTEM
Ingenjörsgatan, Willem van Noortplein
Q10535510 Q4027629
(c(Q34442),P138,Q81096) (c(Q34442),P138,Q42973)
action union
action filter_type
action find_reverse
entity Q81096
relation P138
type Q34442
action filter_type
action find_reverse
entity Q42973
relation P138
type Q34442
[ANSWERS] are named after engineer and architect
[{'concept': 'Q34442'}, 'P138', 'Q81096'] [{'concept': 'Q34442'}, 'P138', 'Q42973']
SELECT DISTINCT ?i WHERE { ?i property:P138 ?h . VALUES ( ?h ) { ( resource:Q42973 ) ( resource:Q81096 ) } }
Ingenjörsgatan Willem van Noortplein
Ingenjörsgatan and Willem van Noortplein are named after engineer and architect
Ingenjörsgatan Willem van Noortplein
action union
action filter_type
action find_reverse
entity engineer
relation named after
type road
action filter_type
action find_reverse
entity architect
relation named after
type road
[{'concept': 'road'}, 'named after', 'engineer'] [{'concept': 'road'}, 'named after', 'architect']
SELECT DISTINCT ?i WHERE { ?i property:named_after ?h . VALUES ( ?h ) { ( resource:architect ) ( resource:engineer ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q10535510 Q4027629
P17
Q15617994
USER
Which administrative territories do Ingenjörsgatan and Willem van Noortplein belong to ?
(Q10535510,P17,c(Q15617994)) (Q4027629,P17,c(Q15617994))
action union
action filter_type
action find
entity Q10535510
relation P17
type Q15617994
action filter_type
action find
entity Q4027629
relation P17
type Q15617994
['Q10535510', 'P17', {'concept': 'Q15617994'}] ['Q4027629', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?s property:P17 ?f . VALUES ( ?s ) { ( resource:Q4027629 ) ( resource:Q10535510 ) } }
Ingenjörsgatan Willem van Noortplein
action union
action filter_type
action find
entity Ingenjörsgatan
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Willem van Noortplein
relation country
type designation for an administrative territorial entity
['Ingenjörsgatan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Willem van Noortplein', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?s property:country ?f . VALUES ( ?s ) { ( resource:Willem_van_Noortplein ) ( resource:Ingenjörsgatan ) } }
[]
designation for an administrative territorial entity
Q34 Q55
SYSTEM
Sweden, Netherlands
Q34 Q55
(Q10535510,P17,c(Q15617994)) (Q4027629,P17,c(Q15617994))
action union
action filter_type
action find
entity Q10535510
relation P17
type Q15617994
action filter_type
action find
entity Q4027629
relation P17
type Q15617994
Ingenjörsgatan and Willem van Noortplein belong to the [ANSWERS]
['Q10535510', 'P17', {'concept': 'Q15617994'}] ['Q4027629', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?s property:P17 ?f . VALUES ( ?s ) { ( resource:Q4027629 ) ( resource:Q10535510 ) } }
Sweden Netherlands
Ingenjörsgatan and Willem van Noortplein belong to the Sweden and Netherlands
Sweden Netherlands
action union
action filter_type
action find
entity Ingenjörsgatan
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Willem van Noortplein
relation country
type designation for an administrative territorial entity
['Ingenjörsgatan', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Willem van Noortplein', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?s property:country ?f . VALUES ( ?s ) { ( resource:Willem_van_Noortplein ) ( resource:Ingenjörsgatan ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q34 Q55
P530
Q15617994
USER
Which administrative territories have diplomatic relations with Sweden and Netherlands ?
(Q34,P530,c(Q15617994)) (Q55,P530,c(Q15617994))
action union
action filter_type
action find
entity Q34
relation P530
type Q15617994
action filter_type
action find
entity Q55
relation P530
type Q15617994
['Q34', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { resource:Q34 property:P530 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q55 property:P530 ?y . ?y rdf:type ontology:Q15617994 } }
Sweden Netherlands
action union
action filter_type
action find
entity Sweden
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
['Sweden', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Sweden property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Netherlands property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q928 Q38 Q38
SYSTEM
Philippines for 1st, Italy for 2nd, 3rd
Q928 Q38 Q38
(Q34,P530,c(Q15617994)) (Q55,P530,c(Q15617994))
action union
action filter_type
action find
entity Q34
relation P530
type Q15617994
action filter_type
action find
entity Q55
relation P530
type Q15617994
[ANSWERS]
['Q34', 'P530', {'concept': 'Q15617994'}] ['Q55', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { resource:Q34 property:P530 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q55 property:P530 ?y . ?y rdf:type ontology:Q15617994 } }
Philippines Italy Italy
Philippines, Italy and Italy have diplomatic relations with Sweden and Netherlands
Philippines Italy Italy
action union
action filter_type
action find
entity Sweden
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Netherlands
relation diplomatic relation
type designation for an administrative territorial entity
['Sweden', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Netherlands', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { resource:Sweden property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Netherlands property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q928
P840
Q166142
USER
Which application has its narrative set in that administrative territory ?
(c(Q166142),P840,Q928)
action filter_type
action find_reverse
entity Q928
relation P840
type Q166142
[{'concept': 'Q166142'}, 'P840', 'Q928']
SELECT DISTINCT ?s WHERE { ?s property:P840 resource:Q928 . ?s rdf:type ontology:Q166142 }
Philippines
action filter_type
action find_reverse
entity Philippines
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'Philippines']
SELECT DISTINCT ?s WHERE { ?s property:narrative_location resource:Philippines . ?s rdf:type ontology:application }
[]
application
Clarification for simple ques.
Q928
SYSTEM
Did you mean Philippines ?
Q928 Q38 Q38
(c(Q166142),P840,Q928) (c(Q166142),P840,Q38) (c(Q166142),P840,Q38)
[ANSWER]
[{'concept': 'Q166142'}, 'P840', 'Q928'] [{'concept': 'Q166142'}, 'P840', 'Q38'] [{'concept': 'Q166142'}, 'P840', 'Q38']
SELECT DISTINCT ?s WHERE { ?s property:P840 resource:Q928 . ?s rdf:type ontology:Q166142 }
Philippines Italy Italy
Did you mean Philippines ?
Philippines
[{'concept': 'application'}, 'narrative location', 'Philippines'] [{'concept': 'application'}, 'narrative location', 'Italy'] [{'concept': 'application'}, 'narrative location', 'Italy']
SELECT DISTINCT ?s WHERE { ?s property:narrative_location resource:Philippines . ?s rdf:type ontology:application }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q166142),P840,Q928)
[{'concept': 'Q166142'}, 'P840', 'Q928']
[{'concept': 'application'}, 'narrative location', 'Philippines']
[]
Q791439
SYSTEM
Battlefield 1942
Q791439
(c(Q166142),P840,Q928)
action filter_type
action find_reverse
entity Q928
relation P840
type Q166142
[ANSWER] has its narrative set in that administrative territory
[{'concept': 'Q166142'}, 'P840', 'Q928']
SELECT DISTINCT ?s WHERE { ?s property:P840 resource:Q928 . ?s rdf:type ontology:Q166142 }
Battlefield 1942
Battlefield 1942 has its narrative set in that administrative territory
Battlefield 1942
action filter_type
action find_reverse
entity Philippines
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'Philippines']
SELECT DISTINCT ?s WHERE { ?s property:narrative_location resource:Philippines . ?s rdf:type ontology:application }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q791439 Q17
P840
Q15617994
USER
Is Japan the narrative location of Battlefield 1942 ?
(Q791439,P840,Q17)
action is_in
entity Q17
action find
entity Q791439
relation P840
['Q791439', 'P840', 'Q17']
ASK WHERE { resource:Q791439 property:P840 resource:Q17 }
Battlefield 1942 Japan
action is_in
entity Japan
action find
entity Battlefield 1942
relation narrative location
['Battlefield 1942', 'narrative location', 'Japan']
ASK WHERE { resource:Battlefield_1942 property:narrative_location resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q791439,P840,Q17)
action is_in
entity Q17
action find
entity Q791439
relation P840
[ANSWER]
['Q791439', 'P840', 'Q17']
ASK WHERE { resource:Q791439 property:P840 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity Battlefield 1942
relation narrative location
['Battlefield 1942', 'narrative location', 'Japan']
ASK WHERE { resource:Battlefield_1942 property:narrative_location resource:Japan }
[]