Simple Question (Direct)
Simple Question
Q1895784
P102
Q7210356
USER
Which party is Maria Derflinger affiliated with ?
(Q1895784,P102,c(Q7210356))
action filter_type
action find
entity Q1895784
relation P102
type Q7210356
['Q1895784', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { resource:Q1895784 property:P102 ?s . ?s rdf:type ontology:Q7210356 }
Maria Derflinger
action filter_type
action find
entity Maria Derflinger
relation member of political party
type political organization
['Maria Derflinger', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { resource:Maria_Derflinger property:member_of_political_party ?s . ?s rdf:type ontology:political_organization }
[]
political organization
Q179111
SYSTEM
Social Democratic Party of Austria
Q179111
(Q1895784,P102,c(Q7210356))
action filter_type
action find
entity Q1895784
relation P102
type Q7210356
Maria Derflinger is affiliated with [ANSWER]
['Q1895784', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { resource:Q1895784 property:P102 ?s . ?s rdf:type ontology:Q7210356 }
Social Democratic Party of Austria
Maria Derflinger is affiliated with Social Democratic Party of Austria
Social Democratic Party of Austria
action filter_type
action find
entity Maria Derflinger
relation member of political party
type political organization
['Maria Derflinger', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { resource:Maria_Derflinger property:member_of_political_party ?s . ?s rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1895784
P39
Q12737077
USER
What was the position held by that person ?
(Q179111,P39,c(Q12737077))
action filter_type
action find
entity Q1895784
relation P39
type Q12737077
['Q179111', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1895784 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Maria Derflinger
action filter_type
action find
entity Maria Derflinger
relation position held
type occupation
['Social Democratic Party of Austria', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Maria_Derflinger property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q19360771
SYSTEM
member of the Austrian federal council
Q19360771
(Q179111,P39,c(Q12737077))
action filter_type
action find
entity Q1895784
relation P39
type Q12737077
The position held by that person was a [ANSWER]
['Q179111', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1895784 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
member of the Austrian federal council
The position held by that person was a member of the Austrian federal council
member of the Austrian federal council
action filter_type
action find
entity Maria Derflinger
relation position held
type occupation
['Social Democratic Party of Austria', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Maria_Derflinger property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1603882 Q1895784
P39
Q12737077
USER
Or Helmut Link?
OR((Q1895784,P39,c(Q12737077)), (Q1603882,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q1895784
relation P39
action find
entity Q1603882
relation P39
type Q12737077
{'OR': [['Q1895784', 'P39', {'concept': 'Q12737077'}], ['Q1603882', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1603882 property:P39 ?l } UNION { resource:Q1895784 property:P39 ?l } } . ?l rdf:type ontology:Q12737077 }
Helmut Link Maria Derflinger
action filter_type
action union
action find
entity Maria Derflinger
relation position held
action find
entity Helmut Link
relation position held
type occupation
{'OR': [['Maria Derflinger', 'position held', {'concept': 'occupation'}], ['Helmut Link', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Helmut_Link property:position_held ?l } UNION { resource:Maria_Derflinger property:position_held ?l } } . ?l rdf:type ontology:occupation }
[]
occupation
Q19360771 Q1939555
SYSTEM
member of the Austrian federal council, member of the German Bundestag
Q19360771 Q1939555
OR((Q1895784,P39,c(Q12737077)), (Q1603882,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q1895784
relation P39
action find
entity Q1603882
relation P39
type Q12737077
[ANSWERS]
{'OR': [['Q1895784', 'P39', {'concept': 'Q12737077'}], ['Q1603882', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1603882 property:P39 ?l } UNION { resource:Q1895784 property:P39 ?l } } . ?l rdf:type ontology:Q12737077 }
member of the Austrian federal council member of the German Bundestag
member of the Austrian federal council member of the German Bundestag
action filter_type
action union
action find
entity Maria Derflinger
relation position held
action find
entity Helmut Link
relation position held
type occupation
{'OR': [['Maria Derflinger', 'position held', {'concept': 'occupation'}], ['Helmut Link', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Helmut_Link property:position_held ?l } UNION { resource:Maria_Derflinger property:position_held ?l } } . ?l rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q17638008 Q2342494
USER
Which occupations are depicted in max number of game equipment and collectables ?
(c(Q17638008)|c(Q2342494),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
[[{'concept': 'Q17638008'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?o WHERE { { ?m property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q17638008 } UNION { ?m property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q2342494 } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?w WHERE { { ?n property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q17638008 } UNION { ?n property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q2342494 } } GROUP BY ?w } . FILTER ( ?i = ?r ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
[[{'concept': 'game equipment'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?o WHERE { { ?m property:depicts ?o . ?o rdf:type ontology:occupation . ?m rdf:type ontology:game_equipment } UNION { ?m property:depicts ?o . ?o rdf:type ontology:occupation . ?m rdf:type ontology:collectable } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?w WHERE { { ?n property:depicts ?w . ?w rdf:type ontology:occupation . ?n rdf:type ontology:game_equipment } UNION { ?n property:depicts ?w . ?w rdf:type ontology:occupation . ?n rdf:type ontology:collectable } } GROUP BY ?w } . FILTER ( ?i = ?r ) }
[]
occupation game equipment collectable
Q12097
SYSTEM
king
Q12097
(c(Q17638008)|c(Q2342494),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
The [ANSWER] is depicted in max number of game equipment and collectables
[[{'concept': 'Q17638008'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?o WHERE { { ?m property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q17638008 } UNION { ?m property:P180 ?o . ?o rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q2342494 } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?w WHERE { { ?n property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q17638008 } UNION { ?n property:P180 ?w . ?w rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q2342494 } } GROUP BY ?w } . FILTER ( ?i = ?r ) }
king
The king is depicted in max number of game equipment and collectables
king
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
[[{'concept': 'game equipment'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?o WHERE { { ?m property:depicts ?o . ?o rdf:type ontology:occupation . ?m rdf:type ontology:game_equipment } UNION { ?m property:depicts ?o . ?o rdf:type ontology:occupation . ?m rdf:type ontology:collectable } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?w WHERE { { ?n property:depicts ?w . ?w rdf:type ontology:occupation . ?n rdf:type ontology:game_equipment } UNION { ?n property:depicts ?w . ?w rdf:type ontology:occupation . ?n rdf:type ontology:collectable } } GROUP BY ?w } . FILTER ( ?i = ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1939555
P106
Q502895
USER
Which person has member of the German Bundestag as his/her means of employment ?
(c(Q502895),P106,Q1939555)
action filter_type
action find_reverse
entity Q1939555
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q1939555']
SELECT DISTINCT ?q WHERE { ?q property:P106 resource:Q1939555 . ?q rdf:type ontology:Q502895 }
member of the German Bundestag
action filter_type
action find_reverse
entity member of the German Bundestag
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the German Bundestag']
SELECT DISTINCT ?q WHERE { ?q property:occupation resource:member_of_the_German_Bundestag . ?q rdf:type ontology:common_name }
[]
common name
Q84942
SYSTEM
Herbert Hupka
Q84942
(c(Q502895),P106,Q1939555)
action filter_type
action find_reverse
entity Q1939555
relation P106
type Q502895
[ANSWER] has member of the German Bundestag as his/her means of employment
[{'concept': 'Q502895'}, 'P106', 'Q1939555']
SELECT DISTINCT ?q WHERE { ?q property:P106 resource:Q1939555 . ?q rdf:type ontology:Q502895 }
Herbert Hupka
Herbert Hupka has member of the German Bundestag as his/her means of employment
Herbert Hupka
action filter_type
action find_reverse
entity member of the German Bundestag
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the German Bundestag']
SELECT DISTINCT ?q WHERE { ?q property:occupation resource:member_of_the_German_Bundestag . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q84942
P40
Q502895
USER
Who has that one as a child ?
(c(Q502895),P40,Q84942)
action filter_type
action find_reverse
entity Q84942
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q84942']
SELECT DISTINCT ?o WHERE { ?o property:P40 resource:Q84942 . ?o rdf:type ontology:Q502895 }
Herbert Hupka
action filter_type
action find_reverse
entity Herbert Hupka
relation child
type common name
[{'concept': 'common name'}, 'child', 'Herbert Hupka']
SELECT DISTINCT ?o WHERE { ?o property:child resource:Herbert_Hupka . ?o rdf:type ontology:common_name }
[]
common name
Q19287605
SYSTEM
Karl Erich Hupka
Q19287605
(c(Q502895),P40,Q84942)
action filter_type
action find_reverse
entity Q84942
relation P40
type Q502895
[ANSWER] has that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q84942']
SELECT DISTINCT ?o WHERE { ?o property:P40 resource:Q84942 . ?o rdf:type ontology:Q502895 }
Karl Erich Hupka
Karl Erich Hupka has that one as a child
Karl Erich Hupka
action filter_type
action find_reverse
entity Herbert Hupka
relation child
type common name
[{'concept': 'common name'}, 'child', 'Herbert Hupka']
SELECT DISTINCT ?o WHERE { ?o property:child resource:Herbert_Hupka . ?o rdf:type ontology:common_name }
[]