Simple Question (Direct)
Simple Question
Q12313064
P19
Q56061
USER
Which administrative territory is the birthplace of Frode Kristoffersen ?
(Q12313064,P19,c(Q56061))
action filter_type
action find
entity Q12313064
relation P19
type Q56061
['Q12313064', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q12313064 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Frode Kristoffersen
action filter_type
action find
entity Frode Kristoffersen
relation place of birth
type administrative territorial entity
['Frode Kristoffersen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Frode_Kristoffersen property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q21179
SYSTEM
Sønderborg
Q21179
(Q12313064,P19,c(Q56061))
action filter_type
action find
entity Q12313064
relation P19
type Q56061
[ANSWER]
['Q12313064', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q12313064 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Sønderborg
Sønderborg
action filter_type
action find
entity Frode Kristoffersen
relation place of birth
type administrative territorial entity
['Frode Kristoffersen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Frode_Kristoffersen property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12313064
P39
Q12737077
USER
What was the position for which Frode Kristoffersen was appointed ?
(Q12313064,P39,c(Q12737077))
action filter_type
action find
entity Q12313064
relation P39
type Q12737077
['Q12313064', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q12313064 property:P39 ?t }
Frode Kristoffersen
action filter_type
action find
entity Frode Kristoffersen
relation position held
type occupation
['Frode Kristoffersen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Frode_Kristoffersen property:position_held ?t }
[]
occupation
Q27169
SYSTEM
member of the European Parliament
Q27169
(Q12313064,P39,c(Q12737077))
action filter_type
action find
entity Q12313064
relation P39
type Q12737077
[ANSWER]
['Q12313064', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q12313064 property:P39 ?t }
member of the European Parliament
member of the European Parliament
action filter_type
action find
entity Frode Kristoffersen
relation position held
type occupation
['Frode Kristoffersen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Frode_Kristoffersen property:position_held ?t }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16760765
Q12737077
USER
And what about Even Rejerson?
(Q16760765,P39,c(Q12737077))
action filter_type
action find
entity Q16760765
relation P39
type Q12737077
['Q16760765', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q16760765 property:P39 ?g }
Even Rejerson
action filter_type
action find
entity Even Rejerson
relation position held
type occupation
['Even Rejerson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Even_Rejerson property:position_held ?g }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q16760765,P39,c(Q12737077))
action filter_type
action find
entity Q16760765
relation P39
type Q12737077
[ANSWER]
['Q16760765', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q12737077 . resource:Q16760765 property:P39 ?g }
member of the Parliament of Norway
member of the Parliament of Norway
action filter_type
action find
entity Even Rejerson
relation position held
type occupation
['Even Rejerson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:occupation . resource:Even_Rejerson property:position_held ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9045502
P106
Q502895
USER
Which people have the profession of that occupation ?
(c(Q502895),P106,Q9045502)
action filter_type
action find_reverse
entity Q9045502
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q9045502']
SELECT DISTINCT ?p WHERE { ?p property:P106 resource:Q9045502 . ?p rdf:type ontology:Q502895 }
member of the Parliament of Norway
action filter_type
action find_reverse
entity member of the Parliament of Norway
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the Parliament of Norway']
SELECT DISTINCT ?p WHERE { ?p property:occupation resource:member_of_the_Parliament_of_Norway . ?p rdf:type ontology:common_name }
[]
common name
Q7159099 Q11972393
SYSTEM
Peder Klykken, Gotfred Johan Hølvold
Q7159099 Q11972393
(c(Q502895),P106,Q9045502)
action filter_type
action find_reverse
entity Q9045502
relation P106
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P106', 'Q9045502']
SELECT DISTINCT ?p WHERE { ?p property:P106 resource:Q9045502 . ?p rdf:type ontology:Q502895 }
Peder Klykken Gotfred Johan Hølvold
Peder Klykken Gotfred Johan Hølvold
action filter_type
action find_reverse
entity member of the Parliament of Norway
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'member of the Parliament of Norway']
SELECT DISTINCT ?p WHERE { ?p property:occupation resource:member_of_the_Parliament_of_Norway . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q11972393
P102
Q7278
USER
Which political party is that person a member of ?
(Q11972393,P102,c(Q7278))
action filter_type
action find
entity Q11972393
relation P102
type Q7278
['Q11972393', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?x WHERE { resource:Q11972393 property:P102 ?x . ?x rdf:type ontology:Q7278 }
Gotfred Johan Hølvold
action filter_type
action find
entity Gotfred Johan Hølvold
relation member of political party
type political party
['Gotfred Johan Hølvold', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?x WHERE { resource:Gotfred_Johan_Hølvold property:member_of_political_party ?x . ?x rdf:type ontology:political_party }
[]
political party
Clarification for simple ques.
Q11972393
SYSTEM
Did you mean Gotfred Johan Hølvold ?
Q7159099 Q11972393
(Q7159099,P102,c(Q7278)) (Q11972393,P102,c(Q7278))
[ANSWER]
['Q7159099', 'P102', {'concept': 'Q7278'}] ['Q11972393', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?x WHERE { resource:Q11972393 property:P102 ?x . ?x rdf:type ontology:Q7278 }
Peder Klykken Gotfred Johan Hølvold
Did you mean Gotfred Johan Hølvold ?
Gotfred Johan Hølvold
['Peder Klykken', 'member of political party', {'concept': 'political party'}] ['Gotfred Johan Hølvold', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?x WHERE { resource:Gotfred_Johan_Hølvold property:member_of_political_party ?x . ?x rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
USER
Yes
(Q11972393,P102,c(Q7278))
['Q11972393', 'P102', {'concept': 'Q7278'}]
['Gotfred Johan Hølvold', 'member of political party', {'concept': 'political party'}]
[]
Q587803
SYSTEM
Communist Party of Norway
Q587803
(Q11972393,P102,c(Q7278))
action filter_type
action find
entity Q11972393
relation P102
type Q7278
[ANSWER]
['Q11972393', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?x WHERE { resource:Q11972393 property:P102 ?x . ?x rdf:type ontology:Q7278 }
Communist Party of Norway
Communist Party of Norway
action filter_type
action find
entity Gotfred Johan Hølvold
relation member of political party
type political party
['Gotfred Johan Hølvold', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?x WHERE { resource:Gotfred_Johan_Hølvold property:member_of_political_party ?x . ?x rdf:type ontology:political_party }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P102
Q7278 Q502895
USER
How many political parties do greater number of people belong to than that political party ?
(c(Q502895),P102,c(Q7278))
action count
action greater
action find_reverse_tuple_counts
relation P102
type Q7278
type Q502895
action count
action filter_type
action find
entity Q587803
relation P102
type Q7278
[{'concept': 'Q502895'}, 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b rdf:type ontology:Q7278 . ?r rdf:type ontology:Q502895 . ?r property:P102 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Q587803 property:P102 ?e . ?e rdf:type ontology:Q7278 } } . FILTER ( ?l > ?o ) }
action count
action greater
action find_reverse_tuple_counts
relation member of political party
type political party
type common name
action count
action filter_type
action find
entity Communist Party of Norway
relation member of political party
type political party
[{'concept': 'common name'}, 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b rdf:type ontology:political_party . ?r rdf:type ontology:common_name . ?r property:member_of_political_party ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Communist_Party_of_Norway property:member_of_political_party ?e . ?e rdf:type ontology:political_party } } . FILTER ( ?l > ?o ) }
[]
political party common name
SYSTEM
21
Q641600 Q49750 Q1129443 Q161118 Q79854 Q49762 Q49766 Q192821 Q2055003 Q478811 Q3047700 Q3176618 Q138198 Q153401 Q148861 Q17427 Q49754 Q49755 Q150068 Q49768 Q185088
(c(Q502895),P102,c(Q7278))
action count
action greater
action find_reverse_tuple_counts
relation P102
type Q7278
type Q502895
action count
action filter_type
action find
entity Q587803
relation P102
type Q7278
[ANSWER]
[{'concept': 'Q502895'}, 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b rdf:type ontology:Q7278 . ?r rdf:type ontology:Q502895 . ?r property:P102 ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Q587803 property:P102 ?e . ?e rdf:type ontology:Q7278 } } . FILTER ( ?l > ?o ) }
Japanese Communist Party Socialist Unity Party of Germany Democratic Convergence of Catalonia Communist Party of Austria Communist Party of the Soviet Union Christian Democratic Union Alliance '90/The Greens French Communist Party Socialists' Party of Catalonia Communist Party of Spain Liberal-Conservative Party Socialist Party of the Valencian Country Spanish Socialist Workers' Party Communist Party of Germany German Communist Party Communist Party of China Christian Democratic Union Liberal Democratic Party of Germany Republican Left of Catalonia Social Democratic Party of Germany People's Party
21
action count
action greater
action find_reverse_tuple_counts
relation member of political party
type political party
type common name
action count
action filter_type
action find
entity Communist Party of Norway
relation member of political party
type political party
[{'concept': 'common name'}, 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b rdf:type ontology:political_party . ?r rdf:type ontology:common_name . ?r property:member_of_political_party ?b } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { resource:Communist_Party_of_Norway property:member_of_political_party ?e . ?e rdf:type ontology:political_party } } . FILTER ( ?l > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7159099
P20
Q15700808
USER
Where did Peder Klykken expire ?
(Q7159099,P20,c(Q15700808))
action filter_type
action find
entity Q7159099
relation P20
type Q15700808
['Q7159099', 'P20', {'concept': 'Q15700808'}]
SELECT DISTINCT ?o WHERE { resource:Q7159099 property:P20 ?o . ?o rdf:type ontology:Q15700808 }
Peder Klykken
action filter_type
action find
entity Peder Klykken
relation place of death
type urban unit definition
['Peder Klykken', 'place of death', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?o WHERE { resource:Peder_Klykken property:place_of_death ?o . ?o rdf:type ontology:urban_unit_definition }
[]
urban unit definition
Q3357691
SYSTEM
Skogn
Q3357691
(Q7159099,P20,c(Q15700808))
action filter_type
action find
entity Q7159099
relation P20
type Q15700808
[ANSWER]
['Q7159099', 'P20', {'concept': 'Q15700808'}]
SELECT DISTINCT ?o WHERE { resource:Q7159099 property:P20 ?o . ?o rdf:type ontology:Q15700808 }
Skogn
Skogn
action filter_type
action find
entity Peder Klykken
relation place of death
type urban unit definition
['Peder Klykken', 'place of death', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?o WHERE { resource:Peder_Klykken property:place_of_death ?o . ?o rdf:type ontology:urban_unit_definition }
[]