Simple Question (Direct)
Simple Question
Q12325002
P19
Q56061
USER
Which administrative territory was Lucas Jensen born at ?
(Q12325002,P19,c(Q56061))
action filter_type
action find
entity Q12325002
relation P19
type Q56061
['Q12325002', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q12325002 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Lucas Jensen
action filter_type
action find
entity Lucas Jensen
relation place of birth
type administrative territorial entity
['Lucas Jensen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Lucas_Jensen property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q27678
SYSTEM
Holstebro
Q27678
(Q12325002,P19,c(Q56061))
action filter_type
action find
entity Q12325002
relation P19
type Q56061
Lucas Jensen was born in [ANSWER]
['Q12325002', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q12325002 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Holstebro
Lucas Jensen was born in Holstebro
Holstebro
action filter_type
action find
entity Lucas Jensen
relation place of birth
type administrative territorial entity
['Lucas Jensen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Lucas_Jensen property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12325002
P106
Q12737077
USER
What is the job of Lucas Jensen ?
(Q12325002,P106,c(Q12737077))
action filter_type
action find
entity Q12325002
relation P106
type Q12737077
['Q12325002', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q12325002 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Lucas Jensen
action filter_type
action find
entity Lucas Jensen
relation occupation
type occupation
['Lucas Jensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Lucas_Jensen property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q12325002,P106,c(Q12737077))
action filter_type
action find
entity Q12325002
relation P106
type Q12737077
The job of Lucas Jensen is an [ANSWER]
['Q12325002', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q12325002 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
association football player
The job of Lucas Jensen is an association football player
association football player
action filter_type
action find
entity Lucas Jensen
relation occupation
type occupation
['Lucas Jensen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Lucas_Jensen property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16231773 Q12325002
P27
Q1048835
USER
Which political territories are the native countriesof Lucas Jensen or Michael Lett ?
OR((Q12325002,P27,c(Q1048835)), (Q16231773,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q12325002
relation P27
action find
entity Q16231773
relation P27
type Q1048835
{'OR': [['Q12325002', 'P27', {'concept': 'Q1048835'}], ['Q16231773', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?k ) { ( resource:Q12325002 ) ( resource:Q16231773 ) } . ?k property:P27 ?t } . ?t rdf:type ontology:Q1048835 }
Michael Lett Lucas Jensen
action filter_type
action union
action find
entity Lucas Jensen
relation country of citizenship
action find
entity Michael Lett
relation country of citizenship
type political territorial entity
{'OR': [['Lucas Jensen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Michael Lett', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?k ) { ( resource:Lucas_Jensen ) ( resource:Michael_Lett ) } . ?k property:country_of_citizenship ?t } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q35
SYSTEM
Australia, Denmark
Q408 Q35
OR((Q12325002,P27,c(Q1048835)), (Q16231773,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q12325002
relation P27
action find
entity Q16231773
relation P27
type Q1048835
[ANSWERS] are the native countriesof Lucas Jensen or Michael Lett
{'OR': [['Q12325002', 'P27', {'concept': 'Q1048835'}], ['Q16231773', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?k ) { ( resource:Q12325002 ) ( resource:Q16231773 ) } . ?k property:P27 ?t } . ?t rdf:type ontology:Q1048835 }
Australia Denmark
Australia and Denmark are the native countriesof Lucas Jensen or Michael Lett
Australia Denmark
action filter_type
action union
action find
entity Lucas Jensen
relation country of citizenship
action find
entity Michael Lett
relation country of citizenship
type political territorial entity
{'OR': [['Lucas Jensen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Michael Lett', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?k ) { ( resource:Lucas_Jensen ) ( resource:Michael_Lett ) } . ?k property:country_of_citizenship ?t } . ?t rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P17
Q16970 Q12280
USER
How many churches and bridges are located in that political territory ?
(c(Q16970),P17,Q35) (c(Q12280),P17,Q35) (c(Q16970),P17,Q408) (c(Q12280),P17,Q408) (c(Q16970),P17,Q35) (c(Q12280),P17,Q35)
[{'concept': 'Q16970'}, 'P17', 'Q35'] [{'concept': 'Q12280'}, 'P17', 'Q35'] [{'concept': 'Q16970'}, 'P17', 'Q408'] [{'concept': 'Q12280'}, 'P17', 'Q408'] [{'concept': 'Q16970'}, 'P17', 'Q35'] [{'concept': 'Q12280'}, 'P17', 'Q35']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q22286761 } UNION { ?y property:Q6256 resource:Q22286761 } UNION { ?z property:Q6256 resource:Q17666015 } UNION { ?y property:Q6256 resource:Q17666015 } UNION { ?z property:Q6256 resource:Q22286761 } UNION { ?y property:Q6256 resource:Q22286761 } } . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q996044 }
[{'concept': 'church'}, 'country', 'Denmark'] [{'concept': 'bridge'}, 'country', 'Denmark'] [{'concept': 'church'}, 'country', 'Australia'] [{'concept': 'bridge'}, 'country', 'Australia'] [{'concept': 'church'}, 'country', 'Denmark'] [{'concept': 'bridge'}, 'country', 'Denmark']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Denmark } UNION { ?y property:country resource:Denmark } UNION { ?z property:country resource:Australia } UNION { ?y property:country resource:Australia } UNION { ?z property:country resource:Denmark } UNION { ?y property:country resource:Denmark } } . ?z rdf:type ontology:church . ?y rdf:type ontology:bridge }
[]
church bridge
Quantitative|Count|Mult. entity type|Clarification
Q408
SYSTEM
Did you mean Australia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q22286761 } UNION { ?y property:Q6256 resource:Q22286761 } UNION { ?z property:Q6256 resource:Q17666015 } UNION { ?y property:Q6256 resource:Q17666015 } UNION { ?z property:Q6256 resource:Q22286761 } UNION { ?y property:Q6256 resource:Q22286761 } } . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q996044 }
Did you mean Australia ?
Australia
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Denmark } UNION { ?y property:country resource:Denmark } UNION { ?z property:country resource:Australia } UNION { ?y property:country resource:Australia } UNION { ?z property:country resource:Denmark } UNION { ?y property:country resource:Denmark } } . ?z rdf:type ontology:church . ?y rdf:type ontology:bridge }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Denmark. Could you tell me the answer for that?
(c(Q16970),P17,Q35) (c(Q12280),P17,Q35) (c(Q16970),P17,Q408) (c(Q12280),P17,Q408) (c(Q16970),P17,Q35) (c(Q12280),P17,Q35)
Q35
[{'concept': 'Q16970'}, 'P17', 'Q35'] [{'concept': 'Q12280'}, 'P17', 'Q35'] [{'concept': 'Q16970'}, 'P17', 'Q408'] [{'concept': 'Q12280'}, 'P17', 'Q408'] [{'concept': 'Q16970'}, 'P17', 'Q35'] [{'concept': 'Q12280'}, 'P17', 'Q35']
[{'concept': 'church'}, 'country', 'Denmark'] [{'concept': 'bridge'}, 'country', 'Denmark'] [{'concept': 'church'}, 'country', 'Australia'] [{'concept': 'bridge'}, 'country', 'Australia'] [{'concept': 'church'}, 'country', 'Denmark'] [{'concept': 'bridge'}, 'country', 'Denmark']
[]
SYSTEM
11 churches and 24 bridges
Q7620223 Q492584 Q730925 Q1238512 Q393200 Q1536150 Q1536603 Q1236716 Q452518 Q1758520 Q140195 Q491260 Q1573298 Q443051 Q209705 Q2096088 Q297871 Q3041673 Q1953369 Q944453 Q1146022 Q1451811 Q1424674 Q382605 Q1328981 Q2061425 Q481563 Q12060368 Q1636588 Q213962 Q1287718 Q601654 Q1397260 Q953682 Q700070
(c(Q16970),P17,Q35) (c(Q12280),P17,Q35) (c(Q16970),P17,Q408) (c(Q12280),P17,Q408) (c(Q16970),P17,Q35) (c(Q12280),P17,Q35)
[ANSWER]
[{'concept': 'Q16970'}, 'P17', 'Q35'] [{'concept': 'Q12280'}, 'P17', 'Q35'] [{'concept': 'Q16970'}, 'P17', 'Q408'] [{'concept': 'Q12280'}, 'P17', 'Q408'] [{'concept': 'Q16970'}, 'P17', 'Q35'] [{'concept': 'Q12280'}, 'P17', 'Q35']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q22286761 } UNION { ?y property:Q6256 resource:Q22286761 } UNION { ?z property:Q6256 resource:Q17666015 } UNION { ?y property:Q6256 resource:Q17666015 } UNION { ?z property:Q6256 resource:Q22286761 } UNION { ?y property:Q6256 resource:Q22286761 } } . ?z rdf:type ontology:Q23056934 . ?y rdf:type ontology:Q996044 }
Stormbro St. Canute's Cathedral Guldborgsund Bridge St. Ansgar's Cathedral Aggersund Bridge Little Belt Bridge Storstrøm Bridge Viborg Cathedral Langeland Bridge Oddesund Bridge Sallingsund Bridge Aarhus Cathedral Svendborgsund Bridge Alssund Bridge Roskilde Cathedral Vejle Fjord Bridge Øresund Bridge Maribo Abbey Munkholm Bridge Langebro Limfjordsbroen Church of Our Lady Little Belt Bridge Queen Alexandrine Bridge Vilsund Bridge St Olaf's Church, Helsingør Egernsund Bridge Højbro Masnedsund Bridge Great Belt Bridge Frederick IX Bridge Budolfi Church Farø Bridges Maribo Cathedral Ribe Cathedral
11 churches and 24 bridges
[{'concept': 'church'}, 'country', 'Denmark'] [{'concept': 'bridge'}, 'country', 'Denmark'] [{'concept': 'church'}, 'country', 'Australia'] [{'concept': 'bridge'}, 'country', 'Australia'] [{'concept': 'church'}, 'country', 'Denmark'] [{'concept': 'bridge'}, 'country', 'Denmark']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country resource:Denmark } UNION { ?y property:country resource:Denmark } UNION { ?z property:country resource:Australia } UNION { ?y property:country resource:Australia } UNION { ?z property:country resource:Denmark } UNION { ?y property:country resource:Denmark } } . ?z rdf:type ontology:church . ?y rdf:type ontology:bridge }
[]