Simple Question (Direct)
Simple Question
Q3603387
P21
Q290
USER
Which sex does Abdul Karim Ahmed possess ?
(Q3603387,P21,c(Q290))
action filter_type
action find
entity Q3603387
relation P21
type Q290
['Q3603387', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q3603387 property:P21 ?x . ?x rdf:type ontology:Q290 }
Abdul Karim Ahmed
action filter_type
action find
entity Abdul Karim Ahmed
relation gender
type sex
['Abdul Karim Ahmed', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Abdul_Karim_Ahmed property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3603387,P21,c(Q290))
action filter_type
action find
entity Q3603387
relation P21
type Q290
Abdul Karim Ahmed possesses un [ANSWER]
['Q3603387', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q3603387 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
Abdul Karim Ahmed possesses un male
male
action filter_type
action find
entity Abdul Karim Ahmed
relation gender
type sex
['Abdul Karim Ahmed', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Abdul_Karim_Ahmed property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3603387
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Abdul Karim Ahmed ?
(Q3603387,P27,c(Q15617994))
action filter_type
action find
entity Q3603387
relation P27
type Q15617994
['Q3603387', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3603387 property:P27 ?q }
Abdul Karim Ahmed
action filter_type
action find
entity Abdul Karim Ahmed
relation country of citizenship
type designation for an administrative territorial entity
['Abdul Karim Ahmed', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Abdul_Karim_Ahmed property:country_of_citizenship ?q }
[]
designation for an administrative territorial entity
Q117
SYSTEM
Ghana
Q117
(Q3603387,P27,c(Q15617994))
action filter_type
action find
entity Q3603387
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Abdul Karim Ahmed
['Q3603387', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3603387 property:P27 ?q }
Ghana
Ghana is the country of citizenship of Abdul Karim Ahmed
Ghana
action filter_type
action find
entity Abdul Karim Ahmed
relation country of citizenship
type designation for an administrative territorial entity
['Abdul Karim Ahmed', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Abdul_Karim_Ahmed property:country_of_citizenship ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q117
P172
Q502895
USER
Who have that administrative territory as his/her race ?
(c(Q502895),P172,Q117)
action filter_type
action find_reverse
entity Q117
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q117']
SELECT DISTINCT ?v WHERE { ?v property:P172 resource:Q117 . ?v rdf:type ontology:Q502895 }
Ghana
action filter_type
action find_reverse
entity Ghana
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Ghana']
SELECT DISTINCT ?v WHERE { ?v property:ethnic_group resource:Ghana . ?v rdf:type ontology:common_name }
[]
common name
Q5438299 Q4696045
SYSTEM
Faustina Agolley, Ahmed Tijani Ben Omar
Q5438299 Q4696045
(c(Q502895),P172,Q117)
action filter_type
action find_reverse
entity Q117
relation P172
type Q502895
[ANSWERS] have that administrative territory as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q117']
SELECT DISTINCT ?v WHERE { ?v property:P172 resource:Q117 . ?v rdf:type ontology:Q502895 }
Faustina Agolley Ahmed Tijani Ben Omar
Faustina Agolley and Ahmed Tijani Ben Omar have that administrative territory as his/her race
Faustina Agolley Ahmed Tijani Ben Omar
action filter_type
action find_reverse
entity Ghana
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Ghana']
SELECT DISTINCT ?v WHERE { ?v property:ethnic_group resource:Ghana . ?v rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5438299
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q5438299,P19,c(Q56061))
action filter_type
action find
entity Q5438299
relation P19
type Q56061
['Q5438299', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5438299 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Faustina Agolley
action filter_type
action find
entity Faustina Agolley
relation place of birth
type administrative territorial entity
['Faustina Agolley', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Faustina_Agolley property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q5438299
SYSTEM
Did you mean Faustina Agolley ?
Q5438299 Q4696045
(Q5438299,P19,c(Q56061)) (Q4696045,P19,c(Q56061))
[ANSWER]
['Q5438299', 'P19', {'concept': 'Q56061'}] ['Q4696045', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5438299 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Faustina Agolley Ahmed Tijani Ben Omar
Did you mean Faustina Agolley ?
Faustina Agolley
['Faustina Agolley', 'place of birth', {'concept': 'administrative territorial entity'}] ['Ahmed Tijani Ben Omar', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Faustina_Agolley property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5438299,P19,c(Q56061))
['Q5438299', 'P19', {'concept': 'Q56061'}]
['Faustina Agolley', 'place of birth', {'concept': 'administrative territorial entity'}]
[]
Q84
SYSTEM
London
Q84
(Q5438299,P19,c(Q56061))
action filter_type
action find
entity Q5438299
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q5438299', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5438299 property:P19 ?u . ?u rdf:type ontology:Q56061 }
London
London is the birthplace of that person
London
action filter_type
action find
entity Faustina Agolley
relation place of birth
type administrative territorial entity
['Faustina Agolley', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Faustina_Agolley property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q515 Q13220204
USER
How many cities and administrative country subdivisions are partner towns of that administrative territory ?
(Q84,P190,c(Q515)) (Q84,P190,c(Q13220204)) (Q84,P190,c(Q515)) (Q84,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q84
relation P190
type Q515
action filter_type
action find
entity Q84
relation P190
type Q13220204
['Q84', 'P190', {'concept': 'Q515'}] ['Q84', 'P190', {'concept': 'Q13220204'}] ['Q84', 'P190', {'concept': 'Q515'}] ['Q84', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { resource:Q84 property:P190 ?p . ?p rdf:type ontology:Q515 } UNION { resource:Q84 property:P190 ?p . ?p rdf:type ontology:Q13220204 } }
action count
action union
action filter_type
action find
entity London
relation sister city
type city
action filter_type
action find
entity London
relation sister city
type second-level administrative country subdivision
['London', 'sister city', {'concept': 'city'}] ['London', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['London', 'sister city', {'concept': 'city'}] ['London', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { resource:London property:sister_city ?p . ?p rdf:type ontology:city } UNION { resource:London property:sister_city ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision } }
[]
city second-level administrative country subdivision
SYSTEM
4 cities and 3 administrative country subdivisions
Q3616 Q19660 Q1865 Q1486 Q2841 Q9899 Q1435
(Q84,P190,c(Q515)) (Q84,P190,c(Q13220204)) (Q84,P190,c(Q515)) (Q84,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q84
relation P190
type Q515
action filter_type
action find
entity Q84
relation P190
type Q13220204
[ANSWER]
['Q84', 'P190', {'concept': 'Q515'}] ['Q84', 'P190', {'concept': 'Q13220204'}] ['Q84', 'P190', {'concept': 'Q515'}] ['Q84', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { resource:Q84 property:P190 ?p . ?p rdf:type ontology:Q515 } UNION { resource:Q84 property:P190 ?p . ?p rdf:type ontology:Q13220204 } }
Tehran Bucharest Kuala Lumpur Buenos Aires Bogotá Amsterdam Zagreb
4 cities and 3 administrative country subdivisions
action count
action union
action filter_type
action find
entity London
relation sister city
type city
action filter_type
action find
entity London
relation sister city
type second-level administrative country subdivision
['London', 'sister city', {'concept': 'city'}] ['London', 'sister city', {'concept': 'second-level administrative country subdivision'}] ['London', 'sister city', {'concept': 'city'}] ['London', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { resource:London property:sister_city ?p . ?p rdf:type ontology:city } UNION { resource:London property:sister_city ?p . ?p rdf:type ontology:second-level_administrative_country_subdivision } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q84
P276
Q4830453 Q1914636
USER
How many business enterprises and activities are located at London ?
(c(Q4830453),P276,Q84) (c(Q1914636),P276,Q84)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P276
type Q4830453
action filter_type
action find_reverse
entity Q84
relation P276
type Q1914636
[{'concept': 'Q4830453'}, 'P276', 'Q84'] [{'concept': 'Q1914636'}, 'P276', 'Q84']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:Q4830453 ) ( ontology:Q1914636 ) } }
London
action count
action union
action filter_type
action find_reverse
entity London
relation location
type business enterprise
action filter_type
action find_reverse
entity London
relation location
type activity
[{'concept': 'business enterprise'}, 'location', 'London'] [{'concept': 'activity'}, 'location', 'London']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:business_enterprise ) ( ontology:activity ) } }
[]
business enterprise activity
SYSTEM
3 business enterprises and 1 activities
Q4622769 Q4785248 Q3924088 Q7735253
(c(Q4830453),P276,Q84) (c(Q1914636),P276,Q84)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P276
type Q4830453
action filter_type
action find_reverse
entity Q84
relation P276
type Q1914636
[ANSWER]
[{'concept': 'Q4830453'}, 'P276', 'Q84'] [{'concept': 'Q1914636'}, 'P276', 'Q84']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:Q4830453 ) ( ontology:Q1914636 ) } }
2011 United Kingdom anti-austerity protests Arcapita Prospect of Whitby The French House, Soho
3 business enterprises and 1 activities
action count
action union
action filter_type
action find_reverse
entity London
relation location
type business enterprise
action filter_type
action find_reverse
entity London
relation location
type activity
[{'concept': 'business enterprise'}, 'location', 'London'] [{'concept': 'activity'}, 'location', 'London']
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h rdf:type ?f . VALUES ( ?f ) { ( ontology:business_enterprise ) ( ontology:activity ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9348948 Q5438299
P495
Q1048835
USER
Which political territories are the origin of Faustina Agolley or Eagle Hunter's Son ?
OR((Q5438299,P495,c(Q1048835)), (Q9348948,P495,c(Q1048835)))
action filter_type
action union
action find
entity Q5438299
relation P495
action find
entity Q9348948
relation P495
type Q1048835
{'OR': [['Q5438299', 'P495', {'concept': 'Q1048835'}], ['Q9348948', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?p ) { ( resource:Q5438299 ) ( resource:Q9348948 ) } . ?p property:P495 ?v } . ?v rdf:type ontology:Q1048835 }
Eagle Hunter's Son Faustina Agolley
action filter_type
action union
action find
entity Faustina Agolley
relation country of origin
action find
entity Eagle Hunter's Son
relation country of origin
type political territorial entity
{'OR': [['Faustina Agolley', 'country of origin', {'concept': 'political territorial entity'}], ["Eagle Hunter's Son", 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?p ) { ( resource:Faustina_Agolley ) ( resource:Eagle_Hunter's_Son ) } . ?p property:country_of_origin ?v } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q5438299,P495,c(Q1048835)), (Q9348948,P495,c(Q1048835)))
action filter_type
action union
action find
entity Q5438299
relation P495
action find
entity Q9348948
relation P495
type Q1048835
[ANSWERS] are the origin of Faustina Agolley or Eagle Hunter's Son
{'OR': [['Q5438299', 'P495', {'concept': 'Q1048835'}], ['Q9348948', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?p ) { ( resource:Q5438299 ) ( resource:Q9348948 ) } . ?p property:P495 ?v } . ?v rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany are the origin of Faustina Agolley or Eagle Hunter's Son
Australia Germany
action filter_type
action union
action find
entity Faustina Agolley
relation country of origin
action find
entity Eagle Hunter's Son
relation country of origin
type political territorial entity
{'OR': [['Faustina Agolley', 'country of origin', {'concept': 'political territorial entity'}], ["Eagle Hunter's Son", 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?p ) { ( resource:Faustina_Agolley ) ( resource:Eagle_Hunter's_Son ) } . ?p property:country_of_origin ?v } . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9348948
P57
Q502895
USER
Which person served as the directed of that work of art ?
(Q408,P57,c(Q502895)) (Q183,P57,c(Q502895))
action filter_type
action find
entity Q9348948
relation P57
type Q502895
['Q408', 'P57', {'concept': 'Q502895'}] ['Q183', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q9348948 property:P57 ?r . ?r rdf:type ontology:Q502895 }
Eagle Hunter's Son
action filter_type
action find
entity Eagle Hunter's Son
relation director
type common name
['Australia', 'director', {'concept': 'common name'}] ['Germany', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Eagle_Hunter's_Son property:director ?r . ?r rdf:type ontology:common_name }
[]
common name
Q6426778
SYSTEM
René Bo Hansen
Q6426778
(Q408,P57,c(Q502895)) (Q183,P57,c(Q502895))
action filter_type
action find
entity Q9348948
relation P57
type Q502895
[ANSWER] served as the directed of that work of art
['Q408', 'P57', {'concept': 'Q502895'}] ['Q183', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q9348948 property:P57 ?r . ?r rdf:type ontology:Q502895 }
René Bo Hansen
René Bo Hansen served as the directed of that work of art
René Bo Hansen
action filter_type
action find
entity Eagle Hunter's Son
relation director
type common name
['Australia', 'director', {'concept': 'common name'}] ['Germany', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Eagle_Hunter's_Son property:director ?r . ?r rdf:type ontology:common_name }
[]