Simple Question (Direct)
Simple Question
Q5577888
P364
Q34770
USER
Which language was used originally for the creation of Going the Distance ?
(Q5577888,P364,c(Q34770))
action filter_type
action find
entity Q5577888
relation P364
type Q34770
['Q5577888', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q5577888 property:P364 ?n . ?n rdf:type ontology:Q34770 }
Going the Distance
action filter_type
action find
entity Going the Distance
relation original language of work
type language
['Going the Distance', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Going_the_Distance property:original_language_of_work ?n . ?n rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q5577888,P364,c(Q34770))
action filter_type
action find
entity Q5577888
relation P364
type Q34770
[ANSWER] was used originally for the creation of Going the Distance
['Q5577888', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q5577888 property:P364 ?n . ?n rdf:type ontology:Q34770 }
English
English was used originally for the creation of Going the Distance
English
action filter_type
action find
entity Going the Distance
relation original language of work
type language
['Going the Distance', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Going_the_Distance property:original_language_of_work ?n . ?n rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5577888
P136
Q1792379
USER
What can be considered as category for Going the Distance ?
(Q5577888,P136,c(Q1792379))
action filter_type
action find
entity Q5577888
relation P136
type Q1792379
['Q5577888', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?s WHERE { resource:Q5577888 property:P136 ?s . ?s rdf:type ontology:Q1792379 }
Going the Distance
action filter_type
action find
entity Going the Distance
relation genre
type art genre
['Going the Distance', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?s WHERE { resource:Going_the_Distance property:genre ?s . ?s rdf:type ontology:art_genre }
[]
art genre
Q93204
SYSTEM
documentary film
Q93204
(Q5577888,P136,c(Q1792379))
action filter_type
action find
entity Q5577888
relation P136
type Q1792379
The [ANSWER] can be considered as category for Going the Distance
['Q5577888', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?s WHERE { resource:Q5577888 property:P136 ?s . ?s rdf:type ontology:Q1792379 }
documentary film
The documentary film can be considered as category for Going the Distance
documentary film
action filter_type
action find
entity Going the Distance
relation genre
type art genre
['Going the Distance', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?s WHERE { resource:Going_the_Distance property:genre ?s . ?s rdf:type ontology:art_genre }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4656838
Q1792379
USER
And how about A Forest Romance?
(Q4656838,P136,c(Q1792379))
action filter_type
action find
entity Q4656838
relation P136
type Q1792379
['Q4656838', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?a WHERE { resource:Q4656838 property:P136 ?a . ?a rdf:type ontology:Q1792379 }
A Forest Romance
action filter_type
action find
entity A Forest Romance
relation genre
type art genre
['A Forest Romance', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?a WHERE { resource:A_Forest_Romance property:genre ?a . ?a rdf:type ontology:art_genre }
[]
art genre
Q172980
SYSTEM
Western
Q172980
(Q4656838,P136,c(Q1792379))
action filter_type
action find
entity Q4656838
relation P136
type Q1792379
[ANSWER]
['Q4656838', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?a WHERE { resource:Q4656838 property:P136 ?a . ?a rdf:type ontology:Q1792379 }
Western
Western
action filter_type
action find
entity A Forest Romance
relation genre
type art genre
['A Forest Romance', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?a WHERE { resource:A_Forest_Romance property:genre ?a . ?a rdf:type ontology:art_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q172980 Q7563902
P136
Q838948
USER
Does Will You Marry Me? a that art genre as its type ?
(Q7563902,P136,Q172980)
action is_in
entity Q7563902
action find
entity Q172980
relation P136
['Q7563902', 'P136', 'Q172980']
ASK WHERE { resource:Q172980 property:P136 resource:Q7563902 }
Western Will You Marry Me?
action is_in
entity Will You Marry Me?
action find
entity Western
relation genre
['Will You Marry Me?', 'genre', 'Western']
ASK WHERE { resource:Western property:genre resource:Will_You_Marry_Me? }
[]
work of art
SYSTEM
NO
(Q7563902,P136,Q172980)
action is_in
entity Q7563902
action find
entity Q172980
relation P136
[ANSWER]
['Q7563902', 'P136', 'Q172980']
ASK WHERE { resource:Q172980 property:P136 resource:Q7563902 }
No
action is_in
entity Will You Marry Me?
action find
entity Western
relation genre
['Will You Marry Me?', 'genre', 'Western']
ASK WHERE { resource:Western property:genre resource:Will_You_Marry_Me? }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5577888 Q1614740 Q16
P495
Q1048835
USER
Does Going the Distance originate at Barbadillo del Mercado and Canada ?
(Q5577888,P495,Q1614740) (Q5577888,P495,Q16)
action is_in
entity Q5577888
action intersection
action find_reverse
entity Q1614740
relation P495
action find_reverse
entity Q16
relation P495
['Q5577888', 'P495', 'Q1614740'] ['Q5577888', 'P495', 'Q16']
ASK WHERE { resource:Q5577888 property:P495 resource:Q1614740 . resource:Q5577888 property:P495 resource:Q16 }
Going the Distance Barbadillo del Mercado Canada
action is_in
entity Going the Distance
action intersection
action find_reverse
entity Barbadillo del Mercado
relation country of origin
action find_reverse
entity Canada
relation country of origin
['Going the Distance', 'country of origin', 'Barbadillo del Mercado'] ['Going the Distance', 'country of origin', 'Canada']
ASK WHERE { resource:Going_the_Distance property:country_of_origin resource:Barbadillo_del_Mercado . resource:Going_the_Distance property:country_of_origin resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q5577888,P495,Q1614740) (Q5577888,P495,Q16)
action is_in
entity Q5577888
action intersection
action find_reverse
entity Q1614740
relation P495
action find_reverse
entity Q16
relation P495
[ANSWER]
['Q5577888', 'P495', 'Q1614740'] ['Q5577888', 'P495', 'Q16']
ASK WHERE { resource:Q5577888 property:P495 resource:Q1614740 . resource:Q5577888 property:P495 resource:Q16 }
NO and YES respectively
action is_in
entity Going the Distance
action intersection
action find_reverse
entity Barbadillo del Mercado
relation country of origin
action find_reverse
entity Canada
relation country of origin
['Going the Distance', 'country of origin', 'Barbadillo del Mercado'] ['Going the Distance', 'country of origin', 'Canada']
ASK WHERE { resource:Going_the_Distance property:country_of_origin resource:Barbadillo_del_Mercado . resource:Going_the_Distance property:country_of_origin resource:Canada }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q901850 Q1860
P361 P136
Q5962346
USER
Which classification schemes are English a part of or can be considered as genre of Mistresses ?
OR((Q1860,P361,c(Q5962346)), (Q901850,P136,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q901850
relation P136
type Q5962346
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q901850', 'P136', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1860 property:P361 ?t } UNION { resource:Q901850 property:P136 ?t } } . ?t rdf:type ontology:Q5962346 }
Mistresses English
action filter_type
action union
action find
entity English
relation part of
action find
entity Mistresses
relation genre
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['Mistresses', 'genre', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?t WHERE { { { resource:English property:part_of ?t } UNION { resource:Mistresses property:genre ?t } } . ?t rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q1366112 Q23739 Q5329170
SYSTEM
Anglic languages, television drama, soap opera, Anglo-Frisian languages
Q1346342 Q1366112 Q23739 Q5329170
OR((Q1860,P361,c(Q5962346)), (Q901850,P136,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q901850
relation P136
type Q5962346
[ANSWERS] are English a part of or can be considered as genre of Mistresses
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q901850', 'P136', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1860 property:P361 ?t } UNION { resource:Q901850 property:P136 ?t } } . ?t rdf:type ontology:Q5962346 }
Anglic languages television drama soap opera Anglo-Frisian languages
Anglic languages, television drama, soap opera and Anglo-Frisian languages are English a part of or can be considered as genre of Mistresses
Anglic languages television drama soap opera Anglo-Frisian languages
action filter_type
action union
action find
entity English
relation part of
action find
entity Mistresses
relation genre
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['Mistresses', 'genre', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?t WHERE { { { resource:English property:part_of ?t } UNION { resource:Mistresses property:genre ?t } } . ?t rdf:type ontology:classification_scheme }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q974 Q1614740
P1001
Q12737077
USER
Which occupations apply to jurisdiction over Barbadillo del Mercado or Democratic Republic of the Congo ?
OR((c(Q12737077),P1001,Q1614740), (c(Q12737077),P1001,Q974))
action filter_type
action union
action find_reverse
entity Q1614740
relation P1001
action find_reverse
entity Q974
relation P1001
type Q12737077
{'OR': [[{'concept': 'Q12737077'}, 'P1001', 'Q1614740'], [{'concept': 'Q12737077'}, 'P1001', 'Q974']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P1001 resource:Q974 } UNION { ?d property:P1001 resource:Q1614740 } } . ?d rdf:type ontology:Q12737077 }
Democratic Republic of the Congo Barbadillo del Mercado
action filter_type
action union
action find_reverse
entity Barbadillo del Mercado
relation applies to jurisdiction
action find_reverse
entity Democratic Republic of the Congo
relation applies to jurisdiction
type occupation
{'OR': [[{'concept': 'occupation'}, 'applies to jurisdiction', 'Barbadillo del Mercado'], [{'concept': 'occupation'}, 'applies to jurisdiction', 'Democratic Republic of the Congo']]}
SELECT DISTINCT ?d WHERE { { { ?d property:applies_to_jurisdiction resource:Democratic_Republic_of_the_Congo } UNION { ?d property:applies_to_jurisdiction resource:Barbadillo_del_Mercado } } . ?d rdf:type ontology:occupation }
[]
occupation
Q21295130 Q16147845 Q21295979 Q26692229 Q3556877 Q3401753
SYSTEM
Member of the Senate of the Democratic Republic of the Congo, President of the Democratic Republic of the Congo, Member of the National Assembly of the Democratic Republic of the Congo, mayor of Barbadillo del Mercado, Vice-Presidents of the Democratic Republic of the Congo, Prime Minister of the Democratic Republic of the Congo
Q21295130 Q16147845 Q21295979 Q26692229 Q3556877 Q3401753
OR((c(Q12737077),P1001,Q1614740), (c(Q12737077),P1001,Q974))
action filter_type
action union
action find_reverse
entity Q1614740
relation P1001
action find_reverse
entity Q974
relation P1001
type Q12737077
[ANSWERS] apply to jurisdiction over Barbadillo del Mercado or Democratic Republic of the Congo
{'OR': [[{'concept': 'Q12737077'}, 'P1001', 'Q1614740'], [{'concept': 'Q12737077'}, 'P1001', 'Q974']]}
SELECT DISTINCT ?d WHERE { { { ?d property:P1001 resource:Q974 } UNION { ?d property:P1001 resource:Q1614740 } } . ?d rdf:type ontology:Q12737077 }
Member of the Senate of the Democratic Republic of the Congo President of the Democratic Republic of the Congo Member of the National Assembly of the Democratic Republic of the Congo mayor of Barbadillo del Mercado Vice-Presidents of the Democratic Republic of the Congo Prime Minister of the Democratic Republic of the Congo
Member of the Senate of the Democratic Republic of the Congo, President of the Democratic Republic of the Congo, Member of the National Assembly of the Democratic Republic of the Congo, mayor of Barbadillo del Mercado, Vice-Presidents of the Democratic Republic of the Congo and Prime Minister of the Democratic Republic of the Congo apply to jurisdiction over Barbadillo del Mercado or Democratic Republic of the Congo
Member of the Senate of the Democratic Republic of the Congo President of the Democratic Republic of the Congo Member of the National Assembly of the Democratic Republic of the Congo mayor of Barbadillo del Mercado Vice-Presidents of the Democratic Republic of the Congo Prime Minister of the Democratic Republic of the Congo
action filter_type
action union
action find_reverse
entity Barbadillo del Mercado
relation applies to jurisdiction
action find_reverse
entity Democratic Republic of the Congo
relation applies to jurisdiction
type occupation
{'OR': [[{'concept': 'occupation'}, 'applies to jurisdiction', 'Barbadillo del Mercado'], [{'concept': 'occupation'}, 'applies to jurisdiction', 'Democratic Republic of the Congo']]}
SELECT DISTINCT ?d WHERE { { { ?d property:applies_to_jurisdiction resource:Democratic_Republic_of_the_Congo } UNION { ?d property:applies_to_jurisdiction resource:Barbadillo_del_Mercado } } . ?d rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q26692229
P17
Q15617994
USER
Which administrative territory is that occupation situated in ?
(Q26692229,P17,c(Q15617994))
action filter_type
action find
entity Q26692229
relation P17
type Q15617994
['Q26692229', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26692229 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
mayor of Barbadillo del Mercado
action filter_type
action find
entity mayor of Barbadillo del Mercado
relation country
type designation for an administrative territorial entity
['mayor of Barbadillo del Mercado', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_Barbadillo_del_Mercado property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q16147845
SYSTEM
Did you mean President of the Democratic Republic of the Congo ?
Q21295130 Q16147845 Q21295979 Q26692229 Q3556877 Q3401753
(Q21295130,P17,c(Q15617994)) (Q16147845,P17,c(Q15617994)) (Q21295979,P17,c(Q15617994)) (Q26692229,P17,c(Q15617994)) (Q3556877,P17,c(Q15617994)) (Q3401753,P17,c(Q15617994))
[ANSWER]
['Q21295130', 'P17', {'concept': 'Q15617994'}] ['Q16147845', 'P17', {'concept': 'Q15617994'}] ['Q21295979', 'P17', {'concept': 'Q15617994'}] ['Q26692229', 'P17', {'concept': 'Q15617994'}] ['Q3556877', 'P17', {'concept': 'Q15617994'}] ['Q3401753', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26692229 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Member of the Senate of the Democratic Republic of the Congo President of the Democratic Republic of the Congo Member of the National Assembly of the Democratic Republic of the Congo mayor of Barbadillo del Mercado Vice-Presidents of the Democratic Republic of the Congo Prime Minister of the Democratic Republic of the Congo
Did you mean President of the Democratic Republic of the Congo ?
President of the Democratic Republic of the Congo
['Member of the Senate of the Democratic Republic of the Congo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['President of the Democratic Republic of the Congo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Member of the National Assembly of the Democratic Republic of the Congo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['mayor of Barbadillo del Mercado', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Vice-Presidents of the Democratic Republic of the Congo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prime Minister of the Democratic Republic of the Congo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_Barbadillo_del_Mercado property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant mayor of Barbadillo del Mercado. Could you tell me the answer for that?
(Q26692229,P17,c(Q15617994))
Q26692229
['Q26692229', 'P17', {'concept': 'Q15617994'}]
['mayor of Barbadillo del Mercado', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q29
SYSTEM
Spain
Q29
(Q26692229,P17,c(Q15617994))
action filter_type
action find
entity Q26692229
relation P17
type Q15617994
That occupation is situated in [ANSWER]
['Q26692229', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q26692229 property:P17 ?s . ?s rdf:type ontology:Q15617994 }
Spain
That occupation is situated in Spain
Spain
action filter_type
action find
entity mayor of Barbadillo del Mercado
relation country
type designation for an administrative territorial entity
['mayor of Barbadillo del Mercado', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:mayor_of_Barbadillo_del_Mercado property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29 Q183 Q1998512
P530
Q1048835
USER
Is Spain known to have diplomatic connections with Germany and Massalavés ?
(Q29,P530,Q183) (Q29,P530,Q1998512)
action is_in
entity Q29
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q1998512
relation P530
['Q29', 'P530', 'Q183'] ['Q29', 'P530', 'Q1998512']
ASK WHERE { resource:Q29 property:P530 resource:Q183 . resource:Q29 property:P530 resource:Q1998512 }
Spain Germany Massalavés
action is_in
entity Spain
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity Massalavés
relation diplomatic relation
['Spain', 'diplomatic relation', 'Germany'] ['Spain', 'diplomatic relation', 'Massalavés']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Germany . resource:Spain property:diplomatic_relation resource:Massalavés }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q29,P530,Q183) (Q29,P530,Q1998512)
action is_in
entity Q29
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q1998512
relation P530
[ANSWER]
['Q29', 'P530', 'Q183'] ['Q29', 'P530', 'Q1998512']
ASK WHERE { resource:Q29 property:P530 resource:Q183 . resource:Q29 property:P530 resource:Q1998512 }
YES and NO respectively
action is_in
entity Spain
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity Massalavés
relation diplomatic relation
['Spain', 'diplomatic relation', 'Germany'] ['Spain', 'diplomatic relation', 'Massalavés']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Germany . resource:Spain property:diplomatic_relation resource:Massalavés }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q784
P706
Q1048835 Q107425 Q15617994
USER
Which administrative territories have their location as greater number of political territories or landscapes than Dominica ?
(c(Q15617994),P706,c(Q1048835)|c(Q107425))
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q784
relation P706
type Q1048835
type Q107425
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } . ?i rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q784 property:P706 ?k . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } } } } . FILTER ( ?f > ?y ) }
Dominica
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Dominica
relation located on terrain feature
type political territorial entity
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } . ?i rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Dominica property:located_on_terrain_feature ?k . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } } } } . FILTER ( ?f > ?y ) }
[]
political territorial entity landscape designation for an administrative territorial entity
Q2712111 Q145 Q518171
SYSTEM
Zagori, United Kingdom, Ellhofen
Q2712111 Q145 Q518171
(c(Q15617994),P706,c(Q1048835)|c(Q107425))
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q784
relation P706
type Q1048835
type Q107425
[ANSWERS] have their location as greater number of political territories or landscapes than Dominica
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } . ?i rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q784 property:P706 ?k . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q107425 ) } } } } . FILTER ( ?f > ?y ) }
Zagori United Kingdom Ellhofen
Zagori, United Kingdom and Ellhofen have their location as greater number of political territories or landscapes than Dominica
Zagori United Kingdom Ellhofen
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Dominica
relation located on terrain feature
type political territorial entity
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?f ) WHERE { VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } . ?i rdf:type ?r } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Dominica property:located_on_terrain_feature ?k . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:landscape ) } } } } . FILTER ( ?f > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q25135
P706
Q1048835 Q107425 Q15617994
USER
And also tell me about Wangerooge?
(c(Q15617994),P706,c(Q1048835)|c(Q107425))
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q25135
relation P706
type Q1048835
type Q107425
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?v ) WHERE { { ?j property:P706 ?m . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q107425 } UNION { ?j property:P706 ?m . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?j } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Q25135 property:P706 ?f . { { ?f rdf:type ontology:Q1048835 } UNION { ?f rdf:type ontology:Q107425 } } } } }
Wangerooge
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Wangerooge
relation located on terrain feature
type political territorial entity
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?v ) WHERE { { ?j property:located_on_terrain_feature ?m . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:landscape } UNION { ?j property:located_on_terrain_feature ?m . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?j } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Wangerooge property:located_on_terrain_feature ?f . { { ?f rdf:type ontology:political_territorial_entity } UNION { ?f rdf:type ontology:landscape } } } } }
[]
political territorial entity landscape designation for an administrative territorial entity
Q2712111 Q145 Q518171
SYSTEM
Zagori, United Kingdom, Ellhofen
Q2712111 Q145 Q518171
(c(Q15617994),P706,c(Q1048835)|c(Q107425))
action greater
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1048835
action find_tuple_counts
relation P706
type Q15617994
type Q107425
action count
action filter_multi_types
action find
entity Q25135
relation P706
type Q1048835
type Q107425
[ANSWERS]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1048835'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?v ) WHERE { { ?j property:P706 ?m . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q107425 } UNION { ?j property:P706 ?m . ?j rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1048835 } } GROUP BY ?j } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Q25135 property:P706 ?f . { { ?f rdf:type ontology:Q1048835 } UNION { ?f rdf:type ontology:Q107425 } } } } }
Zagori United Kingdom Ellhofen
Zagori United Kingdom Ellhofen
action greater
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type landscape
action count
action filter_multi_types
action find
entity Wangerooge
relation located on terrain feature
type political territorial entity
type landscape
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'political territorial entity'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?v ) WHERE { { ?j property:located_on_terrain_feature ?m . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:landscape } UNION { ?j property:located_on_terrain_feature ?m . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_territorial_entity } } GROUP BY ?j } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { resource:Wangerooge property:located_on_terrain_feature ?f . { { ?f rdf:type ontology:political_territorial_entity } UNION { ?f rdf:type ontology:landscape } } } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P20
Q502895
USER
How many people expired at that administrative territory ?
(c(Q502895),P20,Q2712111)
[{'concept': 'Q502895'}, 'P20', 'Q2712111']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q18658526 resource:Q2712111 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'place of death', 'Zagori']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_death resource:Zagori . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q2712111
SYSTEM
Did you mean Zagori ?
(c(Q502895),P20,Q2712111) (c(Q502895),P20,Q145) (c(Q502895),P20,Q518171)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q2712111'] [{'concept': 'Q502895'}, 'P20', 'Q145'] [{'concept': 'Q502895'}, 'P20', 'Q518171']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q18658526 resource:Q2712111 . ?z rdf:type ontology:Q502895 }
Did you mean Zagori ?
Zagori
[{'concept': 'common name'}, 'place of death', 'Zagori'] [{'concept': 'common name'}, 'place of death', 'United Kingdom'] [{'concept': 'common name'}, 'place of death', 'Ellhofen']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_death resource:Zagori . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P20,Q2712111)
[{'concept': 'Q502895'}, 'P20', 'Q2712111']
[{'concept': 'common name'}, 'place of death', 'Zagori']
[]
SYSTEM
1
Q750820
(c(Q502895),P20,Q2712111)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q2712111']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q18658526 resource:Q2712111 . ?z rdf:type ontology:Q502895 }
Yianis Vilaras
1
[{'concept': 'common name'}, 'place of death', 'Zagori']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_death resource:Zagori . ?z rdf:type ontology:common_name }
[]