Simple Question (Direct)
Simple Question
Q107952
P106
Q12737077
USER
What do Eduard Puricelli do for a living ?
(Q107952,P106,c(Q12737077))
action filter_type
action find
entity Q107952
relation P106
type Q12737077
['Q107952', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q107952 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Eduard Puricelli
action filter_type
action find
entity Eduard Puricelli
relation occupation
type occupation
['Eduard Puricelli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Eduard_Puricelli property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q82955 Q131524
SYSTEM
politician, entrepreneur
Q82955 Q131524
(Q107952,P106,c(Q12737077))
action filter_type
action find
entity Q107952
relation P106
type Q12737077
[ANSWERS] Eduard Puricelli do for a living
['Q107952', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q107952 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
politician entrepreneur
Politician and entrepreneur Eduard Puricelli do for a living
politician entrepreneur
action filter_type
action find
entity Eduard Puricelli
relation occupation
type occupation
['Eduard Puricelli', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Eduard_Puricelli property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q131524
P39
Q502895
USER
Which people were appointed for the position of that occupation ?
(c(Q502895),P39,Q131524)
action filter_type
action find_reverse
entity Q131524
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q131524']
SELECT DISTINCT ?e WHERE { ?e property:P39 resource:Q131524 . ?e rdf:type ontology:Q502895 }
entrepreneur
action filter_type
action find_reverse
entity entrepreneur
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'entrepreneur']
SELECT DISTINCT ?e WHERE { ?e property:position_held resource:entrepreneur . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q131524
SYSTEM
Did you mean entrepreneur ?
Q82955 Q131524
(c(Q502895),P39,Q82955) (c(Q502895),P39,Q131524)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q82955'] [{'concept': 'Q502895'}, 'P39', 'Q131524']
SELECT DISTINCT ?e WHERE { ?e property:P39 resource:Q131524 . ?e rdf:type ontology:Q502895 }
politician entrepreneur
Did you mean entrepreneur ?
entrepreneur
[{'concept': 'common name'}, 'position held', 'politician'] [{'concept': 'common name'}, 'position held', 'entrepreneur']
SELECT DISTINCT ?e WHERE { ?e property:position_held resource:entrepreneur . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P39,Q131524)
[{'concept': 'Q502895'}, 'P39', 'Q131524']
[{'concept': 'common name'}, 'position held', 'entrepreneur']
[]
Q20792941 Q18221077
SYSTEM
Marco, André Besnier
Q20792941 Q18221077
(c(Q502895),P39,Q131524)
action filter_type
action find_reverse
entity Q131524
relation P39
type Q502895
[ANSWERS] were appointed for the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q131524']
SELECT DISTINCT ?e WHERE { ?e property:P39 resource:Q131524 . ?e rdf:type ontology:Q502895 }
Marco André Besnier
Marco and André Besnier were appointed for the position of that occupation
Marco André Besnier
action filter_type
action find_reverse
entity entrepreneur
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'entrepreneur']
SELECT DISTINCT ?e WHERE { ?e property:position_held resource:entrepreneur . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q131524
P106
Q4830453 Q6619679
USER
How many business enterprises or fictional humanoids have the profession of entrepreneur ?
(c(Q4830453),P106,Q131524) (c(Q6619679),P106,Q131524)
action count
action union
action filter_type
action find_reverse
entity Q131524
relation P106
type Q4830453
action filter_type
action find_reverse
entity Q131524
relation P106
type Q6619679
[{'concept': 'Q4830453'}, 'P106', 'Q131524'] [{'concept': 'Q6619679'}, 'P106', 'Q131524']
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:P106 resource:Q131524 . ?e rdf:type ontology:Q4830453 } UNION { ?e property:P106 resource:Q131524 . ?e rdf:type ontology:Q6619679 } }
entrepreneur
action count
action union
action filter_type
action find_reverse
entity entrepreneur
relation occupation
type business enterprise
action filter_type
action find_reverse
entity entrepreneur
relation occupation
type fictional humanoid
[{'concept': 'business enterprise'}, 'occupation', 'entrepreneur'] [{'concept': 'fictional humanoid'}, 'occupation', 'entrepreneur']
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:occupation resource:entrepreneur . ?e rdf:type ontology:business_enterprise } UNION { ?e property:occupation resource:entrepreneur . ?e rdf:type ontology:fictional_humanoid } }
[]
business enterprise fictional humanoid
SYSTEM
5
Q3077690 Q10393654 Q126354 Q4982251 Q9286908
(c(Q4830453),P106,Q131524) (c(Q6619679),P106,Q131524)
action count
action union
action filter_type
action find_reverse
entity Q131524
relation P106
type Q4830453
action filter_type
action find_reverse
entity Q131524
relation P106
type Q6619679
[ANSWER]
[{'concept': 'Q4830453'}, 'P106', 'Q131524'] [{'concept': 'Q6619679'}, 'P106', 'Q131524']
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:P106 resource:Q131524 . ?e rdf:type ontology:Q4830453 } UNION { ?e property:P106 resource:Q131524 . ?e rdf:type ontology:Q6619679 } }
Forrest Gump Willard Whyte Friedrich Lutzmann Bubbles Dominic Greene
5
action count
action union
action filter_type
action find_reverse
entity entrepreneur
relation occupation
type business enterprise
action filter_type
action find_reverse
entity entrepreneur
relation occupation
type fictional humanoid
[{'concept': 'business enterprise'}, 'occupation', 'entrepreneur'] [{'concept': 'fictional humanoid'}, 'occupation', 'entrepreneur']
SELECT DISTINCT ( COUNT ( ?e ) AS ?v ) WHERE { { ?e property:occupation resource:entrepreneur . ?e rdf:type ontology:business_enterprise } UNION { ?e property:occupation resource:entrepreneur . ?e rdf:type ontology:fictional_humanoid } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15416
USER
Which television programs did max number of people do the dubbing for ?
(c(Q15416),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15416
type Q502895
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?s ) WHERE { ?r property:P725 ?l . ?r rdf:type ontology:Q15416 . ?l rdf:type ontology:Q502895 } GROUP BY ?r } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:P725 ?i . ?p rdf:type ontology:Q15416 . ?i rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?u = ?b ) }
action argmax
action find_tuple_counts
relation voice actor
type television program
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?s ) WHERE { ?r property:voice_actor ?l . ?r rdf:type ontology:television_program . ?l rdf:type ontology:common_name } GROUP BY ?r } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:voice_actor ?i . ?p rdf:type ontology:television_program . ?i rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?u = ?b ) }
[]
common name television program
Q23558
SYSTEM
House
Q23558
(c(Q15416),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15416
type Q502895
Max number of people did the [ANSWER] the dubbing for
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?s ) WHERE { ?r property:P725 ?l . ?r rdf:type ontology:Q15416 . ?l rdf:type ontology:Q502895 } GROUP BY ?r } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:P725 ?i . ?p rdf:type ontology:Q15416 . ?i rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?u = ?b ) }
House
Max number of people did the House the dubbing for
House
action argmax
action find_tuple_counts
relation voice actor
type television program
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?b ) { SELECT DISTINCT ?r ( COUNT ( ?l ) AS ?s ) WHERE { ?r property:voice_actor ?l . ?r rdf:type ontology:television_program . ?l rdf:type ontology:common_name } GROUP BY ?r } } . { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:voice_actor ?i . ?p rdf:type ontology:television_program . ?i rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?u = ?b ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q23558 Q13642756 Q15728109
P725
Q502895
USER
Did that television program have Lars Bergseng and Wilhelm Heinsius as the dubbing artist ?
(Q23558,P725,Q13642756) (Q23558,P725,Q15728109)
action is_in
entity Q23558
action intersection
action find_reverse
entity Q13642756
relation P725
action find_reverse
entity Q15728109
relation P725
['Q23558', 'P725', 'Q13642756'] ['Q23558', 'P725', 'Q15728109']
ASK WHERE { resource:Q23558 property:P725 resource:Q13642756 . resource:Q23558 property:P725 resource:Q15728109 }
House Lars Bergseng Wilhelm Heinsius
action is_in
entity House
action intersection
action find_reverse
entity Lars Bergseng
relation voice actor
action find_reverse
entity Wilhelm Heinsius
relation voice actor
['House', 'voice actor', 'Lars Bergseng'] ['House', 'voice actor', 'Wilhelm Heinsius']
ASK WHERE { resource:House property:voice_actor resource:Lars_Bergseng . resource:House property:voice_actor resource:Wilhelm_Heinsius }
[]
common name
SYSTEM
NO
(Q23558,P725,Q13642756) (Q23558,P725,Q15728109)
action is_in
entity Q23558
action intersection
action find_reverse
entity Q13642756
relation P725
action find_reverse
entity Q15728109
relation P725
[ANSWER]
['Q23558', 'P725', 'Q13642756'] ['Q23558', 'P725', 'Q15728109']
ASK WHERE { resource:Q23558 property:P725 resource:Q13642756 . resource:Q23558 property:P725 resource:Q15728109 }
No
action is_in
entity House
action intersection
action find_reverse
entity Lars Bergseng
relation voice actor
action find_reverse
entity Wilhelm Heinsius
relation voice actor
['House', 'voice actor', 'Lars Bergseng'] ['House', 'voice actor', 'Wilhelm Heinsius']
ASK WHERE { resource:House property:voice_actor resource:Lars_Bergseng . resource:House property:voice_actor resource:Wilhelm_Heinsius }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23558
P941
Q15416
USER
Who had that one as a source of inspiration ?
action filter_type
action find_reverse
entity Q23558
relation P941
type Q15416
SELECT DISTINCT ?q WHERE { ?q property:P941 resource:Q23558 . ?q rdf:type ontology:Q15416 }
House
action filter_type
action find_reverse
entity House
relation inspired by
type television program
SELECT DISTINCT ?q WHERE { ?q property:inspired_by resource:House . ?q rdf:type ontology:television_program }
[]
television program
Q15576983
SYSTEM
The Sniffer
Q15576983
action filter_type
action find_reverse
entity Q23558
relation P941
type Q15416
[ANSWER] had that one as a source of inspiration
SELECT DISTINCT ?q WHERE { ?q property:P941 resource:Q23558 . ?q rdf:type ontology:Q15416 }
The Sniffer
The Sniffer had that one as a source of inspiration
The Sniffer
action filter_type
action find_reverse
entity House
relation inspired by
type television program
SELECT DISTINCT ?q WHERE { ?q property:inspired_by resource:House . ?q rdf:type ontology:television_program }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q15576983 Q159 Q288455
P840
Q15617994
USER
Does that television program have its narrative set in Russia and Villamar ?
(Q15576983,P840,Q159) (Q15576983,P840,Q288455)
action is_in
entity Q15576983
action intersection
action find_reverse
entity Q159
relation P840
action find_reverse
entity Q288455
relation P840
['Q15576983', 'P840', 'Q159'] ['Q15576983', 'P840', 'Q288455']
ASK WHERE { resource:Q15576983 property:P840 resource:Q159 . resource:Q15576983 property:P840 resource:Q288455 }
The Sniffer Russia Villamar
action is_in
entity The Sniffer
action intersection
action find_reverse
entity Russia
relation narrative location
action find_reverse
entity Villamar
relation narrative location
['The Sniffer', 'narrative location', 'Russia'] ['The Sniffer', 'narrative location', 'Villamar']
ASK WHERE { resource:The_Sniffer property:narrative_location resource:Russia . resource:The_Sniffer property:narrative_location resource:Villamar }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q15576983,P840,Q159) (Q15576983,P840,Q288455)
action is_in
entity Q15576983
action intersection
action find_reverse
entity Q159
relation P840
action find_reverse
entity Q288455
relation P840
[ANSWER]
['Q15576983', 'P840', 'Q159'] ['Q15576983', 'P840', 'Q288455']
ASK WHERE { resource:Q15576983 property:P840 resource:Q159 . resource:Q15576983 property:P840 resource:Q288455 }
YES and NO respectively
action is_in
entity The Sniffer
action intersection
action find_reverse
entity Russia
relation narrative location
action find_reverse
entity Villamar
relation narrative location
['The Sniffer', 'narrative location', 'Russia'] ['The Sniffer', 'narrative location', 'Villamar']
ASK WHERE { resource:The_Sniffer property:narrative_location resource:Russia . resource:The_Sniffer property:narrative_location resource:Villamar }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15576983
P1441
Q6619679
USER
Which fictional humanoids are featured in that television program ?
action filter_type
action find_reverse
entity Q15576983
relation P1441
type Q6619679
SELECT DISTINCT ?f WHERE { ?f property:P1441 resource:Q15576983 . ?f rdf:type ontology:Q6619679 }
The Sniffer
action filter_type
action find_reverse
entity The Sniffer
relation present in work
type fictional humanoid
SELECT DISTINCT ?f WHERE { ?f property:present_in_work resource:The_Sniffer . ?f rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q21100120 Q21106055 Q21105143
SYSTEM
Sniffer, Voskresenskaya, Alex
Q21105143 Q21100104 Q21106055 Q21106222 Q21100148 Q21100120
action filter_type
action find_reverse
entity Q15576983
relation P1441
type Q6619679
[ANSWERS] are featured in that television program
SELECT DISTINCT ?f WHERE { ?f property:P1441 resource:Q15576983 . ?f rdf:type ontology:Q6619679 }
Alex Yulia Voskresenskaya Bondarev Victor Lebedev Sniffer
Sniffer, Voskresenskaya and Alex are featured in that television program
Sniffer Voskresenskaya Alex
action filter_type
action find_reverse
entity The Sniffer
relation present in work
type fictional humanoid
SELECT DISTINCT ?f WHERE { ?f property:present_in_work resource:The_Sniffer . ?f rdf:type ontology:fictional_humanoid }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21100120
P21
Q290
USER
What is the sex of Sniffer ?
(Q21100120,P21,c(Q290))
action filter_type
action find
entity Q21100120
relation P21
type Q290
['Q21100120', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q21100120 property:P21 ?u . ?u rdf:type ontology:Q290 }
Sniffer
action filter_type
action find
entity Sniffer
relation gender
type sex
['Sniffer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Sniffer property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21100120,P21,c(Q290))
action filter_type
action find
entity Q21100120
relation P21
type Q290
The sex of Sniffer is the [ANSWER]
['Q21100120', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q21100120 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
The sex of Sniffer is the male
male
action filter_type
action find
entity Sniffer
relation gender
type sex
['Sniffer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Sniffer property:gender ?u . ?u rdf:type ontology:sex }
[]