Simple Question (Direct)
Simple Question
Q2069221
P106
Q12737077
USER
Which occupation has Vilhelm Petersen as his/her 's career ?
(Q2069221,P106,c(Q12737077))
action filter_type
action find
entity Q2069221
relation P106
type Q12737077
['Q2069221', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q2069221 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Vilhelm Petersen
action filter_type
action find
entity Vilhelm Petersen
relation occupation
type occupation
['Vilhelm Petersen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Vilhelm_Petersen property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q42973
SYSTEM
architect
Q42973
(Q2069221,P106,c(Q12737077))
action filter_type
action find
entity Q2069221
relation P106
type Q12737077
The [ANSWER] has Vilhelm Petersen as his/her 's career
['Q2069221', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q2069221 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
architect
The architect has Vilhelm Petersen as his/her 's career
architect
action filter_type
action find
entity Vilhelm Petersen
relation occupation
type occupation
['Vilhelm Petersen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Vilhelm_Petersen property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42973
P425
Q1190554
USER
Which event has that one as thier associated field of occupation ?
(Q42973,P425,c(Q1190554))
action filter_type
action find
entity Q42973
relation P425
type Q1190554
['Q42973', 'P425', {'concept': 'Q1190554'}]
SELECT DISTINCT ?c WHERE { resource:Q42973 property:P425 ?c . ?c rdf:type ontology:Q1190554 }
architect
action filter_type
action find
entity architect
relation field of this occupation
type event
['architect', 'field of this occupation', {'concept': 'event'}]
SELECT DISTINCT ?c WHERE { resource:architect property:field_of_this_occupation ?c . ?c rdf:type ontology:event }
[]
event
Q385378
SYSTEM
construction
Q385378
(Q42973,P425,c(Q1190554))
action filter_type
action find
entity Q42973
relation P425
type Q1190554
[ANSWER] has that one as thier associated field of occupation
['Q42973', 'P425', {'concept': 'Q1190554'}]
SELECT DISTINCT ?c WHERE { resource:Q42973 property:P425 ?c . ?c rdf:type ontology:Q1190554 }
construction
Construction has that one as thier associated field of occupation
construction
action filter_type
action find
entity architect
relation field of this occupation
type event
['architect', 'field of this occupation', {'concept': 'event'}]
SELECT DISTINCT ?c WHERE { resource:architect property:field_of_this_occupation ?c . ?c rdf:type ontology:event }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4891384 Q2069221
P27
Q1048835
USER
Which political territories are the countries of citizenship of Vilhelm Petersen or Jaume March II ?
OR((Q2069221,P27,c(Q1048835)), (Q4891384,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2069221
relation P27
action find
entity Q4891384
relation P27
type Q1048835
{'OR': [['Q2069221', 'P27', {'concept': 'Q1048835'}], ['Q4891384', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q4891384 property:P27 ?b } UNION { resource:Q2069221 property:P27 ?b } } . ?b rdf:type ontology:Q1048835 }
Jaume March II Vilhelm Petersen
action filter_type
action union
action find
entity Vilhelm Petersen
relation country of citizenship
action find
entity Jaume March II
relation country of citizenship
type political territorial entity
{'OR': [['Vilhelm Petersen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jaume March II', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Jaume_March_II property:country_of_citizenship ?b } UNION { resource:Vilhelm_Petersen property:country_of_citizenship ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5705 Q35
SYSTEM
Catalonia, Denmark
Q5705 Q35
OR((Q2069221,P27,c(Q1048835)), (Q4891384,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q2069221
relation P27
action find
entity Q4891384
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Vilhelm Petersen or Jaume March II
{'OR': [['Q2069221', 'P27', {'concept': 'Q1048835'}], ['Q4891384', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q4891384 property:P27 ?b } UNION { resource:Q2069221 property:P27 ?b } } . ?b rdf:type ontology:Q1048835 }
Catalonia Denmark
Catalonia and Denmark are the countries of citizenship of Vilhelm Petersen or Jaume March II
Catalonia Denmark
action filter_type
action union
action find
entity Vilhelm Petersen
relation country of citizenship
action find
entity Jaume March II
relation country of citizenship
type political territorial entity
{'OR': [['Vilhelm Petersen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Jaume March II', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Jaume_March_II property:country_of_citizenship ?b } UNION { resource:Vilhelm_Petersen property:country_of_citizenship ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5705 Q35
P138
Q17444909
USER
Which astronomical object types have Catalonia and Denmark as their namesake ?
(c(Q17444909),P138,Q5705) (c(Q17444909),P138,Q35)
action union
action filter_type
action find_reverse
entity Q5705
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q35
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q5705'] [{'concept': 'Q17444909'}, 'P138', 'Q35']
SELECT DISTINCT ?a WHERE { ?a property:P138 ?y . VALUES ( ?y ) { ( resource:Q35 ) ( resource:Q5705 ) } }
Catalonia Denmark
action union
action filter_type
action find_reverse
entity Catalonia
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Denmark
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Catalonia'] [{'concept': 'astronomical object type'}, 'named after', 'Denmark']
SELECT DISTINCT ?a WHERE { ?a property:named_after ?y . VALUES ( ?y ) { ( resource:Denmark ) ( resource:Catalonia ) } }
[]
astronomical object type
Q136867 Q2355989 Q836729
SYSTEM
1188 Gothlandia, 13868 Catalonia, 2117 Danmark
Q136867 Q2355989 Q836729
(c(Q17444909),P138,Q5705) (c(Q17444909),P138,Q35)
action union
action filter_type
action find_reverse
entity Q5705
relation P138
type Q17444909
action filter_type
action find_reverse
entity Q35
relation P138
type Q17444909
[ANSWERS] have Catalonia and Denmark as their namesake
[{'concept': 'Q17444909'}, 'P138', 'Q5705'] [{'concept': 'Q17444909'}, 'P138', 'Q35']
SELECT DISTINCT ?a WHERE { ?a property:P138 ?y . VALUES ( ?y ) { ( resource:Q35 ) ( resource:Q5705 ) } }
1188 Gothlandia 13868 Catalonia 2117 Danmark
1188 Gothlandia, 13868 Catalonia and 2117 Danmark have Catalonia and Denmark as their namesake
1188 Gothlandia 13868 Catalonia 2117 Danmark
action union
action filter_type
action find_reverse
entity Catalonia
relation named after
type astronomical object type
action filter_type
action find_reverse
entity Denmark
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Catalonia'] [{'concept': 'astronomical object type'}, 'named after', 'Denmark']
SELECT DISTINCT ?a WHERE { ?a property:named_after ?y . VALUES ( ?y ) { ( resource:Denmark ) ( resource:Catalonia ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P47
Q56061
USER
Who shares the border with Denmark ?
(Q35,P47,c(Q56061))
action filter_type
action find
entity Q35
relation P47
type Q56061
['Q35', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q35 property:P47 ?f . ?f rdf:type ontology:Q56061 }
Denmark
action filter_type
action find
entity Denmark
relation shares border with
type administrative territorial entity
['Denmark', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Denmark property:shares_border_with ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458
SYSTEM
European Union
Q458
(Q35,P47,c(Q56061))
action filter_type
action find
entity Q35
relation P47
type Q56061
In [ANSWER] shares the border with Denmark
['Q35', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q35 property:P47 ?f . ?f rdf:type ontology:Q56061 }
European Union
In European Union shares the border with Denmark
European Union
action filter_type
action find
entity Denmark
relation shares border with
type administrative territorial entity
['Denmark', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Denmark property:shares_border_with ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q35
Q1048835
USER
And which political territory?
(Q35,P47,c(Q1048835))
action filter_type
action find
entity Q35
relation P47
type Q1048835
['Q35', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q35 property:P47 ?b . ?b rdf:type ontology:Q1048835 }
Denmark
action filter_type
action find
entity Denmark
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Denmark property:shares_border_with ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q35,P47,c(Q1048835))
action filter_type
action find
entity Q35
relation P47
type Q1048835
[ANSWER]
['Q35', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { resource:Q35 property:P47 ?b . ?b rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Denmark
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Denmark property:shares_border_with ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relationships with greater number of political territories than Grenada ?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { ?b property:P530 ?f . ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q769 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?a ) }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { ?b property:diplomatic_relation ?f . ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Grenada property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?a ) }
[]
political territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { ?b property:P530 ?f . ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q769 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?a ) }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?l ) WHERE { ?b property:diplomatic_relation ?f . ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Grenada property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q16
P530
Q1048835 Q1048835
USER
And also tell me about Canada?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?l ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q16 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?t ) }
Canada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?l ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?t ) }
[]
political territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?l ) WHERE { ?h property:P530 ?o . ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q16 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?t ) }
Germany Australia
2
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?l ) WHERE { ?h property:diplomatic_relation ?o . ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?t ) }
[]