Simple Question (Direct)
Simple Question
Q1405355
P21
Q290
USER
What is the sex of Ferdinand Hardekopf ?
(Q1405355,P21,c(Q290))
action filter_type
action find
entity Q1405355
relation P21
type Q290
['Q1405355', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1405355 property:P21 ?f . ?f rdf:type ontology:Q290 }
Ferdinand Hardekopf
action filter_type
action find
entity Ferdinand Hardekopf
relation gender
type sex
['Ferdinand Hardekopf', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Ferdinand_Hardekopf property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1405355,P21,c(Q290))
action filter_type
action find
entity Q1405355
relation P21
type Q290
The sex of Ferdinand Hardekopf is the [ANSWER]
['Q1405355', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q1405355 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
The sex of Ferdinand Hardekopf is the male
male
action filter_type
action find
entity Ferdinand Hardekopf
relation gender
type sex
['Ferdinand Hardekopf', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Ferdinand_Hardekopf property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1405355
P937
Q56061
USER
What is the work location of Ferdinand Hardekopf ?
(Q1405355,P937,c(Q56061))
action filter_type
action find
entity Q1405355
relation P937
type Q56061
['Q1405355', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1405355 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Ferdinand Hardekopf
action filter_type
action find
entity Ferdinand Hardekopf
relation work location
type administrative territorial entity
['Ferdinand Hardekopf', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ferdinand_Hardekopf property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q1405355,P937,c(Q56061))
action filter_type
action find
entity Q1405355
relation P937
type Q56061
The work location of Ferdinand Hardekopf is in [ANSWER]
['Q1405355', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1405355 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Paris
The work location of Ferdinand Hardekopf is in Paris
Paris
action filter_type
action find
entity Ferdinand Hardekopf
relation work location
type administrative territorial entity
['Ferdinand Hardekopf', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ferdinand_Hardekopf property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1405355
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q90,P27,c(Q1048835))
action filter_type
action find
entity Q1405355
relation P27
type Q1048835
['Q90', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q1405355 property:P27 ?m . ?m rdf:type ontology:Q1048835 }
Ferdinand Hardekopf
action filter_type
action find
entity Ferdinand Hardekopf
relation country of citizenship
type political territorial entity
['Paris', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ferdinand_Hardekopf property:country_of_citizenship ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q90,P27,c(Q1048835))
action filter_type
action find
entity Q1405355
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q90', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q1405355 property:P27 ?m . ?m rdf:type ontology:Q1048835 }
Germany
Germany is that person an inhabitant of
Germany
action filter_type
action find
entity Ferdinand Hardekopf
relation country of citizenship
type political territorial entity
['Paris', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Ferdinand_Hardekopf property:country_of_citizenship ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1001
Q314024 Q252770
USER
How many federal agencies and Civil codes have jurisdiction over that political territory ?
(c(Q314024),P1001,Q183) (c(Q252770),P1001,Q183) (c(Q314024),P1001,Q183) (c(Q252770),P1001,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P1001
type Q314024
action filter_type
action find_reverse
entity Q183
relation P1001
type Q252770
[{'concept': 'Q314024'}, 'P1001', 'Q183'] [{'concept': 'Q252770'}, 'P1001', 'Q183'] [{'concept': 'Q314024'}, 'P1001', 'Q183'] [{'concept': 'Q252770'}, 'P1001', 'Q183']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P1001 resource:Q183 . ?v rdf:type ontology:Q314024 } UNION { ?v property:P1001 resource:Q183 . ?v rdf:type ontology:Q252770 } }
action count
action union
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type federal agency
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type Civil code
[{'concept': 'federal agency'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'Civil code'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'federal agency'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'Civil code'}, 'applies to jurisdiction', 'Germany']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:applies_to_jurisdiction resource:Germany . ?v rdf:type ontology:federal_agency } UNION { ?v property:applies_to_jurisdiction resource:Germany . ?v rdf:type ontology:Civil_code } }
[]
federal agency Civil code
SYSTEM
1 federal agencies and 1 Civil codes
Q165728 Q261760
(c(Q314024),P1001,Q183) (c(Q252770),P1001,Q183) (c(Q314024),P1001,Q183) (c(Q252770),P1001,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P1001
type Q314024
action filter_type
action find_reverse
entity Q183
relation P1001
type Q252770
[ANSWER]
[{'concept': 'Q314024'}, 'P1001', 'Q183'] [{'concept': 'Q252770'}, 'P1001', 'Q183'] [{'concept': 'Q314024'}, 'P1001', 'Q183'] [{'concept': 'Q252770'}, 'P1001', 'Q183']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:P1001 resource:Q183 . ?v rdf:type ontology:Q314024 } UNION { ?v property:P1001 resource:Q183 . ?v rdf:type ontology:Q252770 } }
Bürgerliches Gesetzbuch Federal Railway Authority
1 federal agencies and 1 Civil codes
action count
action union
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type federal agency
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type Civil code
[{'concept': 'federal agency'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'Civil code'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'federal agency'}, 'applies to jurisdiction', 'Germany'] [{'concept': 'Civil code'}, 'applies to jurisdiction', 'Germany']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v property:applies_to_jurisdiction resource:Germany . ?v rdf:type ontology:federal_agency } UNION { ?v property:applies_to_jurisdiction resource:Germany . ?v rdf:type ontology:Civil_code } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P180
Q340169 Q3305213
USER
How many medias or paintings demonstrate male ?
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } }
male
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:media ) ( ontology:painting ) } }
[]
media painting
SYSTEM
2
Q18713957 Q20020115
(c(Q340169),P180,Q6581097) (c(Q3305213),P180,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q340169
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q340169'}, 'P180', 'Q6581097'] [{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } }
Raja Surendra Vikram Shah at the age of 15 with his prime minister Portrait of a Young Man
2
action count
action union
action filter_type
action find_reverse
entity male
relation depicts
type media
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'media'}, 'depicts', 'male'] [{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:media ) ( ontology:painting ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q709453 Q1405355
P20
Q56061
USER
Which administrative territories are the places of death of Ferdinand Hardekopf or Frederick Theodore Frelinghuysen ?
OR((Q1405355,P20,c(Q56061)), (Q709453,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1405355
relation P20
action find
entity Q709453
relation P20
type Q56061
{'OR': [['Q1405355', 'P20', {'concept': 'Q56061'}], ['Q709453', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1405355 property:P20 ?f } UNION { resource:Q709453 property:P20 ?f } } . ?f rdf:type ontology:Q56061 }
Frederick Theodore Frelinghuysen Ferdinand Hardekopf
action filter_type
action union
action find
entity Ferdinand Hardekopf
relation place of death
action find
entity Frederick Theodore Frelinghuysen
relation place of death
type administrative territorial entity
{'OR': [['Ferdinand Hardekopf', 'place of death', {'concept': 'administrative territorial entity'}], ['Frederick Theodore Frelinghuysen', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Ferdinand_Hardekopf property:place_of_death ?f } UNION { resource:Frederick_Theodore_Frelinghuysen property:place_of_death ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q72 Q25395
SYSTEM
Zürich, Newark
Q72 Q25395
OR((Q1405355,P20,c(Q56061)), (Q709453,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1405355
relation P20
action find
entity Q709453
relation P20
type Q56061
[ANSWERS] are the places of death of Ferdinand Hardekopf or Frederick Theodore Frelinghuysen
{'OR': [['Q1405355', 'P20', {'concept': 'Q56061'}], ['Q709453', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1405355 property:P20 ?f } UNION { resource:Q709453 property:P20 ?f } } . ?f rdf:type ontology:Q56061 }
Zürich Newark
Zürich and Newark are the places of death of Ferdinand Hardekopf or Frederick Theodore Frelinghuysen
Zürich Newark
action filter_type
action union
action find
entity Ferdinand Hardekopf
relation place of death
action find
entity Frederick Theodore Frelinghuysen
relation place of death
type administrative territorial entity
{'OR': [['Ferdinand Hardekopf', 'place of death', {'concept': 'administrative territorial entity'}], ['Frederick Theodore Frelinghuysen', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Ferdinand_Hardekopf property:place_of_death ?f } UNION { resource:Frederick_Theodore_Frelinghuysen property:place_of_death ?f } } . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q72
P159
Q4830453
USER
Which business enterprises have headquarters located at Zürich ?
(c(Q4830453),P159,Q72)
action filter_type
action find_reverse
entity Q72
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q72']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q4830453 . ?i property:P159 resource:Q72 }
Zürich
action filter_type
action find_reverse
entity Zürich
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Zürich']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:business_enterprise . ?i property:headquarters_location resource:Zürich }
[]
business enterprise
Q52825 Q116401 Q680727
SYSTEM
ABB Group, Schweizer Fernsehen, Migros
Q1593349 Q679348 Q1226810 Q1567676 Q248476 Q686020 Q462267 Q680727 Q683303 Q116401 Q450071 Q366163 Q1019500 Q669143 Q1273675 Q18208378 Q52825 Q345450
(c(Q4830453),P159,Q72)
action filter_type
action find_reverse
entity Q72
relation P159
type Q4830453
[ANSWERS] have headquarters located at Zürich
[{'concept': 'Q4830453'}, 'P159', 'Q72']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q4830453 . ?i property:P159 resource:Q72 }
Migros Bank Gigon/Guyer Diogenes Verlag Haefeli Moser Steiger Zurich Cantonal Bank Egg Teleclub Migros Hürlimann Brewery Schweizer Fernsehen Schweizerische Nordostbahn Swiss Northern Railway Bétrix & Consolascio TeleZüri E2A Architects Xapo ABB Group Ad Astra Aero
ABB Group, Schweizer Fernsehen and Migros have headquarters located at Zürich
ABB Group Schweizer Fernsehen Migros
action filter_type
action find_reverse
entity Zürich
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Zürich']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:business_enterprise . ?i property:headquarters_location resource:Zürich }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q72
P108
Q502895
USER
Who works for Zürich ?
(c(Q502895),P108,Q72)
action filter_type
action find_reverse
entity Q72
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q72']
SELECT DISTINCT ?m WHERE { ?m property:P108 resource:Q72 . ?m rdf:type ontology:Q502895 }
Zürich
action filter_type
action find_reverse
entity Zürich
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Zürich']
SELECT DISTINCT ?m WHERE { ?m property:employer resource:Zürich . ?m rdf:type ontology:common_name }
[]
common name
Q22674794
SYSTEM
Christian Sieber
Q22674794
(c(Q502895),P108,Q72)
action filter_type
action find_reverse
entity Q72
relation P108
type Q502895
[ANSWER] works for Zürich
[{'concept': 'Q502895'}, 'P108', 'Q72']
SELECT DISTINCT ?m WHERE { ?m property:P108 resource:Q72 . ?m rdf:type ontology:Q502895 }
Christian Sieber
Christian Sieber works for Zürich
Christian Sieber
action filter_type
action find_reverse
entity Zürich
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'Zürich']
SELECT DISTINCT ?m WHERE { ?m property:employer resource:Zürich . ?m rdf:type ontology:common_name }
[]