Simple Question (Direct)
Simple Question
Q5262643
P106
Q12737077
USER
What is the job of Derk Droze ?
(Q5262643,P106,c(Q12737077))
action filter_type
action find
entity Q5262643
relation P106
type Q12737077
['Q5262643', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5262643 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Derk Droze
action filter_type
action find
entity Derk Droze
relation occupation
type occupation
['Derk Droze', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Derk_Droze property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5262643,P106,c(Q12737077))
action filter_type
action find
entity Q5262643
relation P106
type Q12737077
The job of Derk Droze is an [ANSWER]
['Q5262643', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5262643 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
association football player
The job of Derk Droze is an association football player
association football player
action filter_type
action find
entity Derk Droze
relation occupation
type occupation
['Derk Droze', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Derk_Droze property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5262643
P641
Q349
USER
What did Derk Droze participate in ?
(Q5262643,P641,c(Q349))
action filter_type
action find
entity Q5262643
relation P641
type Q349
['Q5262643', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q5262643 property:P641 ?b . ?b rdf:type ontology:Q349 }
Derk Droze
action filter_type
action find
entity Derk Droze
relation sport
type sport
['Derk Droze', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Derk_Droze property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5262643,P641,c(Q349))
action filter_type
action find
entity Q5262643
relation P641
type Q349
Derk Droze participated in [ANSWER]
['Q5262643', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q5262643 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
Derk Droze participated in association football
association football
action filter_type
action find
entity Derk Droze
relation sport
type sport
['Derk Droze', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Derk_Droze property:sport ?b . ?b rdf:type ontology:sport }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P35
Q502895 Q7275 Q35798
USER
Which people have the highest formal authority in max number of states and executive branches ?
(c(Q7275)|c(Q35798),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?y ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:P35 ?h . ?u rdf:type ontology:Q7275 . ?h rdf:type ontology:Q502895 } UNION { ?u property:P35 ?h . ?h rdf:type ontology:Q502895 . ?u rdf:type ontology:Q35798 } } GROUP BY ?h } } . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } } GROUP BY ?e } . FILTER ( ?n = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?y ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:head_of_state ?h . ?u rdf:type ontology:state . ?h rdf:type ontology:common_name } UNION { ?u property:head_of_state ?h . ?h rdf:type ontology:common_name . ?u rdf:type ontology:executive_branch } } GROUP BY ?h } } . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:state ) ( ontology:executive_branch ) } } GROUP BY ?e } . FILTER ( ?n = ?y ) }
[]
common name state executive branch
Q150642
SYSTEM
Vittorio Emanuele III
Q150642
(c(Q7275)|c(Q35798),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
[ANSWER] have the highest formal authority in max number of states and executive branches
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?y ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:P35 ?h . ?u rdf:type ontology:Q7275 . ?h rdf:type ontology:Q502895 } UNION { ?u property:P35 ?h . ?h rdf:type ontology:Q502895 . ?u rdf:type ontology:Q35798 } } GROUP BY ?h } } . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } } GROUP BY ?e } . FILTER ( ?n = ?y ) }
Vittorio Emanuele III
Vittorio Emanuele III have the highest formal authority in max number of states and executive branches
Vittorio Emanuele III
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?y ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { { ?u property:head_of_state ?h . ?u rdf:type ontology:state . ?h rdf:type ontology:common_name } UNION { ?u property:head_of_state ?h . ?h rdf:type ontology:common_name . ?u rdf:type ontology:executive_branch } } GROUP BY ?h } } . { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?n ) WHERE { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:state ) ( ontology:executive_branch ) } } GROUP BY ?e } . FILTER ( ?n = ?y ) }
[]