Simple Question (Direct)
Simple Question
Q40421
P641
Q349
USER
What did Miroslav Dvořák participate in ?
(Q40421,P641,c(Q349))
action filter_type
action find
entity Q40421
relation P641
type Q349
['Q40421', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q40421 property:P641 ?v . ?v rdf:type ontology:Q349 }
Miroslav Dvořák
action filter_type
action find
entity Miroslav Dvořák
relation sport
type sport
['Miroslav Dvořák', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Miroslav_Dvořák property:sport ?v . ?v rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q40421,P641,c(Q349))
action filter_type
action find
entity Q40421
relation P641
type Q349
Miroslav Dvořák participated in [ANSWER]
['Q40421', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?v WHERE { resource:Q40421 property:P641 ?v . ?v rdf:type ontology:Q349 }
ice hockey
Miroslav Dvořák participated in ice hockey
ice hockey
action filter_type
action find
entity Miroslav Dvořák
relation sport
type sport
['Miroslav Dvořák', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?v WHERE { resource:Miroslav_Dvořák property:sport ?v . ?v rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40421
P734
Q82799
USER
Who has the surname Miroslav Dvořák ?
(Q40421,P734,c(Q82799))
action filter_type
action find
entity Q40421
relation P734
type Q82799
['Q40421', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q40421 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Miroslav Dvořák
action filter_type
action find
entity Miroslav Dvořák
relation family name
type name
['Miroslav Dvořák', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Miroslav_Dvořák property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q20884194
SYSTEM
Dvořák
Q20884194
(Q40421,P734,c(Q82799))
action filter_type
action find
entity Q40421
relation P734
type Q82799
[ANSWER] has the surname Miroslav [ANSWER]
['Q40421', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q40421 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Dvořák
Dvořák has the surname Miroslav Dvořák
Dvořák
action filter_type
action find
entity Miroslav Dvořák
relation family name
type name
['Miroslav Dvořák', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Miroslav_Dvořák property:family_name ?i . ?i rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7496361
Q82799
USER
And also tell me about Shigeo Kitamura?
(Q7496361,P734,c(Q82799))
action filter_type
action find
entity Q7496361
relation P734
type Q82799
['Q7496361', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q7496361 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Shigeo Kitamura
action filter_type
action find
entity Shigeo Kitamura
relation family name
type name
['Shigeo Kitamura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Shigeo_Kitamura property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q21491575
SYSTEM
Kitamura
Q21491575
(Q7496361,P734,c(Q82799))
action filter_type
action find
entity Q7496361
relation P734
type Q82799
[ANSWER]
['Q7496361', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q7496361 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Kitamura
Kitamura
action filter_type
action find
entity Shigeo Kitamura
relation family name
type name
['Shigeo Kitamura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Shigeo_Kitamura property:family_name ?n . ?n rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q21491575 Q11401928
P734
Q502895
USER
Does Midori Kitamura have that one as last name ?
(Q11401928,P734,Q21491575)
action is_in
entity Q21491575
action find
entity Q11401928
relation P734
['Q11401928', 'P734', 'Q21491575']
ASK WHERE { resource:Q11401928 property:P734 resource:Q21491575 }
Kitamura Midori Kitamura
action is_in
entity Kitamura
action find
entity Midori Kitamura
relation family name
['Midori Kitamura', 'family name', 'Kitamura']
ASK WHERE { resource:Midori_Kitamura property:family_name resource:Kitamura }
[]
common name
SYSTEM
YES
(Q11401928,P734,Q21491575)
action is_in
entity Q21491575
action find
entity Q11401928
relation P734
[ANSWER]
['Q11401928', 'P734', 'Q21491575']
ASK WHERE { resource:Q11401928 property:P734 resource:Q21491575 }
Yes
action is_in
entity Kitamura
action find
entity Midori Kitamura
relation family name
['Midori Kitamura', 'family name', 'Kitamura']
ASK WHERE { resource:Midori_Kitamura property:family_name resource:Kitamura }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q652
P407
Q34770 Q82799
USER
Which languages are the languages of work for around the same number of names as Italian ?
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q652
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q652 property:P407 ?w . ?w rdf:type ontology:Q34770 } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P407 ?h . ?h rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 } GROUP BY ?h } }
Italian
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Italian
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Italian property:language_of_work_or_name ?w . ?w rdf:type ontology:language } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:language_of_work_or_name ?h . ?h rdf:type ontology:language . ?v rdf:type ontology:name } GROUP BY ?h } }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q652
relation P407
type Q34770
[ANSWERS] are the languages of work for around the same number of names as Italian
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Q652 property:P407 ?w . ?w rdf:type ontology:Q34770 } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P407 ?h . ?h rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 } GROUP BY ?h } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for around the same number of names as Italian
Old Egyptian Old Church Slavonic Etruscan
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Italian
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { resource:Italian property:language_of_work_or_name ?w . ?w rdf:type ontology:language } } . FILTER ( ?i = ?c ) . { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:language_of_work_or_name ?h . ?h rdf:type ontology:language . ?v rdf:type ontology:name } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q37041
P407
Q34770 Q82799
USER
And also tell me about classical Chinese?
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q37041
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P407 ?t . ?t rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q37041 property:P407 ?e . ?e rdf:type ontology:Q34770 } } . FILTER ( ?l = ?f ) }
classical Chinese
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity classical Chinese
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:classical_Chinese property:language_of_work_or_name ?e . ?e rdf:type ontology:language } } . FILTER ( ?l = ?f ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q37041
relation P407
type Q34770
[ANSWERS]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P407 ?t . ?t rdf:type ontology:Q34770 . ?u rdf:type ontology:Q82799 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q37041 property:P407 ?e . ?e rdf:type ontology:Q34770 } } . FILTER ( ?l = ?f ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian Old Church Slavonic Etruscan
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity classical Chinese
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?u rdf:type ontology:name } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:classical_Chinese property:language_of_work_or_name ?e . ?e rdf:type ontology:language } } . FILTER ( ?l = ?f ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35499
P144
Q5962346
USER
Which classification scheme is adapted from that language ?
(c(Q5962346),P144,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P144
type Q5962346
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
SELECT DISTINCT ?n WHERE { ?n property:P144 resource:Q35499 . ?n rdf:type ontology:Q5962346 }
Old Church Slavonic
action filter_type
action find_reverse
entity Old Church Slavonic
relation based on
type classification scheme
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
SELECT DISTINCT ?n WHERE { ?n property:based_on resource:Old_Church_Slavonic . ?n rdf:type ontology:classification_scheme }
[]
classification scheme
Clarification for simple ques.
Q35726
SYSTEM
Did you mean Etruscan ?
Q447117 Q35499 Q35726
(c(Q5962346),P144,Q447117) (c(Q5962346),P144,Q35499) (c(Q5962346),P144,Q35726)
[ANSWER]
[{'concept': 'Q5962346'}, 'P144', 'Q447117'] [{'concept': 'Q5962346'}, 'P144', 'Q35499'] [{'concept': 'Q5962346'}, 'P144', 'Q35726']
SELECT DISTINCT ?n WHERE { ?n property:P144 resource:Q35499 . ?n rdf:type ontology:Q5962346 }
Old Egyptian Old Church Slavonic Etruscan
Did you mean Etruscan ?
Etruscan
[{'concept': 'classification scheme'}, 'based on', 'Old Egyptian'] [{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic'] [{'concept': 'classification scheme'}, 'based on', 'Etruscan']
SELECT DISTINCT ?n WHERE { ?n property:based_on resource:Old_Church_Slavonic . ?n rdf:type ontology:classification_scheme }
[]
Simple Question (Coreferenced)
USER
No, I meant Old Church Slavonic. Could you tell me the answer for that?
(c(Q5962346),P144,Q35499)
Q35499
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
[]
Q145852
SYSTEM
West Slavic languages
Q145852
(c(Q5962346),P144,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P144
type Q5962346
The [ANSWER] is adapted from that language
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
SELECT DISTINCT ?n WHERE { ?n property:P144 resource:Q35499 . ?n rdf:type ontology:Q5962346 }
West Slavic languages
The West Slavic languages is adapted from that language
West Slavic languages
action filter_type
action find_reverse
entity Old Church Slavonic
relation based on
type classification scheme
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
SELECT DISTINCT ?n WHERE { ?n property:based_on resource:Old_Church_Slavonic . ?n rdf:type ontology:classification_scheme }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3946245 Q7496361
P27 P20
Q15617994
USER
Which administrative territories are the native countriesof Shigeo Kitamura or are the places of death of Salvatore Totò Rizzo ?
OR((Q7496361,P27,c(Q15617994)), (Q3946245,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q7496361
relation P27
action find
entity Q3946245
relation P20
type Q15617994
{'OR': [['Q7496361', 'P27', {'concept': 'Q15617994'}], ['Q3946245', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7496361 property:P27 ?g } UNION { resource:Q3946245 property:P20 ?g } } . ?g rdf:type ontology:Q15617994 }
Salvatore Totò Rizzo Shigeo Kitamura
action filter_type
action union
action find
entity Shigeo Kitamura
relation country of citizenship
action find
entity Salvatore Totò Rizzo
relation place of death
type designation for an administrative territorial entity
{'OR': [['Shigeo Kitamura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Salvatore Totò Rizzo', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Shigeo_Kitamura property:country_of_citizenship ?g } UNION { resource:Salvatore_Totò_Rizzo property:place_of_death ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q19319
SYSTEM
Japan, Acireale
Q17 Q19319
OR((Q7496361,P27,c(Q15617994)), (Q3946245,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q7496361
relation P27
action find
entity Q3946245
relation P20
type Q15617994
[ANSWERS] are the native countriesof Shigeo Kitamura or are the places of death of Salvatore Totò Rizzo
{'OR': [['Q7496361', 'P27', {'concept': 'Q15617994'}], ['Q3946245', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7496361 property:P27 ?g } UNION { resource:Q3946245 property:P20 ?g } } . ?g rdf:type ontology:Q15617994 }
Japan Acireale
Japan and Acireale are the native countriesof Shigeo Kitamura or are the places of death of Salvatore Totò Rizzo
Japan Acireale
action filter_type
action union
action find
entity Shigeo Kitamura
relation country of citizenship
action find
entity Salvatore Totò Rizzo
relation place of death
type designation for an administrative territorial entity
{'OR': [['Shigeo Kitamura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Salvatore Totò Rizzo', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Shigeo_Kitamura property:country_of_citizenship ?g } UNION { resource:Salvatore_Totò_Rizzo property:place_of_death ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories are the countries of origin of more number of releases than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|Count over More/Less|Single entity type|Clarification
Q17
SYSTEM
Did you mean Japan ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Japan ?
Japan
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
4
Q142 Q30 Q34 Q38
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
France United States of America Sweden Italy
4
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with greater number of administrative territories than Grenada ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?g ) WHERE { ?s property:P530 ?y . ?s rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q769 property:P530 ?z } } . FILTER ( ?g > ?o ) }
Grenada
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?g ) WHERE { ?s property:diplomatic_relation ?y . ?s rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grenada property:diplomatic_relation ?z } } . FILTER ( ?g > ?o ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
7
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?g ) WHERE { ?s property:P530 ?y . ?s rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ontology:Q15617994 . resource:Q769 property:P530 ?z } } . FILTER ( ?g > ?o ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
7
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?y ) AS ?g ) WHERE { ?s property:diplomatic_relation ?y . ?s rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Grenada property:diplomatic_relation ?z } } . FILTER ( ?g > ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q1415
P127
Q811430
USER
How many constructions are owned by Japan or Indiana ?
(c(Q811430),P127,Q17) (c(Q811430),P127,Q1415)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P127
type Q811430
action filter_type
action find_reverse
entity Q1415
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q17'] [{'concept': 'Q811430'}, 'P127', 'Q1415']
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { ?b property:P127 resource:Q17 . ?b rdf:type ontology:Q811430 } UNION { ?b property:P127 resource:Q1415 . ?b rdf:type ontology:Q811430 } }
Japan Indiana
action count
action union
action filter_type
action find_reverse
entity Japan
relation owned by
type construction
action filter_type
action find_reverse
entity Indiana
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Japan'] [{'concept': 'construction'}, 'owned by', 'Indiana']
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { ?b property:owned_by resource:Japan . ?b rdf:type ontology:construction } UNION { ?b property:owned_by resource:Indiana . ?b rdf:type ontology:construction } }
[]
construction
SYSTEM
2
Q1748884 Q6023554
(c(Q811430),P127,Q17) (c(Q811430),P127,Q1415)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P127
type Q811430
action filter_type
action find_reverse
entity Q1415
relation P127
type Q811430
[ANSWER]
[{'concept': 'Q811430'}, 'P127', 'Q17'] [{'concept': 'Q811430'}, 'P127', 'Q1415']
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { ?b property:P127 resource:Q17 . ?b rdf:type ontology:Q811430 } UNION { ?b property:P127 resource:Q1415 . ?b rdf:type ontology:Q811430 } }
Soldiers' and Sailors' Monument Indiana Tower
2
action count
action union
action filter_type
action find_reverse
entity Japan
relation owned by
type construction
action filter_type
action find_reverse
entity Indiana
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Japan'] [{'concept': 'construction'}, 'owned by', 'Indiana']
SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) WHERE { { ?b property:owned_by resource:Japan . ?b rdf:type ontology:construction } UNION { ?b property:owned_by resource:Indiana . ?b rdf:type ontology:construction } }
[]