Simple Question (Direct)
Simple Question
Q7659965
P102
Q7210356
USER
Which party is Sydney Herbert Thompson affiliated with ?
(Q7659965,P102,c(Q7210356))
action filter_type
action find
entity Q7659965
relation P102
type Q7210356
['Q7659965', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q7659965 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Sydney Herbert Thompson
action filter_type
action find
entity Sydney Herbert Thompson
relation member of political party
type political organization
['Sydney Herbert Thompson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Sydney_Herbert_Thompson property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
political organization
Q951941
SYSTEM
Social Credit Party of Canada
Q951941
(Q7659965,P102,c(Q7210356))
action filter_type
action find
entity Q7659965
relation P102
type Q7210356
Sydney Herbert Thompson is affiliated with [ANSWER]
['Q7659965', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?p WHERE { resource:Q7659965 property:P102 ?p . ?p rdf:type ontology:Q7210356 }
Social Credit Party of Canada
Sydney Herbert Thompson is affiliated with Social Credit Party of Canada
Social Credit Party of Canada
action filter_type
action find
entity Sydney Herbert Thompson
relation member of political party
type political organization
['Sydney Herbert Thompson', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?p WHERE { resource:Sydney_Herbert_Thompson property:member_of_political_party ?p . ?p rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q951941
P17
Q1048835
USER
Which political territory is that political organization a part of ?
(Q951941,P17,c(Q1048835))
action filter_type
action find
entity Q951941
relation P17
type Q1048835
['Q951941', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q951941 property:P17 ?m }
Social Credit Party of Canada
action filter_type
action find
entity Social Credit Party of Canada
relation country
type political territorial entity
['Social Credit Party of Canada', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Social_Credit_Party_of_Canada property:country ?m }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q951941,P17,c(Q1048835))
action filter_type
action find
entity Q951941
relation P17
type Q1048835
The [ANSWER] is that political organization a part of
['Q951941', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q1048835 . resource:Q951941 property:P17 ?m }
Canada
The Canada is that political organization a part of
Canada
action filter_type
action find
entity Social Credit Party of Canada
relation country
type political territorial entity
['Social Credit Party of Canada', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:political_territorial_entity . resource:Social_Credit_Party_of_Canada property:country ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q951941
P39
Q502895
USER
Which person was responsible for occupying the position of that political organization ?
(c(Q502895),P39,Q16)
action filter_type
action find_reverse
entity Q951941
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q16']
SELECT DISTINCT ?t WHERE { ?t property:P39 resource:Q951941 . ?t rdf:type ontology:Q502895 }
Social Credit Party of Canada
action filter_type
action find_reverse
entity Social Credit Party of Canada
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Canada']
SELECT DISTINCT ?t WHERE { ?t property:position_held resource:Social_Credit_Party_of_Canada . ?t rdf:type ontology:common_name }
[]
common name
Q3454399
SYSTEM
Réal Caouette
Q3454399
(c(Q502895),P39,Q16)
action filter_type
action find_reverse
entity Q951941
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that political organization
[{'concept': 'Q502895'}, 'P39', 'Q16']
SELECT DISTINCT ?t WHERE { ?t property:P39 resource:Q951941 . ?t rdf:type ontology:Q502895 }
Réal Caouette
Réal Caouette was responsible for occupying the position of that political organization
Réal Caouette
action filter_type
action find_reverse
entity Social Credit Party of Canada
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Canada']
SELECT DISTINCT ?t WHERE { ?t property:position_held resource:Social_Credit_Party_of_Canada . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q62447 Q12737077
USER
How many political territories are around 683 aerodromes and occupations present in ?
(c(Q62447)|c(Q12737077),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q62447
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q12737077
value 683
[[{'concept': 'Q62447'}, {'concept': 'Q12737077'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q12737077 ) ( ontology:Q62447 ) } . ?c rdf:type ?h } GROUP BY ?l } . FILTER ( ?a = 683 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type political territorial entity
type occupation
value 683
[[{'concept': 'aerodrome'}, {'concept': 'occupation'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?h ) { ( ontology:occupation ) ( ontology:aerodrome ) } . ?c rdf:type ?h } GROUP BY ?l } . FILTER ( ?a = 683 ) }
[]
political territorial entity aerodrome occupation
SYSTEM
2
Q183 Q408
(c(Q62447)|c(Q12737077),P17,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q62447
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q12737077
value 683
[ANSWER]
[[{'concept': 'Q62447'}, {'concept': 'Q12737077'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?h ) { ( ontology:Q12737077 ) ( ontology:Q62447 ) } . ?c rdf:type ?h } GROUP BY ?l } . FILTER ( ?a = 683 ) }
Germany Australia
2
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type aerodrome
action find_reverse_tuple_counts
relation country
type political territorial entity
type occupation
value 683
[[{'concept': 'aerodrome'}, {'concept': 'occupation'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?l WHERE { VALUES ( ?h ) { ( ontology:occupation ) ( ontology:aerodrome ) } . ?c rdf:type ?h } GROUP BY ?l } . FILTER ( ?a = 683 ) }
[]