Simple Question (Direct)
Simple Question
Q590994
P102
Q7210356
USER
Which party is Anton Kaufmann affiliated with ?
(Q590994,P102,c(Q7210356))
action filter_type
action find
entity Q590994
relation P102
type Q7210356
['Q590994', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7210356 . resource:Q590994 property:P102 ?f }
Anton Kaufmann
action filter_type
action find
entity Anton Kaufmann
relation member of political party
type political organization
['Anton Kaufmann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_organization . resource:Anton_Kaufmann property:member_of_political_party ?f }
[]
political organization
Q186867
SYSTEM
Austrian People's Party
Q186867
(Q590994,P102,c(Q7210356))
action filter_type
action find
entity Q590994
relation P102
type Q7210356
Anton Kaufmann is affiliated with [ANSWER]
['Q590994', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q7210356 . resource:Q590994 property:P102 ?f }
Austrian People's Party
Anton Kaufmann is affiliated with Austrian People's Party
Austrian People's Party
action filter_type
action find
entity Anton Kaufmann
relation member of political party
type political organization
['Anton Kaufmann', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_organization . resource:Anton_Kaufmann property:member_of_political_party ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q590994
P39
Q12737077
USER
Which occupation was a position for which that person was appointed ?
(Q186867,P39,c(Q12737077))
action filter_type
action find
entity Q590994
relation P39
type Q12737077
['Q186867', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q590994 property:P39 ?q }
Anton Kaufmann
action filter_type
action find
entity Anton Kaufmann
relation position held
type occupation
["Austrian People's Party", 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Anton_Kaufmann property:position_held ?q }
[]
occupation
Q18821575
SYSTEM
Member of the Landtag of Lower Austria
Q18821575
(Q186867,P39,c(Q12737077))
action filter_type
action find
entity Q590994
relation P39
type Q12737077
The [ANSWER] was a position for which that person was appointed
['Q186867', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q590994 property:P39 ?q }
Member of the Landtag of Lower Austria
The Member of the Landtag of Lower Austria was a position for which that person was appointed
Member of the Landtag of Lower Austria
action filter_type
action find
entity Anton Kaufmann
relation position held
type occupation
["Austrian People's Party", 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Anton_Kaufmann property:position_held ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18821575
P361
Q320501
USER
What is that occupation a portion of ?
(Q18821575,P361,c(Q320501))
action filter_type
action find
entity Q18821575
relation P361
type Q320501
['Q18821575', 'P361', {'concept': 'Q320501'}]
SELECT DISTINCT ?y WHERE { resource:Q18821575 property:P361 ?y . ?y rdf:type ontology:Q320501 }
Member of the Landtag of Lower Austria
action filter_type
action find
entity Member of the Landtag of Lower Austria
relation part of
type Landtag
['Member of the Landtag of Lower Austria', 'part of', {'concept': 'Landtag'}]
SELECT DISTINCT ?y WHERE { resource:Member_of_the_Landtag_of_Lower_Austria property:part_of ?y . ?y rdf:type ontology:Landtag }
[]
Landtag
Q1803965
SYSTEM
Landtag of Lower Austria
Q1803965
(Q18821575,P361,c(Q320501))
action filter_type
action find
entity Q18821575
relation P361
type Q320501
That occupation a portion of is the [ANSWER]
['Q18821575', 'P361', {'concept': 'Q320501'}]
SELECT DISTINCT ?y WHERE { resource:Q18821575 property:P361 ?y . ?y rdf:type ontology:Q320501 }
Landtag of Lower Austria
That occupation a portion of is the Landtag of Lower Austria
Landtag of Lower Austria
action filter_type
action find
entity Member of the Landtag of Lower Austria
relation part of
type Landtag
['Member of the Landtag of Lower Austria', 'part of', {'concept': 'Landtag'}]
SELECT DISTINCT ?y WHERE { resource:Member_of_the_Landtag_of_Lower_Austria property:part_of ?y . ?y rdf:type ontology:Landtag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1744998
Q320501
USER
And how about Klaus Dietz?
(Q1744998,P361,c(Q320501))
action filter_type
action find
entity Q1744998
relation P361
type Q320501
['Q1744998', 'P361', {'concept': 'Q320501'}]
SELECT DISTINCT ?t WHERE { resource:Q1744998 property:P361 ?t . ?t rdf:type ontology:Q320501 }
Klaus Dietz
action filter_type
action find
entity Klaus Dietz
relation part of
type Landtag
['Klaus Dietz', 'part of', {'concept': 'Landtag'}]
SELECT DISTINCT ?t WHERE { resource:Klaus_Dietz property:part_of ?t . ?t rdf:type ontology:Landtag }
[]
Landtag
Q17602264
SYSTEM
19th Landtag of Hesse
Q17602264
(Q1744998,P361,c(Q320501))
action filter_type
action find
entity Q1744998
relation P361
type Q320501
[ANSWER]
['Q1744998', 'P361', {'concept': 'Q320501'}]
SELECT DISTINCT ?t WHERE { resource:Q1744998 property:P361 ?t . ?t rdf:type ontology:Q320501 }
19th Landtag of Hesse
19th Landtag of Hesse
action filter_type
action find
entity Klaus Dietz
relation part of
type Landtag
['Klaus Dietz', 'part of', {'concept': 'Landtag'}]
SELECT DISTINCT ?t WHERE { resource:Klaus_Dietz property:part_of ?t . ?t rdf:type ontology:Landtag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1744998
P106
Q12737077
USER
What does Klaus Dietz do for a living ?
(Q1744998,P106,c(Q12737077))
action filter_type
action find
entity Q1744998
relation P106
type Q12737077
['Q1744998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1744998 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Klaus Dietz
action filter_type
action find
entity Klaus Dietz
relation occupation
type occupation
['Klaus Dietz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Klaus_Dietz property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1744998,P106,c(Q12737077))
action filter_type
action find
entity Q1744998
relation P106
type Q12737077
Klaus Dietz does a [ANSWER] for a living
['Q1744998', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1744998 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
politician
Klaus Dietz does a politician for a living
politician
action filter_type
action find
entity Klaus Dietz
relation occupation
type occupation
['Klaus Dietz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Klaus_Dietz property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1744998 Q980
P937
Q56061
USER
How many administrative territories are the locations where Klaus Dietz or Bavaria worked ?
(Q1744998,P937,c(Q56061)) (Q980,P937,c(Q56061))
action count
action union
action filter_type
action find
entity Q1744998
relation P937
type Q56061
action filter_type
action find
entity Q980
relation P937
type Q56061
['Q1744998', 'P937', {'concept': 'Q56061'}] ['Q980', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:Q1744998 property:P937 ?d . ?d rdf:type ontology:Q56061 } UNION { resource:Q980 property:P937 ?d . ?d rdf:type ontology:Q56061 } }
Klaus Dietz Bavaria
action count
action union
action filter_type
action find
entity Klaus Dietz
relation work location
type administrative territorial entity
action filter_type
action find
entity Bavaria
relation work location
type administrative territorial entity
['Klaus Dietz', 'work location', {'concept': 'administrative territorial entity'}] ['Bavaria', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:Klaus_Dietz property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity } UNION { resource:Bavaria property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
SYSTEM
2
Q64 Q586
(Q1744998,P937,c(Q56061)) (Q980,P937,c(Q56061))
action count
action union
action filter_type
action find
entity Q1744998
relation P937
type Q56061
action filter_type
action find
entity Q980
relation P937
type Q56061
[ANSWER]
['Q1744998', 'P937', {'concept': 'Q56061'}] ['Q980', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:Q1744998 property:P937 ?d . ?d rdf:type ontology:Q56061 } UNION { resource:Q980 property:P937 ?d . ?d rdf:type ontology:Q56061 } }
Berlin Bonn
2
action count
action union
action filter_type
action find
entity Klaus Dietz
relation work location
type administrative territorial entity
action filter_type
action find
entity Bavaria
relation work location
type administrative territorial entity
['Klaus Dietz', 'work location', {'concept': 'administrative territorial entity'}] ['Bavaria', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:Klaus_Dietz property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity } UNION { resource:Bavaria property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q191067
USER
How many occupations were the main subjects of atleast 1 collectables or articles 's work ?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?r >= 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?t WHERE { { ?b property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q2342494 } UNION { ?b property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q191067 } } GROUP BY ?t } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?r >= 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?t WHERE { { ?b property:main_subject ?t . ?t rdf:type ontology:occupation . ?b rdf:type ontology:collectable } UNION { ?b property:main_subject ?t . ?t rdf:type ontology:occupation . ?b rdf:type ontology:article } } GROUP BY ?t } }
[]
occupation collectable article
SYSTEM
27
Q172907 Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q316070 Q29182 Q510373 Q131524 Q14373094 Q152002 Q18220900 Q16746569 Q16003605 Q732358 Q49757 Q1238570 Q182436 Q2259532
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 1
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?r >= 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?t WHERE { { ?b property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q2342494 } UNION { ?b property:P921 ?t . ?t rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q191067 } } GROUP BY ?t } }
praetor physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson Fletcher Christian bishop Lord High Steward entrepreneur rugby league player pastor Member of the South Australian House of Assembly high school student elementary school student Nomarch poet political scientist librarian cleric
27
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 1
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { FILTER ( ?r >= 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?r ) ?t WHERE { { ?b property:main_subject ?t . ?t rdf:type ontology:occupation . ?b rdf:type ontology:collectable } UNION { ?b property:main_subject ?t . ?t rdf:type ontology:occupation . ?b rdf:type ontology:article } } GROUP BY ?t } }
[]