Simple Question (Direct)
Simple Question
Q965370
P641
Q349
USER
What was the sport that Hiroshi Nakano was a part of ?
(Q965370,P641,c(Q349))
action filter_type
action find
entity Q965370
relation P641
type Q349
['Q965370', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q965370 property:P641 ?r . ?r rdf:type ontology:Q349 }
Hiroshi Nakano
action filter_type
action find
entity Hiroshi Nakano
relation sport
type sport
['Hiroshi Nakano', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Hiroshi_Nakano property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q965370,P641,c(Q349))
action filter_type
action find
entity Q965370
relation P641
type Q349
The sport that Hiroshi Nakano was a part of was the [ANSWER]
['Q965370', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q965370 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
The sport that Hiroshi Nakano was a part of was the association football
association football
action filter_type
action find
entity Hiroshi Nakano
relation sport
type sport
['Hiroshi Nakano', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Hiroshi_Nakano property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q965370
P734
Q82799
USER
Who has the surname Hiroshi Nakano ?
(Q965370,P734,c(Q82799))
action filter_type
action find
entity Q965370
relation P734
type Q82799
['Q965370', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q965370 property:P734 ?o }
Hiroshi Nakano
action filter_type
action find
entity Hiroshi Nakano
relation family name
type name
['Hiroshi Nakano', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Hiroshi_Nakano property:family_name ?o }
[]
name
Q16877758
SYSTEM
Nakano
Q16877758
(Q965370,P734,c(Q82799))
action filter_type
action find
entity Q965370
relation P734
type Q82799
To [ANSWER] has the surname Hiroshi [ANSWER]
['Q965370', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q965370 property:P734 ?o }
Nakano
To Nakano has the surname Hiroshi Nakano
Nakano
action filter_type
action find
entity Hiroshi Nakano
relation family name
type name
['Hiroshi Nakano', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Hiroshi_Nakano property:family_name ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q965370
P27
Q15617994
USER
Which administrative territory is Hiroshi Nakano a civilian of ?
(Q965370,P27,c(Q15617994))
action filter_type
action find
entity Q965370
relation P27
type Q15617994
['Q965370', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q965370 property:P27 ?n }
Hiroshi Nakano
action filter_type
action find
entity Hiroshi Nakano
relation country of citizenship
type designation for an administrative territorial entity
['Hiroshi Nakano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hiroshi_Nakano property:country_of_citizenship ?n }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q965370,P27,c(Q15617994))
action filter_type
action find
entity Q965370
relation P27
type Q15617994
[ANSWER] is Hiroshi Nakano a civilian of
['Q965370', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q965370 property:P27 ?n }
Japan
Japan is Hiroshi Nakano a civilian of
Japan
action filter_type
action find
entity Hiroshi Nakano
relation country of citizenship
type designation for an administrative territorial entity
['Hiroshi Nakano', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hiroshi_Nakano property:country_of_citizenship ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q399
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with more number of administrative territories than Armenia ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q399
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?g ) WHERE { ?e property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Q399 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?y ) }
Armenia
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Armenia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?g ) WHERE { ?e property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Armenia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
34
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q711 Q252 Q403 Q159 Q43 Q155 Q796 Q794 Q884 Q30 Q929 Q38 Q230 Q27 Q184 Q225 Q222 Q347 Q17 Q114 Q212 Q213 Q79 Q858 Q948 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q399
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?g ) WHERE { ?e property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Q399 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?y ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Mongolia Indonesia Serbia Russia Turkey Brazil Iraq Iran South Korea United States of America Central African Republic Italy Georgia Ireland Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Kenya Ukraine Czech Republic Egypt Syria Tunisia Cape Verde Zambia
34
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Armenia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?g ) WHERE { ?e property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Armenia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q954
P530
Q15617994 Q15617994
USER
And also tell me about Zimbabwe?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q954
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?z ) WHERE { ?g property:P530 ?t . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q954 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?y ) }
Zimbabwe
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Zimbabwe
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?z ) WHERE { ?g property:diplomatic_relation ?t . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Zimbabwe property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?y ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
66
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q954
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?z ) WHERE { ?g property:P530 ?t . ?g rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Q954 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?y ) }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
66
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Zimbabwe
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?z ) WHERE { ?g property:diplomatic_relation ?t . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { resource:Zimbabwe property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q3108185
P36
Q515
USER
How many cities are known as the capital of Japan or Ba'athist Iraq ?
(Q17,P36,c(Q515)) (Q3108185,P36,c(Q515))
action count
action union
action filter_type
action find
entity Q17
relation P36
type Q515
action filter_type
action find
entity Q3108185
relation P36
type Q515
['Q17', 'P36', {'concept': 'Q515'}] ['Q3108185', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?g ) { ( resource:Q17 ) ( resource:Q3108185 ) } . ?g property:P36 ?e }
Japan Ba'athist Iraq
action count
action union
action filter_type
action find
entity Japan
relation capital
type city
action filter_type
action find
entity Ba'athist Iraq
relation capital
type city
['Japan', 'capital', {'concept': 'city'}] ["Ba'athist Iraq", 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?g ) { ( resource:Japan ) ( resource:Ba'athist_Iraq ) } . ?g property:capital ?e }
[]
city
SYSTEM
2
Q7473516 Q1530
(Q17,P36,c(Q515)) (Q3108185,P36,c(Q515))
action count
action union
action filter_type
action find
entity Q17
relation P36
type Q515
action filter_type
action find
entity Q3108185
relation P36
type Q515
[ANSWER]
['Q17', 'P36', {'concept': 'Q515'}] ['Q3108185', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?g ) { ( resource:Q17 ) ( resource:Q3108185 ) } . ?g property:P36 ?e }
Tokyo Baghdad
2
action count
action union
action filter_type
action find
entity Japan
relation capital
type city
action filter_type
action find
entity Ba'athist Iraq
relation capital
type city
['Japan', 'capital', {'concept': 'city'}] ["Ba'athist Iraq", 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?g ) { ( resource:Japan ) ( resource:Ba'athist_Iraq ) } . ?g property:capital ?e }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q83277 Q17
P47
Q15617994
USER
Which administrative territories have a shared border with Japan or Petriolo ?
OR((Q17,P47,c(Q15617994)), (Q83277,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P47
action find
entity Q83277
relation P47
type Q15617994
{'OR': [['Q17', 'P47', {'concept': 'Q15617994'}], ['Q83277', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?g ) { ( resource:Q17 ) ( resource:Q83277 ) } . ?g property:P47 ?u } . ?u rdf:type ontology:Q15617994 }
Petriolo Japan
action filter_type
action union
action find
entity Japan
relation shares border with
action find
entity Petriolo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Petriolo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?g ) { ( resource:Japan ) ( resource:Petriolo ) } . ?g property:shares_border_with ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q73902 Q423 Q159 Q148 Q94982 Q83064 Q94978 Q884 Q73690
SYSTEM
Loro Piceno, North Korea, Russia, People's Republic of China, Urbisaglia, Mogliano, Tolentino, South Korea, Corridonia
Q73902 Q423 Q159 Q148 Q94982 Q83064 Q94978 Q884 Q73690
OR((Q17,P47,c(Q15617994)), (Q83277,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q17
relation P47
action find
entity Q83277
relation P47
type Q15617994
[ANSWERS] have a shared border with Japan or Petriolo
{'OR': [['Q17', 'P47', {'concept': 'Q15617994'}], ['Q83277', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?g ) { ( resource:Q17 ) ( resource:Q83277 ) } . ?g property:P47 ?u } . ?u rdf:type ontology:Q15617994 }
Loro Piceno North Korea Russia People's Republic of China Urbisaglia Mogliano Tolentino South Korea Corridonia
Loro Piceno, North Korea, Russia, People's Republic of China, Urbisaglia, Mogliano, Tolentino, South Korea and Corridonia have a shared border with Japan or Petriolo
Loro Piceno North Korea Russia People's Republic of China Urbisaglia Mogliano Tolentino South Korea Corridonia
action filter_type
action union
action find
entity Japan
relation shares border with
action find
entity Petriolo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Japan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Petriolo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?g ) { ( resource:Japan ) ( resource:Petriolo ) } . ?g property:shares_border_with ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q103155
P417
Q1445650 Q502895 Q15617994
USER
How many administrative territories have adopted more number of holidays or people as their patron saint than Monteverdi Marittimo ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q103155
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?t ) WHERE { { ?y property:P417 ?a . ?y rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1445650 } UNION { ?y property:P417 ?a . ?y rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q502895 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { { ?z rdf:type ontology:Q502895 } UNION { ?z rdf:type ontology:Q1445650 } } . resource:Q103155 property:P417 ?z } } . FILTER ( ?t > ?b ) }
Monteverdi Marittimo
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Monteverdi Marittimo
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?t ) WHERE { { ?y property:patron_saint ?a . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:holiday } UNION { ?y property:patron_saint ?a . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:common_name } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { { ?z rdf:type ontology:common_name } UNION { ?z rdf:type ontology:holiday } } . resource:Monteverdi_Marittimo property:patron_saint ?z } } . FILTER ( ?t > ?b ) }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
4
Q36 Q25198 Q286808 Q38
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q103155
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?t ) WHERE { { ?y property:P417 ?a . ?y rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1445650 } UNION { ?y property:P417 ?a . ?y rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q502895 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { { ?z rdf:type ontology:Q502895 } UNION { ?z rdf:type ontology:Q1445650 } } . resource:Q103155 property:P417 ?z } } . FILTER ( ?t > ?b ) }
Poland Olgiate Olona Fiavè Italy
4
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Monteverdi Marittimo
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?t ) WHERE { { ?y property:patron_saint ?a . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:holiday } UNION { ?y property:patron_saint ?a . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:common_name } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { { { ?z rdf:type ontology:common_name } UNION { ?z rdf:type ontology:holiday } } . resource:Monteverdi_Marittimo property:patron_saint ?z } } . FILTER ( ?t > ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q47585
P417
Q1445650 Q502895 Q15617994
USER
And also tell me about Garda?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q47585
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?b WHERE { ?g rdf:type ?a . VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Q47585 property:P417 ?y . { { ?y rdf:type ontology:Q502895 } UNION { ?y rdf:type ontology:Q1445650 } } } } . FILTER ( ?u > ?f ) }
Garda
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Garda
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?b WHERE { ?g rdf:type ?a . VALUES ( ?a ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Garda property:patron_saint ?y . { { ?y rdf:type ontology:common_name } UNION { ?y rdf:type ontology:holiday } } } } . FILTER ( ?u > ?f ) }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
4
Q36 Q25198 Q286808 Q38
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q47585
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?b WHERE { ?g rdf:type ?a . VALUES ( ?a ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Q47585 property:P417 ?y . { { ?y rdf:type ontology:Q502895 } UNION { ?y rdf:type ontology:Q1445650 } } } } . FILTER ( ?u > ?f ) }
Poland Olgiate Olona Fiavè Italy
4
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Garda
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) ?b WHERE { ?g rdf:type ?a . VALUES ( ?a ) { ( ontology:common_name ) ( ontology:holiday ) } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { resource:Garda property:patron_saint ?y . { { ?y rdf:type ontology:common_name } UNION { ?y rdf:type ontology:holiday } } } } . FILTER ( ?u > ?f ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16472746 Q83064
P17
Q15617994
USER
Which administrative territories are Mogliano or Smalinyčia present in ?
OR((Q83064,P17,c(Q15617994)), (Q16472746,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q83064
relation P17
action find
entity Q16472746
relation P17
type Q15617994
{'OR': [['Q83064', 'P17', {'concept': 'Q15617994'}], ['Q16472746', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { VALUES ( ?r ) { ( resource:Q83064 ) ( resource:Q16472746 ) } . ?r property:P17 ?z } }
Smalinyčia Mogliano
action filter_type
action union
action find
entity Mogliano
relation country
action find
entity Smalinyčia
relation country
type designation for an administrative territorial entity
{'OR': [['Mogliano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Smalinyčia', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?r ) { ( resource:Mogliano ) ( resource:Smalinyčia ) } . ?r property:country ?z } }
[]
designation for an administrative territorial entity
Q38 Q37
SYSTEM
Italy, Lithuania
Q38 Q37
OR((Q83064,P17,c(Q15617994)), (Q16472746,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q83064
relation P17
action find
entity Q16472746
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q83064', 'P17', {'concept': 'Q15617994'}], ['Q16472746', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . { VALUES ( ?r ) { ( resource:Q83064 ) ( resource:Q16472746 ) } . ?r property:P17 ?z } }
Italy Lithuania
Which administrative territories are Mogliano or Smalinyčia present in
Italy Lithuania
action filter_type
action union
action find
entity Mogliano
relation country
action find
entity Smalinyčia
relation country
type designation for an administrative territorial entity
{'OR': [['Mogliano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Smalinyčia', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?r ) { ( resource:Mogliano ) ( resource:Smalinyčia ) } . ?r property:country ?z } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2088357 Q7725634
USER
Which administrative territories are the countries of origin of more number of musical ensembles or literary works than that administrative territory ?
(c(Q2088357)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q2088357'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'musical ensemble'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity musical ensemble literary work
Comparative|More/Less|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
(c(Q2088357)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Italy ?
Italy
[[{'concept': 'musical ensemble'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (All)
USER
No, I meant Lithuania. Could you tell me the answer for that?
(c(Q2088357)|c(Q7725634),P495,c(Q15617994))
Q37
[[{'concept': 'Q2088357'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'musical ensemble'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q419 Q414 Q142 Q55 Q145 Q148 Q252 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q884 Q33 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q20 Q27 Q28 Q189 Q96 Q17 Q902 Q191 Q298 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q833 Q29
(c(Q2088357)|c(Q7725634),P495,c(Q15617994))
[ANSWERS] are the countries of origin of more number of musical ensembles or literary works than that administrative territory
[[{'concept': 'Q2088357'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2088357 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Israel Peru Argentina France Netherlands United Kingdom People's Republic of China Indonesia South Africa Portugal Russia Turkey Greece Brazil Haiti South Korea Finland Belgium United States of America Poland Sweden Switzerland Italy Colombia Norway Ireland Hungary Iceland Mexico Japan Bangladesh Estonia Chile Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Malaysia Spain
Italy, Brazil and United States of America are the countries of origin of more number of musical ensembles or literary works than that administrative territory
Italy Brazil United States of America
[[{'concept': 'musical ensemble'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:musical_ensemble . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P463
Q484652
USER
What international organizations had Italy, Brazil and United States of America as their member ?
(Q38,P463,c(Q484652)) (Q155,P463,c(Q484652)) (Q30,P463,c(Q484652))
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q30
relation P463
type Q484652
['Q38', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?f WHERE { { resource:Q38 property:P463 ?f . ?f rdf:type ontology:Q484652 } UNION { ?f rdf:type ontology:Q484652 . resource:Q155 property:P463 ?f } }
Italy Brazil United States of America
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity United States of America
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?f WHERE { { resource:Italy property:member_of ?f . ?f rdf:type ontology:international_organization } UNION { ?f rdf:type ontology:international_organization . resource:Brazil property:member_of ?f } }
[]
international organization
Q81299 Q81299 Q19771
SYSTEM
Organization for Security and Co-operation in Europe for 1st, 2nd, G20 for 3rd
Q81299 Q1065 Q826700 Q605326 Q47488 Q7184 Q42262 Q1045198 Q472311 Q8475 Q1480793 Q188822 Q170424 Q201054 Q7804 Q842490 Q19771 Q54129 Q1411881 Q17495 Q192177 Q37143 Q176815 Q182000 Q233611 Q1043527 Q471690 Q1065 Q838116 Q47488 Q8475 Q19771 Q17495 Q4230 Q1043527 Q81299 Q1043527 Q1065 Q37143 Q188822 Q674182 Q842490 Q19771 Q7184
(Q38,P463,c(Q484652)) (Q155,P463,c(Q484652)) (Q30,P463,c(Q484652))
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q155
relation P463
type Q484652
action filter_type
action find
entity Q30
relation P463
type Q484652
[ANSWERS]
['Q38', 'P463', {'concept': 'Q484652'}] ['Q155', 'P463', {'concept': 'Q484652'}] ['Q30', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?f WHERE { { resource:Q38 property:P463 ?f . ?f rdf:type ontology:Q484652 } UNION { ?f rdf:type ontology:Q484652 . resource:Q155 property:P463 ?f } }
Organization for Security and Co-operation in Europe United Nations International Energy Agency World Customs Organization International Criminal Court North Atlantic Treaty Organisation European Space Agency Permanent Court of Arbitration International Organization for Migration Interpol Nuclear Suppliers Group Asian Development Bank World Meteorological Organization International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons G20 International Labour Organization Group of Ten Universal Postal Union Union for the Mediterranean G8 Inter-Parliamentary Union United Nations Conference on Trade and Development International Hydrographic Organization Multilateral Investment Guarantee Agency Andean Community of Nations United Nations G4 nations International Criminal Court Interpol G20 Universal Postal Union Union of South American Nations Multilateral Investment Guarantee Agency Organization for Security and Co-operation in Europe Multilateral Investment Guarantee Agency United Nations G8 Asian Development Bank Arctic Council Organisation for the Prohibition of Chemical Weapons G20 North Atlantic Treaty Organisation
Organization for Security and Co-operation in Europe, Organization for Security and Co-operation in Europe and G20 had Italy, Brazil and United States of America as their member
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe G20
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Brazil
relation member of
type international organization
action filter_type
action find
entity United States of America
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}] ['Brazil', 'member of', {'concept': 'international organization'}] ['United States of America', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?f WHERE { { resource:Italy property:member_of ?f . ?f rdf:type ontology:international_organization } UNION { ?f rdf:type ontology:international_organization . resource:Brazil property:member_of ?f } }
[]