Simple Question (Direct)
Simple Question
Q1930818
P21
Q290
USER
Which sex does Michel Longtin possess ?
(Q1930818,P21,c(Q290))
action filter_type
action find
entity Q1930818
relation P21
type Q290
['Q1930818', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1930818 property:P21 ?b . ?b rdf:type ontology:Q290 }
Michel Longtin
action filter_type
action find
entity Michel Longtin
relation gender
type sex
['Michel Longtin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Michel_Longtin property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1930818,P21,c(Q290))
action filter_type
action find
entity Q1930818
relation P21
type Q290
Michel Longtin possesses un [ANSWER]
['Q1930818', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1930818 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
Michel Longtin possesses un male
male
action filter_type
action find
entity Michel Longtin
relation gender
type sex
['Michel Longtin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Michel_Longtin property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1930818
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q1930818
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1930818 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Michel Longtin
action filter_type
action find
entity Michel Longtin
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Michel_Longtin property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340
SYSTEM
Montreal
Q340
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q1930818
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1930818 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Montreal
Montreal is the place of birth of that person
Montreal
action filter_type
action find
entity Michel Longtin
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Michel_Longtin property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1930818
P106
Q12737077
USER
What are the job of Michel Longtin ?
(Q1930818,P106,c(Q12737077))
action filter_type
action find
entity Q1930818
relation P106
type Q12737077
['Q1930818', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1930818 property:P106 ?n }
Michel Longtin
action filter_type
action find
entity Michel Longtin
relation occupation
type occupation
['Michel Longtin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Michel_Longtin property:occupation ?n }
[]
occupation
Q14915627 Q36834
SYSTEM
musicologist, composer
Q14915627 Q36834
(Q1930818,P106,c(Q12737077))
action filter_type
action find
entity Q1930818
relation P106
type Q12737077
The job of Michel Longtin are a [ANSWERS]
['Q1930818', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q1930818 property:P106 ?n }
musicologist composer
The job of Michel Longtin are a musicologist and composer
musicologist composer
action filter_type
action find
entity Michel Longtin
relation occupation
type occupation
['Michel Longtin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Michel_Longtin property:occupation ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1930818
P27
Q1048835
USER
Which political territory is Michel Longtin an inhabitant of ?
(Q1930818,P27,c(Q1048835))
action filter_type
action find
entity Q1930818
relation P27
type Q1048835
['Q1930818', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1930818 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Michel Longtin
action filter_type
action find
entity Michel Longtin
relation country of citizenship
type political territorial entity
['Michel Longtin', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Michel_Longtin property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q1930818,P27,c(Q1048835))
action filter_type
action find
entity Q1930818
relation P27
type Q1048835
The [ANSWER] is Michel Longtin an inhabitant of
['Q1930818', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1930818 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Canada
The Canada is Michel Longtin an inhabitant of
Canada
action filter_type
action find
entity Michel Longtin
relation country of citizenship
type political territorial entity
['Michel Longtin', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Michel_Longtin property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P194
Q1752346
USER
Which assembly is the legislative body for that political territory ?
(Q16,P194,c(Q1752346))
action filter_type
action find
entity Q16
relation P194
type Q1752346
['Q16', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q16 property:P194 ?e }
Canada
action filter_type
action find
entity Canada
relation legislative body
type assembly
['Canada', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:Canada property:legislative_body ?e }
[]
assembly
Q475689
SYSTEM
Parliament of Canada
Q475689
(Q16,P194,c(Q1752346))
action filter_type
action find
entity Q16
relation P194
type Q1752346
[ANSWER] is the legislative body for that political territory
['Q16', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1752346 . resource:Q16 property:P194 ?e }
Parliament of Canada
Parliament of Canada is the legislative body for that political territory
Parliament of Canada
action filter_type
action find
entity Canada
relation legislative body
type assembly
['Canada', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:assembly . resource:Canada property:legislative_body ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P194
Q1048835
USER
How many political territories have that assembly as their legislative body ?
(c(Q1048835),P194,Q475689)
action count
action filter_type
action find_reverse
entity Q475689
relation P194
type Q1048835
[{'concept': 'Q1048835'}, 'P194', 'Q475689']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:P194 resource:Q475689 . ?e rdf:type ontology:Q1048835 }
action count
action filter_type
action find_reverse
entity Parliament of Canada
relation legislative body
type political territorial entity
[{'concept': 'political territorial entity'}, 'legislative body', 'Parliament of Canada']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:legislative_body resource:Parliament_of_Canada . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q16
(c(Q1048835),P194,Q475689)
action count
action filter_type
action find_reverse
entity Q475689
relation P194
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P194', 'Q475689']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:P194 resource:Q475689 . ?e rdf:type ontology:Q1048835 }
Canada
1
action count
action filter_type
action find_reverse
entity Parliament of Canada
relation legislative body
type political territorial entity
[{'concept': 'political territorial entity'}, 'legislative body', 'Parliament of Canada']
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { ?e property:legislative_body resource:Parliament_of_Canada . ?e rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P194
Q1752346 Q15617994
USER
Which administrative territories have max number of assemblies as their legislative body ?
(c(Q15617994),P194,c(Q1752346))
action argmax
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?g ) WHERE { ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1752346 . ?d property:P194 ?x } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1752346 . ?y property:P194 ?c } GROUP BY ?y } . FILTER ( ?q = ?h ) }
action argmax
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?g ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:assembly . ?d property:legislative_body ?x } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:assembly . ?y property:legislative_body ?c } GROUP BY ?y } . FILTER ( ?q = ?h ) }
[]
assembly designation for an administrative territorial entity
Q794 Q6465
SYSTEM
Iran, department of France
Q794 Q6465
(c(Q15617994),P194,c(Q1752346))
action argmax
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
[ANSWERS] have max number of assemblies as their legislative body
[{'concept': 'Q15617994'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?g ) WHERE { ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1752346 . ?d property:P194 ?x } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1752346 . ?y property:P194 ?c } GROUP BY ?y } . FILTER ( ?q = ?h ) }
Iran department of France
Iran and department of France have max number of assemblies as their legislative body
Iran department of France
action argmax
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?h ) { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?g ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:assembly . ?d property:legislative_body ?x } GROUP BY ?d } } . { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:assembly . ?y property:legislative_body ?c } GROUP BY ?y } . FILTER ( ?q = ?h ) }
[]