Simple Question (Direct)
Simple Question
Q742632
P19
Q56061
USER
Where was Douglas Preston born ?
(Q742632,P19,c(Q56061))
action filter_type
action find
entity Q742632
relation P19
type Q56061
['Q742632', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q742632 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Douglas Preston
action filter_type
action find
entity Douglas Preston
relation place of birth
type administrative territorial entity
['Douglas Preston', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Douglas_Preston property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q49111
SYSTEM
Cambridge
Q49111
(Q742632,P19,c(Q56061))
action filter_type
action find
entity Q742632
relation P19
type Q56061
Douglas Preston was born in [ANSWER]
['Q742632', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q742632 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Cambridge
Douglas Preston was born in Cambridge
Cambridge
action filter_type
action find
entity Douglas Preston
relation place of birth
type administrative territorial entity
['Douglas Preston', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Douglas_Preston property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q742632
P50
Q2342494
USER
Which collectables are Douglas Preston an author of ?
(c(Q2342494),P50,Q742632)
action filter_type
action find_reverse
entity Q742632
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q742632']
SELECT DISTINCT ?w WHERE { ?w property:P50 resource:Q742632 . ?w rdf:type ontology:Q2342494 }
Douglas Preston
action filter_type
action find_reverse
entity Douglas Preston
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Douglas Preston']
SELECT DISTINCT ?w WHERE { ?w property:author resource:Douglas_Preston . ?w rdf:type ontology:collectable }
[]
collectable
Q846970 Q3795933 Q847505
SYSTEM
Relic, Cemetery Dance, Brimstone
Q5559533 Q3791650 Q5559537 Q15070938 Q6177937 Q18163952 Q3795933 Q24514628 Q6005795 Q847505 Q3822031 Q3712618 Q137969 Q3823974 Q15070898 Q3824384 Q4925328 Q846970 Q3792624 Q841540 Q17064823 Q5446071 Q491946 Q543341 Q18794344 Q20720604 Q3873323 Q6920494 Q7799147
(c(Q2342494),P50,Q742632)
action filter_type
action find_reverse
entity Q742632
relation P50
type Q2342494
[ANSWERS]
[{'concept': 'Q2342494'}, 'P50', 'Q742632']
SELECT DISTINCT ?w WHERE { ?w property:P50 resource:Q742632 . ?w rdf:type ontology:Q2342494 }
Gideon's Corpse The Ice Limit Gideon's Sword Two Graves Jennie Blue Labyrinth Cemetery Dance The Obsidian Chamber Impact Brimstone Dance of Death The Monster of Florence: A True Story Reliquary The Wheel of Darkness Cold Vengeance (novel) The Cabinet of Curiosities Blasphemy Relic The Codex Tyrannosaur Canyon White Fire Fever Dream Riptide The Book of the Dead The Kraken Project Crimson Shore Still Life with Crows Mount Dragon Thunderhead
Which collectables are Douglas Preston an author of
Relic Cemetery Dance Brimstone
action filter_type
action find_reverse
entity Douglas Preston
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Douglas Preston']
SELECT DISTINCT ?w WHERE { ?w property:author resource:Douglas_Preston . ?w rdf:type ontology:collectable }
[]
Clarification
Simple Question|Single Entity|Indirect
Q846970
P144
Q838948
USER
Which work of art is an extension that collectable ?
(c(Q838948),P144,Q846970)
action filter_type
action find_reverse
entity Q846970
relation P144
type Q838948
[{'concept': 'Q838948'}, 'P144', 'Q846970']
SELECT DISTINCT ?t WHERE { ?t property:P144 resource:Q846970 . ?t rdf:type ontology:Q838948 }
Relic
action filter_type
action find_reverse
entity Relic
relation based on
type work of art
[{'concept': 'work of art'}, 'based on', 'Relic']
SELECT DISTINCT ?t WHERE { ?t property:based_on resource:Relic . ?t rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q846970
SYSTEM
Did you mean Relic ?
Q846970 Q3795933 Q847505
(c(Q838948),P144,Q846970) (c(Q838948),P144,Q3795933) (c(Q838948),P144,Q847505)
[ANSWER]
[{'concept': 'Q838948'}, 'P144', 'Q846970'] [{'concept': 'Q838948'}, 'P144', 'Q3795933'] [{'concept': 'Q838948'}, 'P144', 'Q847505']
SELECT DISTINCT ?t WHERE { ?t property:P144 resource:Q846970 . ?t rdf:type ontology:Q838948 }
Relic Cemetery Dance Brimstone
Did you mean Relic ?
Relic
[{'concept': 'work of art'}, 'based on', 'Relic'] [{'concept': 'work of art'}, 'based on', 'Cemetery Dance'] [{'concept': 'work of art'}, 'based on', 'Brimstone']
SELECT DISTINCT ?t WHERE { ?t property:based_on resource:Relic . ?t rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q838948),P144,Q846970)
[{'concept': 'Q838948'}, 'P144', 'Q846970']
[{'concept': 'work of art'}, 'based on', 'Relic']
[]
Q1170168
SYSTEM
The Relic
Q1170168
(c(Q838948),P144,Q846970)
action filter_type
action find_reverse
entity Q846970
relation P144
type Q838948
[ANSWER] is an extension that collectable
[{'concept': 'Q838948'}, 'P144', 'Q846970']
SELECT DISTINCT ?t WHERE { ?t property:P144 resource:Q846970 . ?t rdf:type ontology:Q838948 }
The Relic
The Relic is an extension that collectable
The Relic
action filter_type
action find_reverse
entity Relic
relation based on
type work of art
[{'concept': 'work of art'}, 'based on', 'Relic']
SELECT DISTINCT ?t WHERE { ?t property:based_on resource:Relic . ?t rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P144
Q2342494
USER
How many collectables are that work of art adapted from ?
(Q1170168,P144,c(Q2342494))
action count
action filter_type
action find
entity Q1170168
relation P144
type Q2342494
['Q1170168', 'P144', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Q1170168 property:P144 ?k . ?k rdf:type ontology:Q2342494 }
action count
action filter_type
action find
entity The Relic
relation based on
type collectable
['The Relic', 'based on', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:The_Relic property:based_on ?k . ?k rdf:type ontology:collectable }
[]
collectable
SYSTEM
1
Q846970
(Q1170168,P144,c(Q2342494))
action count
action filter_type
action find
entity Q1170168
relation P144
type Q2342494
[ANSWER]
['Q1170168', 'P144', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:Q1170168 property:P144 ?k . ?k rdf:type ontology:Q2342494 }
Relic
1
action count
action filter_type
action find
entity The Relic
relation based on
type collectable
['The Relic', 'based on', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { resource:The_Relic property:based_on ?k . ?k rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16469001 Q846970
P495 P17
Q15617994
USER
Which administrative territories did Relic originate or are Pauliukonys located in ?
OR((Q846970,P495,c(Q15617994)), (Q16469001,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q846970
relation P495
action find
entity Q16469001
relation P17
type Q15617994
{'OR': [['Q846970', 'P495', {'concept': 'Q15617994'}], ['Q16469001', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q16469001 property:P17 ?x } UNION { resource:Q846970 property:P495 ?x } } }
Pauliukonys Relic
action filter_type
action union
action find
entity Relic
relation country of origin
action find
entity Pauliukonys
relation country
type designation for an administrative territorial entity
{'OR': [['Relic', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Pauliukonys', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pauliukonys property:country ?x } UNION { resource:Relic property:country_of_origin ?x } } }
[]
designation for an administrative territorial entity
Q30 Q37
SYSTEM
United States of America, Lithuania
Q30 Q37
OR((Q846970,P495,c(Q15617994)), (Q16469001,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q846970
relation P495
action find
entity Q16469001
relation P17
type Q15617994
Relic originated from [ANSWERS] Pauliukonys
{'OR': [['Q846970', 'P495', {'concept': 'Q15617994'}], ['Q16469001', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q16469001 property:P17 ?x } UNION { resource:Q846970 property:P495 ?x } } }
United States of America Lithuania
Relic originated from United States of America and Lithuania Pauliukonys
United States of America Lithuania
action filter_type
action union
action find
entity Relic
relation country of origin
action find
entity Pauliukonys
relation country
type designation for an administrative territorial entity
{'OR': [['Relic', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Pauliukonys', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Pauliukonys property:country ?x } UNION { resource:Relic property:country_of_origin ?x } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q271187
P27
Q502895
USER
Are Clara Rockmore civilians of those administrative territories ?
(Q271187,P27,Q30) (Q271187,P27,Q37)
action is_in
entity prev_answer
action find
entity Q271187
relation P27
['Q271187', 'P27', 'Q30'] ['Q271187', 'P27', 'Q37']
ASK WHERE { resource:Q271187 property:P27 ?s . VALUES ( ?s ) { ( resource:Q30 ) ( resource:Q37 ) } }
Clara Rockmore
action is_in
entity prev_answer
action find
entity Clara Rockmore
relation country of citizenship
['Clara Rockmore', 'country of citizenship', 'United States of America'] ['Clara Rockmore', 'country of citizenship', 'Lithuania']
ASK WHERE { resource:Clara_Rockmore property:country_of_citizenship ?s . VALUES ( ?s ) { ( resource:United_States_of_America ) ( resource:Lithuania ) } }
[]
common name
SYSTEM
YES
(Q271187,P27,Q30) (Q271187,P27,Q37)
action is_in
entity prev_answer
action find
entity Q271187
relation P27
[ANSWER]
['Q271187', 'P27', 'Q30'] ['Q271187', 'P27', 'Q37']
ASK WHERE { resource:Q271187 property:P27 ?s . VALUES ( ?s ) { ( resource:Q30 ) ( resource:Q37 ) } }
Yes
action is_in
entity prev_answer
action find
entity Clara Rockmore
relation country of citizenship
['Clara Rockmore', 'country of citizenship', 'United States of America'] ['Clara Rockmore', 'country of citizenship', 'Lithuania']
ASK WHERE { resource:Clara_Rockmore property:country_of_citizenship ?s . VALUES ( ?s ) { ( resource:United_States_of_America ) ( resource:Lithuania ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q26970895 Q591379
P6
Q502895
USER
Does United States of America have Roger Liouville and Anton Lamprecht as its head of government ?
(Q30,P6,Q26970895) (Q30,P6,Q591379)
action is_in
entity Q30
action intersection
action find_reverse
entity Q26970895
relation P6
action find_reverse
entity Q591379
relation P6
['Q30', 'P6', 'Q26970895'] ['Q30', 'P6', 'Q591379']
ASK WHERE { resource:Q30 property:P6 resource:Q26970895 . resource:Q30 property:P6 resource:Q591379 }
United States of America Roger Liouville Anton Lamprecht
action is_in
entity United States of America
action intersection
action find_reverse
entity Roger Liouville
relation head of government
action find_reverse
entity Anton Lamprecht
relation head of government
['United States of America', 'head of government', 'Roger Liouville'] ['United States of America', 'head of government', 'Anton Lamprecht']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Roger_Liouville . resource:United_States_of_America property:head_of_government resource:Anton_Lamprecht }
[]
common name
SYSTEM
NO
(Q30,P6,Q26970895) (Q30,P6,Q591379)
action is_in
entity Q30
action intersection
action find_reverse
entity Q26970895
relation P6
action find_reverse
entity Q591379
relation P6
[ANSWER]
['Q30', 'P6', 'Q26970895'] ['Q30', 'P6', 'Q591379']
ASK WHERE { resource:Q30 property:P6 resource:Q26970895 . resource:Q30 property:P6 resource:Q591379 }
No
action is_in
entity United States of America
action intersection
action find_reverse
entity Roger Liouville
relation head of government
action find_reverse
entity Anton Lamprecht
relation head of government
['United States of America', 'head of government', 'Roger Liouville'] ['United States of America', 'head of government', 'Anton Lamprecht']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Roger_Liouville . resource:United_States_of_America property:head_of_government resource:Anton_Lamprecht }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q846970 Q60
P840
Q56061
USER
Is Relic set in New York City ?
(Q846970,P840,Q60)
action is_in
entity Q60
action find
entity Q846970
relation P840
['Q846970', 'P840', 'Q60']
ASK WHERE { resource:Q846970 property:P840 resource:Q60 }
Relic New York City
action is_in
entity New York City
action find
entity Relic
relation narrative location
['Relic', 'narrative location', 'New York City']
ASK WHERE { resource:Relic property:narrative_location resource:New_York_City }
[]
administrative territorial entity
SYSTEM
YES
(Q846970,P840,Q60)
action is_in
entity Q60
action find
entity Q846970
relation P840
[ANSWER]
['Q846970', 'P840', 'Q60']
ASK WHERE { resource:Q846970 property:P840 resource:Q60 }
Yes
action is_in
entity New York City
action find
entity Relic
relation narrative location
['Relic', 'narrative location', 'New York City']
ASK WHERE { resource:Relic property:narrative_location resource:New_York_City }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q846970
P364
Q34770
USER
Which language was used originally for the creation of that collectable ?
action filter_type
action find
entity Q846970
relation P364
type Q34770
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q846970 property:P364 ?y }
Relic
action filter_type
action find
entity Relic
relation original language of work
type language
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:Relic property:original_language_of_work ?y }
[]
language
Q1860
SYSTEM
English
Q1860
action filter_type
action find
entity Q846970
relation P364
type Q34770
[ANSWER] was used originally for the creation of that collectable
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q846970 property:P364 ?y }
English
English was used originally for the creation of that collectable
English
action filter_type
action find
entity Relic
relation original language of work
type language
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:Relic property:original_language_of_work ?y }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q8192 Q9779 Q34770
USER
How many languages adopt more number of writing systems or alphabets as the writing system than that language ?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q8192
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?h ) WHERE { { ?q property:P282 ?z . ?q rdf:type ontology:Q34770 . ?z rdf:type ontology:Q9779 } UNION { ?q rdf:type ontology:Q34770 . ?z rdf:type ontology:Q8192 . ?q property:P282 ?z } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q1860 property:P282 ?a . { VALUES ( ?p ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?a rdf:type ?p } } } . FILTER ( ?h > ?d ) }
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity English
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?h ) WHERE { { ?q property:writing_system ?z . ?q rdf:type ontology:language . ?z rdf:type ontology:alphabet } UNION { ?q rdf:type ontology:language . ?z rdf:type ontology:writing_system . ?q property:writing_system ?z } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:English property:writing_system ?a . { VALUES ( ?p ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?a rdf:type ?p } } } . FILTER ( ?h > ?d ) }
[]
writing system alphabet language
SYSTEM
9
Q182695 Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q8192
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?h ) WHERE { { ?q property:P282 ?z . ?q rdf:type ontology:Q34770 . ?z rdf:type ontology:Q9779 } UNION { ?q rdf:type ontology:Q34770 . ?z rdf:type ontology:Q8192 . ?q property:P282 ?z } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q1860 property:P282 ?a . { VALUES ( ?p ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?a rdf:type ?p } } } . FILTER ( ?h > ?d ) }
Late Old Japanese Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
9
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity English
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?h ) WHERE { { ?q property:writing_system ?z . ?q rdf:type ontology:language . ?z rdf:type ontology:alphabet } UNION { ?q rdf:type ontology:language . ?z rdf:type ontology:writing_system . ?q property:writing_system ?z } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:English property:writing_system ?a . { VALUES ( ?p ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?a rdf:type ?p } } } . FILTER ( ?h > ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q52626
P37
Q34770 Q1048835
USER
How many political territories have their official language as lesser number of languages than Formentera ?
(c(Q1048835),P37,c(Q34770))
action count
action less
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q52626
relation P37
type Q34770
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?l ) WHERE { ?g property:P37 ?b . ?b rdf:type ontology:Q34770 . ?g rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { resource:Q52626 property:P37 ?w . ?w rdf:type ontology:Q34770 } } . FILTER ( ?l < ?x ) }
Formentera
action count
action less
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Formentera
relation official language
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?l ) WHERE { ?g property:official_language ?b . ?b rdf:type ontology:language . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { resource:Formentera property:official_language ?w . ?w rdf:type ontology:language } } . FILTER ( ?l < ?x ) }
[]
language political territorial entity
SYSTEM
38
Q13116 Q1000 Q2012050 Q49657 Q4540 Q89959 Q193619 Q49662 Q49663 Q49660 Q49661 Q240 Q49655 Q300608 Q4395303 Q181633 Q35 Q171852 Q641138 Q4421880 Q789334 Q42780 Q183 Q49659 Q49654 Q49651 Q231 Q234 Q90027 Q40 Q4218003 Q9331 Q3899 Q9337 Q4410386 Q171965 Q18257 Q4325072
(c(Q1048835),P37,c(Q34770))
action count
action less
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q52626
relation P37
type Q34770
[ANSWER]
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?l ) WHERE { ?g property:P37 ?b . ?b rdf:type ontology:Q34770 . ?g rdf:type ontology:Q1048835 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { resource:Q52626 property:P37 ?w . ?w rdf:type ontology:Q34770 } } . FILTER ( ?l < ?x ) }
Benelux Gabon Donetsk Oblast Schaan Eschen French Community of Belgium Union of South Africa Gamprin Balzers Planken Mauren Brussels Schellenberg A Ver-o-Mar Rivne Mykolaiv Oblast Denmark Odessa Oblast Duchy of Cleves Skypche Balažer Ningbo Germany Ruggell Triesen Triesenberg Walloon Region Flemish Region German-speaking Community of Belgium Austria Kachkarivka Flemish Community Kalimantan Timur Flemish Region Svitlohirske Luhansk Oblast Abella de la Conca Zoriane
38
action count
action less
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Formentera
relation official language
type language
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?l ) WHERE { ?g property:official_language ?b . ?b rdf:type ontology:language . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { resource:Formentera property:official_language ?w . ?w rdf:type ontology:language } } . FILTER ( ?l < ?x ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q846
P530
Q1048835
USER
How many political territories holds diplomatic relationship with United States of America and Qatar ?
(Q30,P530,c(Q1048835)) (Q846,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q846
relation P530
type Q1048835
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q846', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m rdf:type ontology:Q1048835 . resource:Q30 property:P530 ?m . resource:Q846 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
United States of America Qatar
action count
action intersection
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Qatar
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Qatar', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m rdf:type ontology:political_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?m . resource:Qatar property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q16 Q408
(Q30,P530,c(Q1048835)) (Q846,P530,c(Q1048835))
action count
action intersection
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q846
relation P530
type Q1048835
[ANSWER]
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q846', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m rdf:type ontology:Q1048835 . resource:Q30 property:P530 ?m . resource:Q846 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Canada Australia
2
action count
action intersection
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Qatar
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Qatar', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?h ) WHERE { ?m rdf:type ontology:political_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?m . resource:Qatar property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P364
Q34770 Q201658 Q2342494
USER
Which languages are the original languages of creation of min number of film genres or collectables ?
(c(Q201658)|c(Q2342494),P364,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q201658
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } } GROUP BY ?c } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?o ) WHERE { { ?m property:P364 ?p . ?p rdf:type ontology:Q34770 . ?m rdf:type ontology:Q2342494 } UNION { ?m property:P364 ?p . ?p rdf:type ontology:Q34770 . ?m rdf:type ontology:Q201658 } } GROUP BY ?p } . FILTER ( ?o = ?v ) }
action argmin
action union
action find_reverse_tuple_counts
relation original language of work
type language
type film genre
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:film_genre ) ( ontology:collectable ) } } GROUP BY ?c } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?o ) WHERE { { ?m property:original_language_of_work ?p . ?p rdf:type ontology:language . ?m rdf:type ontology:collectable } UNION { ?m property:original_language_of_work ?p . ?p rdf:type ontology:language . ?m rdf:type ontology:film_genre } } GROUP BY ?p } . FILTER ( ?o = ?v ) }
[]
language film genre collectable
Q56530 Q182695 Q35668
SYSTEM
Wappo language, Late Old Japanese, Hittite
Q132659 Q13211 Q35668 Q1072111 Q34909 Q36765 Q35726 Q36206 Q33976 Q10862919 Q56530 Q36790 Q29977 Q182695 Q837985
(c(Q201658)|c(Q2342494),P364,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q201658
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
[ANSWERS] are the original languages of creation of min number of film genres or collectables
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } } GROUP BY ?c } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?o ) WHERE { { ?m property:P364 ?p . ?p rdf:type ontology:Q34770 . ?m rdf:type ontology:Q2342494 } UNION { ?m property:P364 ?p . ?p rdf:type ontology:Q34770 . ?m rdf:type ontology:Q201658 } } GROUP BY ?p } . FILTER ( ?o = ?v ) }
Egyptian hieroglyphs Ruthenian Hittite Galician-Portuguese Old Icelandic Demotic Etruscan Lak Sardinian language Tibetan language Wappo language Sumerian Gaulish Late Old Japanese Middle High German
Wappo language, Late Old Japanese and Hittite are the original languages of creation of min number of film genres or collectables
Wappo language Late Old Japanese Hittite
action argmin
action union
action find_reverse_tuple_counts
relation original language of work
type language
type film genre
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?h ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:film_genre ) ( ontology:collectable ) } } GROUP BY ?c } } . { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?o ) WHERE { { ?m property:original_language_of_work ?p . ?p rdf:type ontology:language . ?m rdf:type ontology:collectable } UNION { ?m property:original_language_of_work ?p . ?p rdf:type ontology:language . ?m rdf:type ontology:film_genre } } GROUP BY ?p } . FILTER ( ?o = ?v ) }
[]