Simple Question (Direct)
Simple Question
Q480487
P106
Q12737077
USER
Which occupation is the profession of John Frederick Lampe ?
(Q480487,P106,c(Q12737077))
action filter_type
action find
entity Q480487
relation P106
type Q12737077
['Q480487', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . resource:Q480487 property:P106 ?o }
John Frederick Lampe
action filter_type
action find
entity John Frederick Lampe
relation occupation
type occupation
['John Frederick Lampe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . resource:John_Frederick_Lampe property:occupation ?o }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q480487,P106,c(Q12737077))
action filter_type
action find
entity Q480487
relation P106
type Q12737077
The [ANSWER] is the profession of John Frederick Lampe
['Q480487', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q12737077 . resource:Q480487 property:P106 ?o }
composer
The composer is the profession of John Frederick Lampe
composer
action filter_type
action find
entity John Frederick Lampe
relation occupation
type occupation
['John Frederick Lampe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:occupation . resource:John_Frederick_Lampe property:occupation ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36834
P39
Q502895
USER
Which person was appointed for the position of that occupation ?
(c(Q502895),P39,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q36834']
SELECT DISTINCT ?i WHERE { ?i property:P39 resource:Q36834 . ?i rdf:type ontology:Q502895 }
composer
action filter_type
action find_reverse
entity composer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'composer']
SELECT DISTINCT ?i WHERE { ?i property:position_held resource:composer . ?i rdf:type ontology:common_name }
[]
common name
Q3193394
SYSTEM
Karl Hajos
Q3193394
(c(Q502895),P39,Q36834)
action filter_type
action find_reverse
entity Q36834
relation P39
type Q502895
[ANSWER] was appointed for the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q36834']
SELECT DISTINCT ?i WHERE { ?i property:P39 resource:Q36834 . ?i rdf:type ontology:Q502895 }
Karl Hajos
Karl Hajos was appointed for the position of that occupation
Karl Hajos
action filter_type
action find_reverse
entity composer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'composer']
SELECT DISTINCT ?i WHERE { ?i property:position_held resource:composer . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3193394
P20
Q56061
USER
Where did that person die ?
(Q3193394,P20,c(Q56061))
action filter_type
action find
entity Q3193394
relation P20
type Q56061
['Q3193394', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q3193394 property:P20 ?m }
Karl Hajos
action filter_type
action find
entity Karl Hajos
relation place of death
type administrative territorial entity
['Karl Hajos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Karl_Hajos property:place_of_death ?m }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q3193394,P20,c(Q56061))
action filter_type
action find
entity Q3193394
relation P20
type Q56061
That person died in [ANSWER]
['Q3193394', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q3193394 property:P20 ?m }
Los Angeles
That person died in Los Angeles
Los Angeles
action filter_type
action find
entity Karl Hajos
relation place of death
type administrative territorial entity
['Karl Hajos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Karl_Hajos property:place_of_death ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q65
P47
Q56061 Q486972
USER
How many administrative territories or human settlements are adjacent to Los Angeles ?
(Q65,P47,c(Q56061)) (Q65,P47,c(Q486972))
action count
action union
action filter_type
action find
entity Q65
relation P47
type Q56061
action filter_type
action find
entity Q65
relation P47
type Q486972
['Q65', 'P47', {'concept': 'Q56061'}] ['Q65', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?a rdf:type ?s }
Los Angeles
action count
action union
action filter_type
action find
entity Los Angeles
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Los Angeles
relation shares border with
type human settlement
['Los Angeles', 'shares border with', {'concept': 'administrative territorial entity'}] ['Los Angeles', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?a rdf:type ?s }
[]
administrative territorial entity human settlement
SYSTEM
25
Q2584592 Q127856 Q846406 Q485716 Q487119 Q846409 Q690991 Q846421 Q1898611 Q494690 Q852581 Q752681 Q493378 Q290356 Q984162 Q47164 Q1898553 Q655926 Q983859 Q39561 Q489197 Q487315 Q1669280 Q913346 Q621549
(Q65,P47,c(Q56061)) (Q65,P47,c(Q486972))
action count
action union
action filter_type
action find
entity Q65
relation P47
type Q56061
action filter_type
action find
entity Q65
relation P47
type Q486972
[ANSWER]
['Q65', 'P47', {'concept': 'Q56061'}] ['Q65', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?a rdf:type ?s }
Ladera Heights Beverly Hills San Fernando Glendale Compton Gardena East Los Angeles West Hollywood Westmont Carson South Pasadena Alhambra Culver City San Pedro Lomita Santa Monica Willowbrook West Carson El Segundo Burbank Torrance Monterey West Athens Hidden Hills Inglewood
25
action count
action union
action filter_type
action find
entity Los Angeles
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Los Angeles
relation shares border with
type human settlement
['Los Angeles', 'shares border with', {'concept': 'administrative territorial entity'}] ['Los Angeles', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?a rdf:type ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q65
P194
Q1752346
USER
Which assembly governs Los Angeles ?
(Q65,P194,c(Q1752346))
action filter_type
action find
entity Q65
relation P194
type Q1752346
['Q65', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { resource:Q65 property:P194 ?d . ?d rdf:type ontology:Q1752346 }
Los Angeles
action filter_type
action find
entity Los Angeles
relation legislative body
type assembly
['Los Angeles', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { resource:Los_Angeles property:legislative_body ?d . ?d rdf:type ontology:assembly }
[]
assembly
Q1870447
SYSTEM
Los Angeles City Council
Q1870447
(Q65,P194,c(Q1752346))
action filter_type
action find
entity Q65
relation P194
type Q1752346
[ANSWER] governs Los Angeles
['Q65', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { resource:Q65 property:P194 ?d . ?d rdf:type ontology:Q1752346 }
Los Angeles City Council
Los Angeles City Council governs Los Angeles
Los Angeles City Council
action filter_type
action find
entity Los Angeles
relation legislative body
type assembly
['Los Angeles', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { resource:Los_Angeles property:legislative_body ?d . ?d rdf:type ontology:assembly }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1870447 Q6662640
P108
Q502895
USER
Does Lloyd Monserratt work for that assembly ?
(Q6662640,P108,Q1870447)
action is_in
entity Q1870447
action find
entity Q6662640
relation P108
['Q6662640', 'P108', 'Q1870447']
ASK WHERE { resource:Q6662640 property:P108 resource:Q1870447 }
Los Angeles City Council Lloyd Monserratt
action is_in
entity Los Angeles City Council
action find
entity Lloyd Monserratt
relation employer
['Lloyd Monserratt', 'employer', 'Los Angeles City Council']
ASK WHERE { resource:Lloyd_Monserratt property:employer resource:Los_Angeles_City_Council }
[]
common name
SYSTEM
YES
(Q6662640,P108,Q1870447)
action is_in
entity Q1870447
action find
entity Q6662640
relation P108
[ANSWER]
['Q6662640', 'P108', 'Q1870447']
ASK WHERE { resource:Q6662640 property:P108 resource:Q1870447 }
Yes
action is_in
entity Los Angeles City Council
action find
entity Lloyd Monserratt
relation employer
['Lloyd Monserratt', 'employer', 'Los Angeles City Council']
ASK WHERE { resource:Lloyd_Monserratt property:employer resource:Los_Angeles_City_Council }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q315851
P194
Q1752346 Q515
USER
How many cities have greater number of assemblies as their council than Carcar ?
(c(Q515),P194,c(Q1752346))
action count
action greater
action find_tuple_counts
relation P194
type Q515
type Q1752346
action count
action filter_type
action find
entity Q315851
relation P194
type Q515
[{'concept': 'Q515'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q315851 property:P194 ?l . ?l rdf:type ontology:Q515 } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { ?u rdf:type ontology:Q515 . ?e rdf:type ontology:Q1752346 . ?u property:P194 ?e } GROUP BY ?u } }
Carcar
action count
action greater
action find_tuple_counts
relation legislative body
type city
type assembly
action count
action filter_type
action find
entity Carcar
relation legislative body
type city
[{'concept': 'city'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Carcar property:legislative_body ?l . ?l rdf:type ontology:city } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { ?u rdf:type ontology:city . ?e rdf:type ontology:assembly . ?u property:legislative_body ?e } GROUP BY ?u } }
[]
assembly city
SYSTEM
8
Q1410 Q3616 Q43199 Q2096 Q1899 Q1486 Q1209 Q1773
(c(Q515),P194,c(Q1752346))
action count
action greater
action find_tuple_counts
relation P194
type Q515
type Q1752346
action count
action filter_type
action find
entity Q315851
relation P194
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Q315851 property:P194 ?l . ?l rdf:type ontology:Q515 } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { ?u rdf:type ontology:Q515 . ?e rdf:type ontology:Q1752346 . ?u property:P194 ?e } GROUP BY ?u } }
Gibraltar Tehran Omaha Edmonton Kyiv Buenos Aires Free Hanseatic City of Bremen Riga
8
action count
action greater
action find_tuple_counts
relation legislative body
type city
type assembly
action count
action filter_type
action find
entity Carcar
relation legislative body
type city
[{'concept': 'city'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { resource:Carcar property:legislative_body ?l . ?l rdf:type ontology:city } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?k ) WHERE { ?u rdf:type ontology:city . ?e rdf:type ontology:assembly . ?u property:legislative_body ?e } GROUP BY ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3193394
P39
Q12737077
USER
How many occupations were a position held by Karl Hajos ?
(Q3193394,P39,c(Q12737077))
action count
action filter_type
action find
entity Q3193394
relation P39
type Q12737077
['Q3193394', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Q3193394 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
Karl Hajos
action count
action filter_type
action find
entity Karl Hajos
relation position held
type occupation
['Karl Hajos', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Karl_Hajos property:position_held ?s . ?s rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
Q36834
(Q3193394,P39,c(Q12737077))
action count
action filter_type
action find
entity Q3193394
relation P39
type Q12737077
[ANSWER]
['Q3193394', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Q3193394 property:P39 ?s . ?s rdf:type ontology:Q12737077 }
composer
1
action count
action filter_type
action find
entity Karl Hajos
relation position held
type occupation
['Karl Hajos', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { resource:Karl_Hajos property:position_held ?s . ?s rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q16228113
P39
Q12737077
USER
And also tell me about Richard Pudsey?
(Q16228113,P39,c(Q12737077))
action count
action filter_type
action find
entity Q16228113
relation P39
type Q12737077
['Q16228113', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:Q12737077 . resource:Q16228113 property:P39 ?x }
Richard Pudsey
action count
action filter_type
action find
entity Richard Pudsey
relation position held
type occupation
['Richard Pudsey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:occupation . resource:Richard_Pudsey property:position_held ?x }
[]
occupation
SYSTEM
1
Q18018860
(Q16228113,P39,c(Q12737077))
action count
action filter_type
action find
entity Q16228113
relation P39
type Q12737077
[ANSWER]
['Q16228113', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:Q12737077 . resource:Q16228113 property:P39 ?x }
Member of Parliament in the Parliament of England
1
action count
action filter_type
action find
entity Richard Pudsey
relation position held
type occupation
['Richard Pudsey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { ?x rdf:type ontology:occupation . resource:Richard_Pudsey property:position_held ?x }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q80518
Q12737077
USER
And how about Jorund?
(Q80518,P39,c(Q12737077))
action count
action filter_type
action find
entity Q80518
relation P39
type Q12737077
['Q80518', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:Q12737077 . resource:Q80518 property:P39 ?c }
Jorund
action count
action filter_type
action find
entity Jorund
relation position held
type occupation
['Jorund', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:occupation . resource:Jorund property:position_held ?c }
[]
occupation
SYSTEM
1
(Q80518,P39,c(Q12737077))
action count
action filter_type
action find
entity Q80518
relation P39
type Q12737077
[ANSWER]
['Q80518', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:Q12737077 . resource:Q80518 property:P39 ?c }
1
action count
action filter_type
action find
entity Jorund
relation position held
type occupation
['Jorund', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { ?c rdf:type ontology:occupation . resource:Jorund property:position_held ?c }
[]