Simple Question (Direct)
Simple Question
Q2544186
P21
Q290
USER
What is the sex of Walter Fiedler ?
(Q2544186,P21,c(Q290))
action filter_type
action find
entity Q2544186
relation P21
type Q290
['Q2544186', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q2544186 property:P21 ?r }
Walter Fiedler
action filter_type
action find
entity Walter Fiedler
relation gender
type sex
['Walter Fiedler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Walter_Fiedler property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2544186,P21,c(Q290))
action filter_type
action find
entity Q2544186
relation P21
type Q290
The sex of Walter Fiedler is the [ANSWER]
['Q2544186', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q2544186 property:P21 ?r }
male
The sex of Walter Fiedler is the male
male
action filter_type
action find
entity Walter Fiedler
relation gender
type sex
['Walter Fiedler', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Walter_Fiedler property:gender ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2544186
P937
Q56061
USER
Which is the work location of Walter Fiedler ?
(Q2544186,P937,c(Q56061))
action filter_type
action find
entity Q2544186
relation P937
type Q56061
['Q2544186', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q2544186 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Walter Fiedler
action filter_type
action find
entity Walter Fiedler
relation work location
type administrative territorial entity
['Walter Fiedler', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Walter_Fiedler property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q2544186,P937,c(Q56061))
action filter_type
action find
entity Q2544186
relation P937
type Q56061
[ANSWER] is the work location of Walter Fiedler
['Q2544186', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q2544186 property:P937 ?r . ?r rdf:type ontology:Q56061 }
Bonn
Bonn is the work location of Walter Fiedler
Bonn
action filter_type
action find
entity Walter Fiedler
relation work location
type administrative territorial entity
['Walter Fiedler', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Walter_Fiedler property:work_location ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1337736
Q56061
USER
And how about Jim Moran?
(Q1337736,P937,c(Q56061))
action filter_type
action find
entity Q1337736
relation P937
type Q56061
['Q1337736', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q1337736 property:P937 ?a }
Jim Moran
action filter_type
action find
entity Jim Moran
relation work location
type administrative territorial entity
['Jim Moran', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Jim_Moran property:work_location ?a }
[]
administrative territorial entity
Q61
SYSTEM
Washington, D.C.
Q61
(Q1337736,P937,c(Q56061))
action filter_type
action find
entity Q1337736
relation P937
type Q56061
[ANSWER]
['Q1337736', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q1337736 property:P937 ?a }
Washington, D.C.
Washington, D.C.
action filter_type
action find
entity Jim Moran
relation work location
type administrative territorial entity
['Jim Moran', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Jim_Moran property:work_location ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q61 Q56034
P710
Q930933
USER
How many relationships have Washington, D.C. or Foreign Office as their participant ?
(c(Q930933),P710,Q61) (c(Q930933),P710,Q56034)
action count
action union
action filter_type
action find_reverse
entity Q61
relation P710
type Q930933
action filter_type
action find_reverse
entity Q56034
relation P710
type Q930933
[{'concept': 'Q930933'}, 'P710', 'Q61'] [{'concept': 'Q930933'}, 'P710', 'Q56034']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:Q930933 . ?p property:P710 resource:Q61 } UNION { ?p property:P710 resource:Q56034 . ?p rdf:type ontology:Q930933 } }
Washington, D.C. Foreign Office
action count
action union
action filter_type
action find_reverse
entity Washington, D.C.
relation participant
type relationship
action filter_type
action find_reverse
entity Foreign Office
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Washington, D.C.'] [{'concept': 'relationship'}, 'participant', 'Foreign Office']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:relationship . ?p property:participant resource:Washington,_D.C. } UNION { ?p property:participant resource:Foreign_Office . ?p rdf:type ontology:relationship } }
[]
relationship
SYSTEM
10
Q5450506 Q10650719 Q5552206 Q5552211 Q5552203 Q5201793 Q83168 Q4411026 Q5187215 Q15977671
(c(Q930933),P710,Q61) (c(Q930933),P710,Q56034)
action count
action union
action filter_type
action find_reverse
entity Q61
relation P710
type Q930933
action filter_type
action find_reverse
entity Q56034
relation P710
type Q930933
[ANSWER]
[{'concept': 'Q930933'}, 'P710', 'Q61'] [{'concept': 'Q930933'}, 'P710', 'Q56034']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:Q930933 . ?p property:P710 resource:Q61 } UNION { ?p property:P710 resource:Q56034 . ?p rdf:type ontology:Q930933 } }
Finland–Germany relations Germany–Sweden relations Germany–Serbia relations Germany–Slovenia relations Germany–Norway relations Czech Republic–Germany relations Germany–Russia relations Germany–Hungary relations Croatia–Germany relations Germany-Slovenia relations
10
action count
action union
action filter_type
action find_reverse
entity Washington, D.C.
relation participant
type relationship
action filter_type
action find_reverse
entity Foreign Office
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Washington, D.C.'] [{'concept': 'relationship'}, 'participant', 'Foreign Office']
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:relationship . ?p property:participant resource:Washington,_D.C. } UNION { ?p property:participant resource:Foreign_Office . ?p rdf:type ontology:relationship } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q61
P190
Q515
USER
How many cities are twin cities of Washington, D.C. ?
(Q61,P190,c(Q515))
action count
action filter_type
action find
entity Q61
relation P190
type Q515
['Q61', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q61 property:P190 ?u . ?u rdf:type ontology:Q515 }
Washington, D.C.
action count
action filter_type
action find
entity Washington, D.C.
relation sister city
type city
['Washington, D.C.', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Washington,_D.C. property:sister_city ?u . ?u rdf:type ontology:city }
[]
city
SYSTEM
5
Q8684 Q3624 Q3926 Q2844 Q9005
(Q61,P190,c(Q515))
action count
action filter_type
action find
entity Q61
relation P190
type Q515
[ANSWER]
['Q61', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q61 property:P190 ?u . ?u rdf:type ontology:Q515 }
Seoul Addis Ababa Pretoria Brasília Brussels
5
action count
action filter_type
action find
entity Washington, D.C.
relation sister city
type city
['Washington, D.C.', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Washington,_D.C. property:sister_city ?u . ?u rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q61
P276
Q33506
USER
Which museum is situated at Washington, D.C. ?
(c(Q33506),P276,Q61)
action filter_type
action find_reverse
entity Q61
relation P276
type Q33506
[{'concept': 'Q33506'}, 'P276', 'Q61']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q61 . ?h rdf:type ontology:Q33506 }
Washington, D.C.
action filter_type
action find_reverse
entity Washington, D.C.
relation location
type museum
[{'concept': 'museum'}, 'location', 'Washington, D.C.']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Washington,_D.C. . ?h rdf:type ontology:museum }
[]
museum
Q1967614
SYSTEM
National Portrait Gallery
Q1967614
(c(Q33506),P276,Q61)
action filter_type
action find_reverse
entity Q61
relation P276
type Q33506
[ANSWER] is situated at Washington, D.C.
[{'concept': 'Q33506'}, 'P276', 'Q61']
SELECT DISTINCT ?h WHERE { ?h property:P276 resource:Q61 . ?h rdf:type ontology:Q33506 }
National Portrait Gallery
National Portrait Gallery is situated at Washington, D.C.
National Portrait Gallery
action filter_type
action find_reverse
entity Washington, D.C.
relation location
type museum
[{'concept': 'museum'}, 'location', 'Washington, D.C.']
SELECT DISTINCT ?h WHERE { ?h property:location resource:Washington,_D.C. . ?h rdf:type ontology:museum }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1967614
P195
Q838948
USER
Which work of art belongs to that museum ?
(c(Q838948),P195,Q1967614)
action filter_type
action find_reverse
entity Q1967614
relation P195
type Q838948
[{'concept': 'Q838948'}, 'P195', 'Q1967614']
SELECT DISTINCT ?a WHERE { ?a property:P195 resource:Q1967614 . ?a rdf:type ontology:Q838948 }
National Portrait Gallery
action filter_type
action find_reverse
entity National Portrait Gallery
relation collection
type work of art
[{'concept': 'work of art'}, 'collection', 'National Portrait Gallery']
SELECT DISTINCT ?a WHERE { ?a property:collection resource:National_Portrait_Gallery . ?a rdf:type ontology:work_of_art }
[]
work of art
Q1760522
SYSTEM
Lansdowne portrait
Q1760522
(c(Q838948),P195,Q1967614)
action filter_type
action find_reverse
entity Q1967614
relation P195
type Q838948
[ANSWER] belongs to that museum
[{'concept': 'Q838948'}, 'P195', 'Q1967614']
SELECT DISTINCT ?a WHERE { ?a property:P195 resource:Q1967614 . ?a rdf:type ontology:Q838948 }
Lansdowne portrait
Lansdowne portrait belongs to that museum
Lansdowne portrait
action filter_type
action find_reverse
entity National Portrait Gallery
relation collection
type work of art
[{'concept': 'work of art'}, 'collection', 'National Portrait Gallery']
SELECT DISTINCT ?a WHERE { ?a property:collection resource:National_Portrait_Gallery . ?a rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1967614
P800
Q502895
USER
Whose notable work was that museum ?
(c(Q502895),P800,Q1760522)
action filter_type
action find_reverse
entity Q1967614
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q1760522']
SELECT DISTINCT ?n WHERE { ?n property:P800 resource:Q1967614 . ?n rdf:type ontology:Q502895 }
National Portrait Gallery
action filter_type
action find_reverse
entity National Portrait Gallery
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Lansdowne portrait']
SELECT DISTINCT ?n WHERE { ?n property:notable_work resource:National_Portrait_Gallery . ?n rdf:type ontology:common_name }
[]
common name
Q104898
SYSTEM
Norman Foster
Q104898
(c(Q502895),P800,Q1760522)
action filter_type
action find_reverse
entity Q1967614
relation P800
type Q502895
[ANSWER] was that museum
[{'concept': 'Q502895'}, 'P800', 'Q1760522']
SELECT DISTINCT ?n WHERE { ?n property:P800 resource:Q1967614 . ?n rdf:type ontology:Q502895 }
Norman Foster
Norman Foster was that museum
Norman Foster
action filter_type
action find_reverse
entity National Portrait Gallery
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Lansdowne portrait']
SELECT DISTINCT ?n WHERE { ?n property:notable_work resource:National_Portrait_Gallery . ?n rdf:type ontology:common_name }
[]