Simple Question (Direct)
Simple Question
Q2173944
P102
Q7210356
USER
Which party does Rudolf Thienel belong to ?
(Q2173944,P102,c(Q7210356))
action filter_type
action find
entity Q2173944
relation P102
type Q7210356
['Q2173944', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7210356 . resource:Q2173944 property:P102 ?p }
Rudolf Thienel
action filter_type
action find
entity Rudolf Thienel
relation member of political party
type political organization
['Rudolf Thienel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_organization . resource:Rudolf_Thienel property:member_of_political_party ?p }
[]
political organization
Q186867
SYSTEM
Austrian People's Party
Q186867
(Q2173944,P102,c(Q7210356))
action filter_type
action find
entity Q2173944
relation P102
type Q7210356
Rudolf Thienel belongs to [ANSWER]
['Q2173944', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7210356 . resource:Q2173944 property:P102 ?p }
Austrian People's Party
Rudolf Thienel belongs to Austrian People's Party
Austrian People's Party
action filter_type
action find
entity Rudolf Thienel
relation member of political party
type political organization
['Rudolf Thienel', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_organization . resource:Rudolf_Thienel property:member_of_political_party ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2173944
P19
Q56061
USER
Which administrative territory is the place of birth of Rudolf Thienel ?
(Q2173944,P19,c(Q56061))
action filter_type
action find
entity Q2173944
relation P19
type Q56061
['Q2173944', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q2173944 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Rudolf Thienel
action filter_type
action find
entity Rudolf Thienel
relation place of birth
type administrative territorial entity
['Rudolf Thienel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Rudolf_Thienel property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q2173944,P19,c(Q56061))
action filter_type
action find
entity Q2173944
relation P19
type Q56061
[ANSWER] is the place of birth of Rudolf Thienel
['Q2173944', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q2173944 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Vienna
Vienna is the place of birth of Rudolf Thienel
Vienna
action filter_type
action find
entity Rudolf Thienel
relation place of birth
type administrative territorial entity
['Rudolf Thienel', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Rudolf_Thienel property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2173944
P106
Q28640
USER
What does that person do for a living ?
(Q1741,P106,c(Q28640))
action filter_type
action find
entity Q2173944
relation P106
type Q28640
['Q1741', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?x WHERE { resource:Q2173944 property:P106 ?x . ?x rdf:type ontology:Q28640 }
Rudolf Thienel
action filter_type
action find
entity Rudolf Thienel
relation occupation
type profession
['Vienna', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?x WHERE { resource:Rudolf_Thienel property:occupation ?x . ?x rdf:type ontology:profession }
[]
profession
Q185351
SYSTEM
jurist
Q185351
(Q1741,P106,c(Q28640))
action filter_type
action find
entity Q2173944
relation P106
type Q28640
That person does a [ANSWER] for a living
['Q1741', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?x WHERE { resource:Q2173944 property:P106 ?x . ?x rdf:type ontology:Q28640 }
jurist
That person does a jurist for a living
jurist
action filter_type
action find
entity Rudolf Thienel
relation occupation
type profession
['Vienna', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?x WHERE { resource:Rudolf_Thienel property:occupation ?x . ?x rdf:type ontology:profession }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q185351 Q824895
P106
Q502895
USER
Does Bernhard Ditteney have the profession as that profession ?
(Q824895,P106,Q185351)
action is_in
entity Q185351
action find
entity Q824895
relation P106
['Q824895', 'P106', 'Q185351']
ASK WHERE { resource:Q824895 property:P106 resource:Q185351 }
jurist Bernhard Ditteney
action is_in
entity jurist
action find
entity Bernhard Ditteney
relation occupation
['Bernhard Ditteney', 'occupation', 'jurist']
ASK WHERE { resource:Bernhard_Ditteney property:occupation resource:jurist }
[]
common name
SYSTEM
YES
(Q824895,P106,Q185351)
action is_in
entity Q185351
action find
entity Q824895
relation P106
[ANSWER]
['Q824895', 'P106', 'Q185351']
ASK WHERE { resource:Q824895 property:P106 resource:Q185351 }
Yes
action is_in
entity jurist
action find
entity Bernhard Ditteney
relation occupation
['Bernhard Ditteney', 'occupation', 'jurist']
ASK WHERE { resource:Bernhard_Ditteney property:occupation resource:jurist }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q104383 Q824895
P27
Q1048835
USER
Which political territories are the native countriesof Bernhard Ditteney and Siegfried von Kardorff ?
AND((Q824895,P27,c(Q1048835)), (Q104383,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q824895
relation P27
action find
entity Q104383
relation P27
type Q1048835
{'AND': [['Q824895', 'P27', {'concept': 'Q1048835'}], ['Q104383', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q824895 property:P27 ?s . resource:Q104383 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Siegfried von Kardorff Bernhard Ditteney
action filter_type
action intersection
action find
entity Bernhard Ditteney
relation country of citizenship
action find
entity Siegfried von Kardorff
relation country of citizenship
type political territorial entity
{'AND': [['Bernhard Ditteney', 'country of citizenship', {'concept': 'political territorial entity'}], ['Siegfried von Kardorff', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Bernhard_Ditteney property:country_of_citizenship ?s . resource:Siegfried_von_Kardorff property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q824895,P27,c(Q1048835)), (Q104383,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q824895
relation P27
action find
entity Q104383
relation P27
type Q1048835
[ANSWER] is the native countriesof Bernhard Ditteney and Siegfried von Kardorff
{'AND': [['Q824895', 'P27', {'concept': 'Q1048835'}], ['Q104383', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q824895 property:P27 ?s . resource:Q104383 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Germany
Germany is the native countriesof Bernhard Ditteney and Siegfried von Kardorff
Germany
action filter_type
action intersection
action find
entity Bernhard Ditteney
relation country of citizenship
action find
entity Siegfried von Kardorff
relation country of citizenship
type political territorial entity
{'AND': [['Bernhard Ditteney', 'country of citizenship', {'concept': 'political territorial entity'}], ['Siegfried von Kardorff', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Bernhard_Ditteney property:country_of_citizenship ?s . resource:Siegfried_von_Kardorff property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q104383
P26
Q502895
USER
Which person is married to Siegfried von Kardorff ?
(c(Q502895),P26,Q183)
action filter_type
action find
entity Q104383
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q183']
SELECT DISTINCT ?w WHERE { resource:Q104383 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Siegfried von Kardorff
action filter_type
action find
entity Siegfried von Kardorff
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Germany']
SELECT DISTINCT ?w WHERE { resource:Siegfried_von_Kardorff property:spouse ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1736039
SYSTEM
Katharina von Oheimb
Q1736039
(c(Q502895),P26,Q183)
action filter_type
action find
entity Q104383
relation P26
type Q502895
[ANSWER] is married to Siegfried von Kardorff
[{'concept': 'Q502895'}, 'P26', 'Q183']
SELECT DISTINCT ?w WHERE { resource:Q104383 property:P26 ?w . ?w rdf:type ontology:Q502895 }
Katharina von Oheimb
Katharina von Oheimb is married to Siegfried von Kardorff
Katharina von Oheimb
action filter_type
action find
entity Siegfried von Kardorff
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Germany']
SELECT DISTINCT ?w WHERE { resource:Siegfried_von_Kardorff property:spouse ?w . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1736039 Q891663 Q4475129
P27
Q1048835
USER
Is that person a citizen of Bolulla and Mykhailivka ?
(Q1736039,P27,Q891663) (Q1736039,P27,Q4475129)
action is_in
entity Q1736039
action intersection
action find_reverse
entity Q891663
relation P27
action find_reverse
entity Q4475129
relation P27
['Q1736039', 'P27', 'Q891663'] ['Q1736039', 'P27', 'Q4475129']
ASK WHERE { resource:Q1736039 property:P27 resource:Q891663 . resource:Q1736039 property:P27 resource:Q4475129 }
Katharina von Oheimb Bolulla Mykhailivka
action is_in
entity Katharina von Oheimb
action intersection
action find_reverse
entity Bolulla
relation country of citizenship
action find_reverse
entity Mykhailivka
relation country of citizenship
['Katharina von Oheimb', 'country of citizenship', 'Bolulla'] ['Katharina von Oheimb', 'country of citizenship', 'Mykhailivka']
ASK WHERE { resource:Katharina_von_Oheimb property:country_of_citizenship resource:Bolulla . resource:Katharina_von_Oheimb property:country_of_citizenship resource:Mykhailivka }
[]
political territorial entity
SYSTEM
NO
(Q1736039,P27,Q891663) (Q1736039,P27,Q4475129)
action is_in
entity Q1736039
action intersection
action find_reverse
entity Q891663
relation P27
action find_reverse
entity Q4475129
relation P27
[ANSWER]
['Q1736039', 'P27', 'Q891663'] ['Q1736039', 'P27', 'Q4475129']
ASK WHERE { resource:Q1736039 property:P27 resource:Q891663 . resource:Q1736039 property:P27 resource:Q4475129 }
No
action is_in
entity Katharina von Oheimb
action intersection
action find_reverse
entity Bolulla
relation country of citizenship
action find_reverse
entity Mykhailivka
relation country of citizenship
['Katharina von Oheimb', 'country of citizenship', 'Bolulla'] ['Katharina von Oheimb', 'country of citizenship', 'Mykhailivka']
ASK WHERE { resource:Katharina_von_Oheimb property:country_of_citizenship resource:Bolulla . resource:Katharina_von_Oheimb property:country_of_citizenship resource:Mykhailivka }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q502895 Q14514600 Q3305213
USER
Which people were max number of groups of fictional characters and paintings inspired by ?
(c(Q14514600)|c(Q3305213),P941,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q14514600
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
[[{'concept': 'Q14514600'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { { ?o property:P941 ?p . ?p rdf:type ontology:Q502895 . ?o rdf:type ontology:Q14514600 } UNION { ?o property:P941 ?p . ?o rdf:type ontology:Q3305213 . ?p rdf:type ontology:Q502895 } } GROUP BY ?p } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q14514600 ) ( ontology:Q3305213 ) } . ?k rdf:type ?b } GROUP BY ?d } }
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type group of fictional characters
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
[[{'concept': 'group of fictional characters'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { { ?o property:inspired_by ?p . ?p rdf:type ontology:common_name . ?o rdf:type ontology:group_of_fictional_characters } UNION { ?o property:inspired_by ?p . ?o rdf:type ontology:painting . ?p rdf:type ontology:common_name } } GROUP BY ?p } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:group_of_fictional_characters ) ( ontology:painting ) } . ?k rdf:type ?b } GROUP BY ?d } }
[]
common name group of fictional characters painting
Q164823 Q3498875 Q733965
SYSTEM
Girolamo Savonarola, Steve Carlson, Jack Carlson
Q164823 Q3498875 Q733965
(c(Q14514600)|c(Q3305213),P941,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q14514600
action find_reverse_tuple_counts
relation P941
type Q502895
type Q3305213
[ANSWERS]
[[{'concept': 'Q14514600'}, {'concept': 'Q3305213'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { { ?o property:P941 ?p . ?p rdf:type ontology:Q502895 . ?o rdf:type ontology:Q14514600 } UNION { ?o property:P941 ?p . ?o rdf:type ontology:Q3305213 . ?p rdf:type ontology:Q502895 } } GROUP BY ?p } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q14514600 ) ( ontology:Q3305213 ) } . ?k rdf:type ?b } GROUP BY ?d } }
Girolamo Savonarola Steve Carlson Jack Carlson
Girolamo Savonarola Steve Carlson Jack Carlson
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type group of fictional characters
action find_reverse_tuple_counts
relation inspired by
type common name
type painting
[[{'concept': 'group of fictional characters'}, {'concept': 'painting'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) ?p WHERE { { ?o property:inspired_by ?p . ?p rdf:type ontology:common_name . ?o rdf:type ontology:group_of_fictional_characters } UNION { ?o property:inspired_by ?p . ?o rdf:type ontology:painting . ?p rdf:type ontology:common_name } } GROUP BY ?p } } . FILTER ( ?l = ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?d WHERE { VALUES ( ?b ) { ( ontology:group_of_fictional_characters ) ( ontology:painting ) } . ?k rdf:type ?b } GROUP BY ?d } }
[]