Simple Question (Direct)
Simple Question
Q16682715
P364
Q34770
USER
Which language was used originally for the creation of Early to Bed ?
(Q16682715,P364,c(Q34770))
action filter_type
action find
entity Q16682715
relation P364
type Q34770
['Q16682715', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q16682715 property:P364 ?w . ?w rdf:type ontology:Q34770 }
Early to Bed
action filter_type
action find
entity Early to Bed
relation original language of work
type language
['Early to Bed', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Early_to_Bed property:original_language_of_work ?w . ?w rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16682715,P364,c(Q34770))
action filter_type
action find
entity Q16682715
relation P364
type Q34770
In [ANSWER] was used originally for the creation of Early to Bed
['Q16682715', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q16682715 property:P364 ?w . ?w rdf:type ontology:Q34770 }
English
In English was used originally for the creation of Early to Bed
English
action filter_type
action find
entity Early to Bed
relation original language of work
type language
['Early to Bed', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Early_to_Bed property:original_language_of_work ?w . ?w rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16682715
P57
Q502895
USER
Which person directed that work of art ?
(Q1860,P57,c(Q502895))
action filter_type
action find
entity Q16682715
relation P57
type Q502895
['Q1860', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q16682715 property:P57 ?c . ?c rdf:type ontology:Q502895 }
Early to Bed
action filter_type
action find
entity Early to Bed
relation director
type common name
['English', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Early_to_Bed property:director ?c . ?c rdf:type ontology:common_name }
[]
common name
Q1971705
SYSTEM
Norman Z. McLeod
Q1971705
(Q1860,P57,c(Q502895))
action filter_type
action find
entity Q16682715
relation P57
type Q502895
[ANSWER] directed that work of art
['Q1860', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q16682715 property:P57 ?c . ?c rdf:type ontology:Q502895 }
Norman Z. McLeod
Norman Z. McLeod directed that work of art
Norman Z. McLeod
action filter_type
action find
entity Early to Bed
relation director
type common name
['English', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Early_to_Bed property:director ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P119
Q43229
USER
How many organizations are the places of burial of that person ?
(Q1971705,P119,c(Q43229))
action count
action filter_type
action find
entity Q1971705
relation P119
type Q43229
['Q1971705', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Q1971705 property:P119 ?t . ?t rdf:type ontology:Q43229 }
action count
action filter_type
action find
entity Norman Z. McLeod
relation place of burial
type organization
['Norman Z. McLeod', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Norman_Z._McLeod property:place_of_burial ?t . ?t rdf:type ontology:organization }
[]
organization
SYSTEM
1
Q1437214
(Q1971705,P119,c(Q43229))
action count
action filter_type
action find
entity Q1971705
relation P119
type Q43229
[ANSWER]
['Q1971705', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Q1971705 property:P119 ?t . ?t rdf:type ontology:Q43229 }
Forest Lawn Memorial Park
1
action count
action filter_type
action find
entity Norman Z. McLeod
relation place of burial
type organization
['Norman Z. McLeod', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?y ) WHERE { resource:Norman_Z._McLeod property:place_of_burial ?t . ?t rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12742239 Q1971705
P27
Q15617994
USER
Which administrative territories do Norman Z. McLeod or Theophil Demetriescu belong to ?
OR((Q1971705,P27,c(Q15617994)), (Q12742239,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1971705
relation P27
action find
entity Q12742239
relation P27
type Q15617994
{'OR': [['Q1971705', 'P27', {'concept': 'Q15617994'}], ['Q12742239', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?e ) { ( resource:Q1971705 ) ( resource:Q12742239 ) } . ?e property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
Theophil Demetriescu Norman Z. McLeod
action filter_type
action union
action find
entity Norman Z. McLeod
relation country of citizenship
action find
entity Theophil Demetriescu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Norman Z. McLeod', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Theophil Demetriescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?e ) { ( resource:Norman_Z._McLeod ) ( resource:Theophil_Demetriescu ) } . ?e property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q30
SYSTEM
Romania, United States of America
Q218 Q30
OR((Q1971705,P27,c(Q15617994)), (Q12742239,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1971705
relation P27
action find
entity Q12742239
relation P27
type Q15617994
[ANSWERS] do Norman Z. McLeod or Theophil Demetriescu belong to
{'OR': [['Q1971705', 'P27', {'concept': 'Q15617994'}], ['Q12742239', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?e ) { ( resource:Q1971705 ) ( resource:Q12742239 ) } . ?e property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
Romania United States of America
Romania and United States of America do Norman Z. McLeod or Theophil Demetriescu belong to
Romania United States of America
action filter_type
action union
action find
entity Norman Z. McLeod
relation country of citizenship
action find
entity Theophil Demetriescu
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Norman Z. McLeod', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Theophil Demetriescu', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?e ) { ( resource:Norman_Z._McLeod ) ( resource:Theophil_Demetriescu ) } . ?e property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q218
P530
Q1048835
USER
What political territories have diplomatic relationships with that administrative territory ?
(Q218,P530,c(Q1048835))
action filter_type
action find
entity Q218
relation P530
type Q1048835
['Q218', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q218 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Romania
action filter_type
action find
entity Romania
relation diplomatic relation
type political territorial entity
['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Romania property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q218 Q30
(Q218,P530,c(Q1048835)) (Q30,P530,c(Q1048835))
[ANSWER]
['Q218', 'P530', {'concept': 'Q1048835'}] ['Q30', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q218 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Romania United States of America
Did you mean United States of America ?
United States of America
['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Romania property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Romania. Could you tell me the answer for that?
(Q218,P530,c(Q1048835))
Q218
['Q218', 'P530', {'concept': 'Q1048835'}]
['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
Q408 Q16 Q183
SYSTEM
Australia, Canada, Germany
Q16 Q408 Q183
(Q218,P530,c(Q1048835))
action filter_type
action find
entity Q218
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with that administrative territory
['Q218', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q218 property:P530 ?a . ?a rdf:type ontology:Q1048835 }
Canada Australia Germany
Australia, Canada and Germany have diplomatic relationships with that administrative territory
Australia Canada Germany
action filter_type
action find
entity Romania
relation diplomatic relation
type political territorial entity
['Romania', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Romania property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q819
P85
Q7725634 Q484692 Q15617994
USER
How many administrative territories have lesser number of literary works and hymns as their anthem than Laos ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q819
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Q819 property:P85 ?u . { { ?u rdf:type ontology:Q7725634 } UNION { ?u rdf:type ontology:Q484692 } } } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { { ?t property:P85 ?g . ?t rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?g . ?t rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q484692 } } GROUP BY ?t } }
Laos
action count
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Laos
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Laos property:anthem ?u . { { ?u rdf:type ontology:literary_work } UNION { ?u rdf:type ontology:hymn } } } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { { ?t property:anthem ?g . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:literary_work } UNION { ?t property:anthem ?g . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:hymn } } GROUP BY ?t } }
[]
literary work hymn designation for an administrative territorial entity
SYSTEM
8
Q701 Q705 Q142 Q1093 Q694 Q773 Q772 Q33788
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q819
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Q819 property:P85 ?u . { { ?u rdf:type ontology:Q7725634 } UNION { ?u rdf:type ontology:Q484692 } } } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { { ?t property:P85 ?g . ?t rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?g . ?t rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q484692 } } GROUP BY ?t } }
North Holland Zeeland France Limburg South Holland Overijssel Drenthe New Caledonia
8
action count
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Laos
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { resource:Laos property:anthem ?u . { { ?u rdf:type ontology:literary_work } UNION { ?u rdf:type ontology:hymn } } } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) ?t WHERE { { ?t property:anthem ?g . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:literary_work } UNION { ?t property:anthem ?g . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:hymn } } GROUP BY ?t } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q775
P85
Q7725634 Q484692 Q15617994
USER
And also tell me about Gelderland?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q775
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?v WHERE { { ?v property:P85 ?z . ?z rdf:type ontology:Q7725634 . ?v rdf:type ontology:Q15617994 } UNION { ?v rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q484692 . ?v property:P85 ?z } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Q775 property:P85 ?h . { VALUES ( ?f ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?h rdf:type ?f } } } . FILTER ( ?k < ?b ) }
Gelderland
action count
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Gelderland
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?v WHERE { { ?v property:anthem ?z . ?z rdf:type ontology:literary_work . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:hymn . ?v property:anthem ?z } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Gelderland property:anthem ?h . { VALUES ( ?f ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?h rdf:type ?f } } } . FILTER ( ?k < ?b ) }
[]
literary work hymn designation for an administrative territorial entity
SYSTEM
8
Q701 Q705 Q142 Q1093 Q694 Q773 Q772 Q33788
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action less
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q775
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?v WHERE { { ?v property:P85 ?z . ?z rdf:type ontology:Q7725634 . ?v rdf:type ontology:Q15617994 } UNION { ?v rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q484692 . ?v property:P85 ?z } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Q775 property:P85 ?h . { VALUES ( ?f ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?h rdf:type ?f } } } . FILTER ( ?k < ?b ) }
North Holland Zeeland France Limburg South Holland Overijssel Drenthe New Caledonia
8
action count
action less
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Gelderland
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?v WHERE { { ?v property:anthem ?z . ?z rdf:type ontology:literary_work . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:hymn . ?v property:anthem ?z } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { resource:Gelderland property:anthem ?h . { VALUES ( ?f ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?h rdf:type ?f } } } . FILTER ( ?k < ?b ) }
[]