Simple Question (Direct)
Simple Question
Q4955465
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Brahim Ouahid ?
(Q4955465,P27,c(Q15617994))
action filter_type
action find
entity Q4955465
relation P27
type Q15617994
['Q4955465', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q4955465 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Brahim Ouahid
action filter_type
action find
entity Brahim Ouahid
relation country of citizenship
type designation for an administrative territorial entity
['Brahim Ouahid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Brahim_Ouahid property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262
SYSTEM
Algeria
Q262
(Q4955465,P27,c(Q15617994))
action filter_type
action find
entity Q4955465
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Brahim Ouahid
['Q4955465', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q4955465 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Algeria
Algeria is the country of citizenship of Brahim Ouahid
Algeria
action filter_type
action find
entity Brahim Ouahid
relation country of citizenship
type designation for an administrative territorial entity
['Brahim Ouahid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Brahim_Ouahid property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q262
P35
Q502895
USER
Who is elected as the head of state of that administrative territory ?
(Q262,P35,c(Q502895))
action filter_type
action find
entity Q262
relation P35
type Q502895
['Q262', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q262 property:P35 ?r . ?r rdf:type ontology:Q502895 }
Algeria
action filter_type
action find
entity Algeria
relation head of state
type common name
['Algeria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Algeria property:head_of_state ?r . ?r rdf:type ontology:common_name }
[]
common name
Q57308
SYSTEM
Abdelaziz Bouteflika
Q57308
(Q262,P35,c(Q502895))
action filter_type
action find
entity Q262
relation P35
type Q502895
[ANSWER] is elected as the head of state of that administrative territory
['Q262', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q262 property:P35 ?r . ?r rdf:type ontology:Q502895 }
Abdelaziz Bouteflika
Abdelaziz Bouteflika is elected as the head of state of that administrative territory
Abdelaziz Bouteflika
action filter_type
action find
entity Algeria
relation head of state
type common name
['Algeria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Algeria property:head_of_state ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q262
P276
Q1914636
USER
Which activity has its location as Algeria ?
(c(Q1914636),P276,Q262)
action filter_type
action find_reverse
entity Q262
relation P276
type Q1914636
[{'concept': 'Q1914636'}, 'P276', 'Q262']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q262 . ?h rdf:type ontology:Q1914636 }
Algeria
action filter_type
action find_reverse
entity Algeria
relation location
type activity
[{'concept': 'activity'}, 'location', 'Algeria']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Algeria . ?h rdf:type ontology:activity }
[]
activity
Q472238
SYSTEM
2010–2012 Algerian protests
Q472238
(c(Q1914636),P276,Q262)
action filter_type
action find_reverse
entity Q262
relation P276
type Q1914636
[ANSWER] has its location as Algeria
[{'concept': 'Q1914636'}, 'P276', 'Q262']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q262 . ?h rdf:type ontology:Q1914636 }
2010–2012 Algerian protests
2010–2012 Algerian protests has its location as Algeria
2010–2012 Algerian protests
action filter_type
action find_reverse
entity Algeria
relation location
type activity
[{'concept': 'activity'}, 'location', 'Algeria']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Algeria . ?h rdf:type ontology:activity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q472238
P361
Q1914636
USER
What is that one a part of ?
(Q472238,P361,c(Q1914636))
action filter_type
action find
entity Q472238
relation P361
type Q1914636
['Q472238', 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ?s WHERE { resource:Q472238 property:P361 ?s . ?s rdf:type ontology:Q1914636 }
2010–2012 Algerian protests
action filter_type
action find
entity 2010–2012 Algerian protests
relation part of
type activity
['2010–2012 Algerian protests', 'part of', {'concept': 'activity'}]
SELECT DISTINCT ?s WHERE { resource:2010–2012_Algerian_protests property:part_of ?s . ?s rdf:type ontology:activity }
[]
activity
Q33761
SYSTEM
Arab Spring
Q33761
(Q472238,P361,c(Q1914636))
action filter_type
action find
entity Q472238
relation P361
type Q1914636
That one a part of is the [ANSWER]
['Q472238', 'P361', {'concept': 'Q1914636'}]
SELECT DISTINCT ?s WHERE { resource:Q472238 property:P361 ?s . ?s rdf:type ontology:Q1914636 }
Arab Spring
That one a part of is the Arab Spring
Arab Spring
action filter_type
action find
entity 2010–2012 Algerian protests
relation part of
type activity
['2010–2012 Algerian protests', 'part of', {'concept': 'activity'}]
SELECT DISTINCT ?s WHERE { resource:2010–2012_Algerian_protests property:part_of ?s . ?s rdf:type ontology:activity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9074536 Q262
P47 P27
Q15617994
USER
Which administrative territories have a shared border with Algeria or are Sara Schyfter an inhabitant of ?
OR((Q262,P47,c(Q15617994)), (Q9074536,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q262
relation P47
action find
entity Q9074536
relation P27
type Q15617994
{'OR': [['Q262', 'P47', {'concept': 'Q15617994'}], ['Q9074536', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q262 property:P47 ?u } UNION { resource:Q9074536 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Sara Schyfter Algeria
action filter_type
action union
action find
entity Algeria
relation shares border with
action find
entity Sara Schyfter
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Algeria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Sara Schyfter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Algeria property:shares_border_with ?u } UNION { resource:Sara_Schyfter property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1025 Q948 Q1032 Q800 Q1016 Q1028 Q912
SYSTEM
Mauritania, Tunisia, Niger, Costa Rica, Libya, Morocco, Mali
Q1025 Q948 Q1032 Q800 Q1016 Q1028 Q912
OR((Q262,P47,c(Q15617994)), (Q9074536,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q262
relation P47
action find
entity Q9074536
relation P27
type Q15617994
[ANSWERS] have a shared border with Algeria or are Sara Schyfter an inhabitant of
{'OR': [['Q262', 'P47', {'concept': 'Q15617994'}], ['Q9074536', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q262 property:P47 ?u } UNION { resource:Q9074536 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Mauritania Tunisia Niger Costa Rica Libya Morocco Mali
Mauritania, Tunisia, Niger, Costa Rica, Libya, Morocco and Mali have a shared border with Algeria or are Sara Schyfter an inhabitant of
Mauritania Tunisia Niger Costa Rica Libya Morocco Mali
action filter_type
action union
action find
entity Algeria
relation shares border with
action find
entity Sara Schyfter
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Algeria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Sara Schyfter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Algeria property:shares_border_with ?u } UNION { resource:Sara_Schyfter property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1029 Q262
P163
Q14660
USER
Which flags are associated with Algeria or Mozambique ?
OR((Q262,P163,c(Q14660)), (Q1029,P163,c(Q14660)))
action filter_type
action union
action find
entity Q262
relation P163
action find
entity Q1029
relation P163
type Q14660
{'OR': [['Q262', 'P163', {'concept': 'Q14660'}], ['Q1029', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q14660 . { { resource:Q262 property:P163 ?y } UNION { resource:Q1029 property:P163 ?y } } }
Mozambique Algeria
action filter_type
action union
action find
entity Algeria
relation flag
action find
entity Mozambique
relation flag
type flag
{'OR': [['Algeria', 'flag', {'concept': 'flag'}], ['Mozambique', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:flag . { { resource:Algeria property:flag ?y } UNION { resource:Mozambique property:flag ?y } } }
[]
flag
Q484249 Q83392
SYSTEM
Flag of Mozambique, Flag of Algeria
Q484249 Q83392
OR((Q262,P163,c(Q14660)), (Q1029,P163,c(Q14660)))
action filter_type
action union
action find
entity Q262
relation P163
action find
entity Q1029
relation P163
type Q14660
And [ANSWERS] are associated with Algeria or Mozambique
{'OR': [['Q262', 'P163', {'concept': 'Q14660'}], ['Q1029', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q14660 . { { resource:Q262 property:P163 ?y } UNION { resource:Q1029 property:P163 ?y } } }
Flag of Mozambique Flag of Algeria
And Flag of Mozambique and Flag of Algeria are associated with Algeria or Mozambique
Flag of Mozambique Flag of Algeria
action filter_type
action union
action find
entity Algeria
relation flag
action find
entity Mozambique
relation flag
type flag
{'OR': [['Algeria', 'flag', {'concept': 'flag'}], ['Mozambique', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:flag . { { resource:Algeria property:flag ?y } UNION { resource:Mozambique property:flag ?y } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1001
Q13220204 Q852446 Q14660
USER
How many flags apply to jurisdiction over around the same number of administrative country subdivisions and US administrative territories as that flag ?
(c(Q14660),P1001,c(Q13220204)|c(Q852446))
[{'concept': 'Q14660'}, 'P1001', [{'concept': 'Q13220204'}, {'concept': 'Q852446'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P1001 ?y } UNION { ?z property:P1001 ?x } } . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q13220204 . ?x rdf:type ontology:Q852446 }
[{'concept': 'flag'}, 'applies to jurisdiction', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity of the United States'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:applies_to_jurisdiction ?y } UNION { ?z property:applies_to_jurisdiction ?x } } . ?z rdf:type ontology:flag . ?y rdf:type ontology:second-level_administrative_country_subdivision . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
second-level administrative country subdivision administrative territorial entity of the United States flag
Comparative|Count over More/Less|Mult. entity type|Clarification
Q484249
SYSTEM
Did you mean Flag of Mozambique ?
(c(Q14660),P1001,c(Q13220204)|c(Q852446))
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', [{'concept': 'Q13220204'}, {'concept': 'Q852446'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P1001 ?y } UNION { ?z property:P1001 ?x } } . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q13220204 . ?x rdf:type ontology:Q852446 }
Did you mean Flag of Mozambique ?
Flag of Mozambique
[{'concept': 'flag'}, 'applies to jurisdiction', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity of the United States'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:applies_to_jurisdiction ?y } UNION { ?z property:applies_to_jurisdiction ?x } } . ?z rdf:type ontology:flag . ?y rdf:type ontology:second-level_administrative_country_subdivision . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q14660),P1001,c(Q13220204)|c(Q852446))
[{'concept': 'Q14660'}, 'P1001', [{'concept': 'Q13220204'}, {'concept': 'Q852446'}]]
[{'concept': 'flag'}, 'applies to jurisdiction', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity of the United States'}]]
[]
SYSTEM
36
Q219726 Q633087 Q520966 Q19000 Q492541 Q248102 Q492546 Q221881 Q1856088 Q18993 Q156564 Q258262 Q524824 Q119605 Q497997 Q285418 Q18983 Q543471 Q369833 Q673117 Q499127 Q19373 Q19374 Q19379 Q676623 Q590821 Q1426379 Q642998 Q330517 Q567838 Q19427 Q605195 Q19016 Q492524 Q284396 Q632491
(c(Q14660),P1001,c(Q13220204)|c(Q852446))
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', [{'concept': 'Q13220204'}, {'concept': 'Q852446'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P1001 ?y } UNION { ?z property:P1001 ?x } } . ?z rdf:type ontology:Q14660 . ?y rdf:type ontology:Q13220204 . ?x rdf:type ontology:Q852446 }
Flag of Hawaii Flag of Montana Flag of Rhode Island Flag of Texas flag of Iowa Flag of New Hampshire Flag of Colorado Flag of Massachusetts Flag of Rotterdam Flag of Virginia flag of Alaska Flag of Oklahoma Flag of Vermont Flag of New Jersey Flag of Alabama Flag of Michigan Flag of Pennsylvania Flag of the Region of Murcia Flag of Arkansas Flag of Indiana Flag of Maine Flag of South Carolina Flag of Louisiana Flag of North Carolina Flag of Georgia Flag of Kentucky Flag of Amsterdam Flag of New Mexico Flag of California flag of South Dakota flag of Oregon Flag of Tennessee flag of New York Flag of Wyoming Flag of Kansas Flag of Arizona
36
[{'concept': 'flag'}, 'applies to jurisdiction', [{'concept': 'second-level administrative country subdivision'}, {'concept': 'administrative territorial entity of the United States'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:applies_to_jurisdiction ?y } UNION { ?z property:applies_to_jurisdiction ?x } } . ?z rdf:type ontology:flag . ?y rdf:type ontology:second-level_administrative_country_subdivision . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1028
P180
Q2342494
USER
Which collectable demonstrates Morocco ?
(c(Q2342494),P180,Q1028)
action filter_type
action find_reverse
entity Q1028
relation P180
type Q2342494
[{'concept': 'Q2342494'}, 'P180', 'Q1028']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q2342494 . ?d property:P180 resource:Q1028 }
Morocco
action filter_type
action find_reverse
entity Morocco
relation depicts
type collectable
[{'concept': 'collectable'}, 'depicts', 'Morocco']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:collectable . ?d property:depicts resource:Morocco }
[]
collectable
Q18205780
SYSTEM
Description of Africa
Q18205780
(c(Q2342494),P180,Q1028)
action filter_type
action find_reverse
entity Q1028
relation P180
type Q2342494
[ANSWER] demonstrates Morocco
[{'concept': 'Q2342494'}, 'P180', 'Q1028']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q2342494 . ?d property:P180 resource:Q1028 }
Description of Africa
Description of Africa demonstrates Morocco
Description of Africa
action filter_type
action find_reverse
entity Morocco
relation depicts
type collectable
[{'concept': 'collectable'}, 'depicts', 'Morocco']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:collectable . ?d property:depicts resource:Morocco }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1028
P85
Q484692
USER
What is the anthem for Morocco ?
(Q1028,P85,c(Q484692))
action filter_type
action find
entity Q1028
relation P85
type Q484692
['Q1028', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?g WHERE { resource:Q1028 property:P85 ?g . ?g rdf:type ontology:Q484692 }
Morocco
action filter_type
action find
entity Morocco
relation anthem
type hymn
['Morocco', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?g WHERE { resource:Morocco property:anthem ?g . ?g rdf:type ontology:hymn }
[]
hymn
Q238826
SYSTEM
Cherifian Anthem
Q238826
(Q1028,P85,c(Q484692))
action filter_type
action find
entity Q1028
relation P85
type Q484692
The anthem for Morocco is the [ANSWER]
['Q1028', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?g WHERE { resource:Q1028 property:P85 ?g . ?g rdf:type ontology:Q484692 }
Cherifian Anthem
The anthem for Morocco is the Cherifian Anthem
Cherifian Anthem
action filter_type
action find
entity Morocco
relation anthem
type hymn
['Morocco', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?g WHERE { resource:Morocco property:anthem ?g . ?g rdf:type ontology:hymn }
[]