Simple Question (Direct)
Simple Question
Q3301001
P27
Q1048835
USER
Which political territory is Maurice Lalonde an inhabitant of ?
(Q3301001,P27,c(Q1048835))
action filter_type
action find
entity Q3301001
relation P27
type Q1048835
['Q3301001', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q3301001 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Maurice Lalonde
action filter_type
action find
entity Maurice Lalonde
relation country of citizenship
type political territorial entity
['Maurice Lalonde', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Maurice_Lalonde property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3301001,P27,c(Q1048835))
action filter_type
action find
entity Q3301001
relation P27
type Q1048835
The [ANSWER] is Maurice Lalonde an inhabitant of
['Q3301001', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q3301001 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Canada
The Canada is Maurice Lalonde an inhabitant of
Canada
action filter_type
action find
entity Maurice Lalonde
relation country of citizenship
type political territorial entity
['Maurice Lalonde', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Maurice_Lalonde property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3301001
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q16,P102,c(Q7210356))
action filter_type
action find
entity Q3301001
relation P102
type Q7210356
['Q16', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q3301001 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Maurice Lalonde
action filter_type
action find
entity Maurice Lalonde
relation member of political party
type political organization
['Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Maurice_Lalonde property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
political organization
Q138345
SYSTEM
Liberal Party of Canada
Q138345
(Q16,P102,c(Q7210356))
action filter_type
action find
entity Q3301001
relation P102
type Q7210356
Canada [ANSWER] is that person a member of
['Q16', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?f WHERE { resource:Q3301001 property:P102 ?f . ?f rdf:type ontology:Q7210356 }
Liberal Party of Canada
Canada Liberal Party of Canada is that person a member of
Liberal Party of Canada
action filter_type
action find
entity Maurice Lalonde
relation member of political party
type political organization
['Canada', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?f WHERE { resource:Maurice_Lalonde property:member_of_political_party ?f . ?f rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3301001
P106
Q12737077
USER
What is the job of that person ?
(Q138345,P106,c(Q12737077))
action filter_type
action find
entity Q3301001
relation P106
type Q12737077
['Q138345', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3301001 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Maurice Lalonde
action filter_type
action find
entity Maurice Lalonde
relation occupation
type occupation
['Liberal Party of Canada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Maurice_Lalonde property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q138345,P106,c(Q12737077))
action filter_type
action find
entity Q3301001
relation P106
type Q12737077
The job of that person is a [ANSWER]
['Q138345', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3301001 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
politician
The job of that person is a politician
politician
action filter_type
action find
entity Maurice Lalonde
relation occupation
type occupation
['Liberal Party of Canada', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Maurice_Lalonde property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3301001
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q3301001
relation P39
type Q12737077
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q3301001 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
Maurice Lalonde
action filter_type
action find
entity Maurice Lalonde
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Maurice_Lalonde property:position_held ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q15964890
SYSTEM
member of the House of Commons of Canada
Q15964890
(Q82955,P39,c(Q12737077))
action filter_type
action find
entity Q3301001
relation P39
type Q12737077
A [ANSWER] was a position held by that person
['Q82955', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q3301001 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
member of the House of Commons of Canada
A member of the House of Commons of Canada was a position held by that person
member of the House of Commons of Canada
action filter_type
action find
entity Maurice Lalonde
relation position held
type occupation
['politician', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Maurice_Lalonde property:position_held ?k . ?k rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q2526534 Q3301001
P39
Q12737077
USER
Or Vincent Boreing?
OR((Q3301001,P39,c(Q12737077)), (Q2526534,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q3301001
relation P39
action find
entity Q2526534
relation P39
type Q12737077
{'OR': [['Q3301001', 'P39', {'concept': 'Q12737077'}], ['Q2526534', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q3301001 property:P39 ?j } UNION { resource:Q2526534 property:P39 ?j } } . ?j rdf:type ontology:Q12737077 }
Vincent Boreing Maurice Lalonde
action filter_type
action union
action find
entity Maurice Lalonde
relation position held
action find
entity Vincent Boreing
relation position held
type occupation
{'OR': [['Maurice Lalonde', 'position held', {'concept': 'occupation'}], ['Vincent Boreing', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Maurice_Lalonde property:position_held ?j } UNION { resource:Vincent_Boreing property:position_held ?j } } . ?j rdf:type ontology:occupation }
[]
occupation
Q13218630 Q15964890
SYSTEM
United States representative, member of the House of Commons of Canada
Q13218630 Q15964890
OR((Q3301001,P39,c(Q12737077)), (Q2526534,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q3301001
relation P39
action find
entity Q2526534
relation P39
type Q12737077
Vincent Boreing [ANSWERS] Or
{'OR': [['Q3301001', 'P39', {'concept': 'Q12737077'}], ['Q2526534', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q3301001 property:P39 ?j } UNION { resource:Q2526534 property:P39 ?j } } . ?j rdf:type ontology:Q12737077 }
United States representative member of the House of Commons of Canada
Vincent Boreing United States representative and member of the House of Commons of Canada Or
United States representative member of the House of Commons of Canada
action filter_type
action union
action find
entity Maurice Lalonde
relation position held
action find
entity Vincent Boreing
relation position held
type occupation
{'OR': [['Maurice Lalonde', 'position held', {'concept': 'occupation'}], ['Vincent Boreing', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Maurice_Lalonde property:position_held ?j } UNION { resource:Vincent_Boreing property:position_held ?j } } . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2526534
P21
Q290
USER
Which sex does Vincent Boreing have ?
(Q13218630,P21,c(Q290)) (Q15964890,P21,c(Q290))
action filter_type
action find
entity Q2526534
relation P21
type Q290
['Q13218630', 'P21', {'concept': 'Q290'}] ['Q15964890', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q2526534 property:P21 ?d . ?d rdf:type ontology:Q290 }
Vincent Boreing
action filter_type
action find
entity Vincent Boreing
relation gender
type sex
['United States representative', 'gender', {'concept': 'sex'}] ['member of the House of Commons of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Vincent_Boreing property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q13218630,P21,c(Q290)) (Q15964890,P21,c(Q290))
action filter_type
action find
entity Q2526534
relation P21
type Q290
Vincent Boreing has a [ANSWER]
['Q13218630', 'P21', {'concept': 'Q290'}] ['Q15964890', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q2526534 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
Vincent Boreing has a male
male
action filter_type
action find
entity Vincent Boreing
relation gender
type sex
['United States representative', 'gender', {'concept': 'sex'}] ['member of the House of Commons of Canada', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Vincent_Boreing property:gender ?d . ?d rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q1891471 Q2526534
P21
Q290
USER
And also Tommy Mollet
AND((Q2526534,P21,c(Q290)), (Q1891471,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q2526534
relation P21
action find
entity Q1891471
relation P21
type Q290
{'AND': [['Q2526534', 'P21', {'concept': 'Q290'}], ['Q1891471', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?f WHERE { resource:Q2526534 property:P21 ?f . resource:Q1891471 property:P21 ?f . ?f rdf:type ontology:Q290 }
Tommy Mollet Vincent Boreing
action filter_type
action intersection
action find
entity Vincent Boreing
relation gender
action find
entity Tommy Mollet
relation gender
type sex
{'AND': [['Vincent Boreing', 'gender', {'concept': 'sex'}], ['Tommy Mollet', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?f WHERE { resource:Vincent_Boreing property:gender ?f . resource:Tommy_Mollet property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q2526534,P21,c(Q290)), (Q1891471,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q2526534
relation P21
action find
entity Q1891471
relation P21
type Q290
[ANSWER]
{'AND': [['Q2526534', 'P21', {'concept': 'Q290'}], ['Q1891471', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?f WHERE { resource:Q2526534 property:P21 ?f . resource:Q1891471 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Vincent Boreing
relation gender
action find
entity Tommy Mollet
relation gender
type sex
{'AND': [['Vincent Boreing', 'gender', {'concept': 'sex'}], ['Tommy Mollet', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?f WHERE { resource:Vincent_Boreing property:gender ?f . resource:Tommy_Mollet property:gender ?f . ?f rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q151938
P122
Q22676587 Q56061 Q1048835
USER
How many political territories have less number of monarchic systems and administrative territories as government than Neutral Moresnet ?
(c(Q1048835),P122,c(Q22676587)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q151938
relation P122
type Q22676587
type Q56061
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?s WHERE { VALUES ( ?w ) { ( ontology:Q22676587 ) ( ontology:Q56061 ) } . ?c rdf:type ?w } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Q151938 property:P122 ?r . { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:Q22676587 ) ( ontology:Q56061 ) } } } } . FILTER ( ?m < ?z ) }
Neutral Moresnet
action count
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Neutral Moresnet
relation basic form of government
type monarchic system
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?s WHERE { VALUES ( ?w ) { ( ontology:monarchic_system ) ( ontology:administrative_territorial_entity ) } . ?c rdf:type ?w } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Neutral_Moresnet property:basic_form_of_government ?r . { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:monarchic_system ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?m < ?z ) }
[]
monarchic system administrative territorial entity political territorial entity
SYSTEM
21
Q183 Q601252 Q193619 Q1059046 Q664 Q641138 Q1925048 Q785 Q178084 Q16 Q35 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q31747 Q129286
(c(Q1048835),P122,c(Q22676587)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q151938
relation P122
type Q22676587
type Q56061
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?s WHERE { VALUES ( ?w ) { ( ontology:Q22676587 ) ( ontology:Q56061 ) } . ?c rdf:type ?w } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Q151938 property:P122 ?r . { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:Q22676587 ) ( ontology:Q56061 ) } } } } . FILTER ( ?m < ?z ) }
Germany Banovina of Croatia Union of South Africa Merkit people New Zealand Duchy of Cleves San Pedro Partido Jersey Ilkhanate Canada Denmark Golden Horde Kingdom of Etruria Dominion of New Zealand Australia Saint Vincent and the Grenadines County of Hoya Austria realm Irish Free State British Raj
21
action count
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Neutral Moresnet
relation basic form of government
type monarchic system
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?s WHERE { VALUES ( ?w ) { ( ontology:monarchic_system ) ( ontology:administrative_territorial_entity ) } . ?c rdf:type ?w } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { resource:Neutral_Moresnet property:basic_form_of_government ?r . { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:monarchic_system ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?m < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q38610
P122
Q22676587 Q56061 Q1048835
USER
And what about Dominion of Newfoundland?
(c(Q1048835),P122,c(Q22676587)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q38610
relation P122
type Q22676587
type Q56061
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?z WHERE { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q22676587 ) } } GROUP BY ?z } . FILTER ( ?k < ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { { ?h rdf:type ontology:Q22676587 } UNION { ?h rdf:type ontology:Q56061 } } . resource:Q38610 property:P122 ?h } } }
Dominion of Newfoundland
action count
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Dominion of Newfoundland
relation basic form of government
type monarchic system
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?z WHERE { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:monarchic_system ) } } GROUP BY ?z } . FILTER ( ?k < ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { { ?h rdf:type ontology:monarchic_system } UNION { ?h rdf:type ontology:administrative_territorial_entity } } . resource:Dominion_of_Newfoundland property:basic_form_of_government ?h } } }
[]
monarchic system administrative territorial entity political territorial entity
SYSTEM
21
Q183 Q601252 Q193619 Q1059046 Q664 Q641138 Q1925048 Q785 Q178084 Q16 Q35 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q31747 Q129286
(c(Q1048835),P122,c(Q22676587)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q38610
relation P122
type Q22676587
type Q56061
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?z WHERE { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:Q56061 ) ( ontology:Q22676587 ) } } GROUP BY ?z } . FILTER ( ?k < ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { { ?h rdf:type ontology:Q22676587 } UNION { ?h rdf:type ontology:Q56061 } } . resource:Q38610 property:P122 ?h } } }
Germany Banovina of Croatia Union of South Africa Merkit people New Zealand Duchy of Cleves San Pedro Partido Jersey Ilkhanate Canada Denmark Golden Horde Kingdom of Etruria Dominion of New Zealand Australia Saint Vincent and the Grenadines County of Hoya Austria realm Irish Free State British Raj
21
action count
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Dominion of Newfoundland
relation basic form of government
type monarchic system
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) ?z WHERE { ?v rdf:type ?c . VALUES ( ?c ) { ( ontology:administrative_territorial_entity ) ( ontology:monarchic_system ) } } GROUP BY ?z } . FILTER ( ?k < ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { { { ?h rdf:type ontology:monarchic_system } UNION { ?h rdf:type ontology:administrative_territorial_entity } } . resource:Dominion_of_Newfoundland property:basic_form_of_government ?h } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3301001
P19
Q56061
USER
Which administrative territory was Maurice Lalonde born in ?
(Q3301001,P19,c(Q56061))
action filter_type
action find
entity Q3301001
relation P19
type Q56061
['Q3301001', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q3301001 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Maurice Lalonde
action filter_type
action find
entity Maurice Lalonde
relation place of birth
type administrative territorial entity
['Maurice Lalonde', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Maurice_Lalonde property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340
SYSTEM
Montreal
Q340
(Q3301001,P19,c(Q56061))
action filter_type
action find
entity Q3301001
relation P19
type Q56061
Maurice Lalonde was born in [ANSWER]
['Q3301001', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q3301001 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Montreal
Maurice Lalonde was born in Montreal
Montreal
action filter_type
action find
entity Maurice Lalonde
relation place of birth
type administrative territorial entity
['Maurice Lalonde', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Maurice_Lalonde property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q340 Q1340511
P20
Q502895
USER
Did George Lamming expire at that administrative territory ?
(Q1340511,P20,Q340)
action is_in
entity Q1340511
action find
entity Q340
relation P20
['Q1340511', 'P20', 'Q340']
ASK WHERE { resource:Q340 property:P20 resource:Q1340511 }
Montreal George Lamming
action is_in
entity George Lamming
action find
entity Montreal
relation place of death
['George Lamming', 'place of death', 'Montreal']
ASK WHERE { resource:Montreal property:place_of_death resource:George_Lamming }
[]
common name
SYSTEM
NO
(Q1340511,P20,Q340)
action is_in
entity Q1340511
action find
entity Q340
relation P20
[ANSWER]
['Q1340511', 'P20', 'Q340']
ASK WHERE { resource:Q340 property:P20 resource:Q1340511 }
No
action is_in
entity George Lamming
action find
entity Montreal
relation place of death
['George Lamming', 'place of death', 'Montreal']
ASK WHERE { resource:Montreal property:place_of_death resource:George_Lamming }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q340
P36
Q7275
USER
Which state consists of that administrative territory as its capital ?
action filter_type
action find_reverse
entity Q340
relation P36
type Q7275
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q340 . ?t rdf:type ontology:Q7275 }
Montreal
action filter_type
action find_reverse
entity Montreal
relation capital
type state
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Montreal . ?t rdf:type ontology:state }
[]
state
Q1152445
SYSTEM
Aerican Empire
Q1152445
action filter_type
action find_reverse
entity Q340
relation P36
type Q7275
[ANSWER] consists of that administrative territory as its capital
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q340 . ?t rdf:type ontology:Q7275 }
Aerican Empire
Aerican Empire consists of that administrative territory as its capital
Aerican Empire
action filter_type
action find_reverse
entity Montreal
relation capital
type state
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Montreal . ?t rdf:type ontology:state }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q340 Q29709
P138
Q56061
USER
How many administrative territories are Montreal or Leghorn named after ?
(Q340,P138,c(Q56061)) (Q29709,P138,c(Q56061))
action count
action union
action filter_type
action find
entity Q340
relation P138
type Q56061
action filter_type
action find
entity Q29709
relation P138
type Q56061
['Q340', 'P138', {'concept': 'Q56061'}] ['Q29709', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { resource:Q340 property:P138 ?r . ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q56061 . resource:Q29709 property:P138 ?r } }
Montreal Leghorn
action count
action union
action filter_type
action find
entity Montreal
relation named after
type administrative territorial entity
action filter_type
action find
entity Leghorn
relation named after
type administrative territorial entity
['Montreal', 'named after', {'concept': 'administrative territorial entity'}] ['Leghorn', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { resource:Montreal property:named_after ?r . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:administrative_territorial_entity . resource:Leghorn property:named_after ?r } }
[]
administrative territorial entity
SYSTEM
2
Q2044 Q6761
(Q340,P138,c(Q56061)) (Q29709,P138,c(Q56061))
action count
action union
action filter_type
action find
entity Q340
relation P138
type Q56061
action filter_type
action find
entity Q29709
relation P138
type Q56061
[ANSWER]
['Q340', 'P138', {'concept': 'Q56061'}] ['Q29709', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { resource:Q340 property:P138 ?r . ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q56061 . resource:Q29709 property:P138 ?r } }
Florence Livorno
2
action count
action union
action filter_type
action find
entity Montreal
relation named after
type administrative territorial entity
action filter_type
action find
entity Leghorn
relation named after
type administrative territorial entity
['Montreal', 'named after', {'concept': 'administrative territorial entity'}] ['Leghorn', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { resource:Montreal property:named_after ?r . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:administrative_territorial_entity . resource:Leghorn property:named_after ?r } }
[]