Simple Question (Direct)
Simple Question
Q2535891
P54
Q1194951
USER
Which national sports team is Tsutomu Sonobe a member of ?
(Q2535891,P54,c(Q1194951))
action filter_type
action find
entity Q2535891
relation P54
type Q1194951
['Q2535891', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?q WHERE { resource:Q2535891 property:P54 ?q . ?q rdf:type ontology:Q1194951 }
Tsutomu Sonobe
action filter_type
action find
entity Tsutomu Sonobe
relation member of sports team
type national sports team
['Tsutomu Sonobe', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?q WHERE { resource:Tsutomu_Sonobe property:member_of_sports_team ?q . ?q rdf:type ontology:national_sports_team }
[]
national sports team
Q170566
SYSTEM
Japan national football team
Q170566
(Q2535891,P54,c(Q1194951))
action filter_type
action find
entity Q2535891
relation P54
type Q1194951
And [ANSWER] is Tsutomu Sonobe a member of
['Q2535891', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?q WHERE { resource:Q2535891 property:P54 ?q . ?q rdf:type ontology:Q1194951 }
Japan national football team
And Japan national football team is Tsutomu Sonobe a member of
Japan national football team
action filter_type
action find
entity Tsutomu Sonobe
relation member of sports team
type national sports team
['Tsutomu Sonobe', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?q WHERE { resource:Tsutomu_Sonobe property:member_of_sports_team ?q . ?q rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2535891
P641
Q349
USER
Which sport did Tsutomu Sonobe participate in ?
(Q2535891,P641,c(Q349))
action filter_type
action find
entity Q2535891
relation P641
type Q349
['Q2535891', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q2535891 property:P641 ?u . ?u rdf:type ontology:Q349 }
Tsutomu Sonobe
action filter_type
action find
entity Tsutomu Sonobe
relation sport
type sport
['Tsutomu Sonobe', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Tsutomu_Sonobe property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q2535891,P641,c(Q349))
action filter_type
action find
entity Q2535891
relation P641
type Q349
Tsutomu Sonobe participated in [ANSWER]
['Q2535891', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q2535891 property:P641 ?u . ?u rdf:type ontology:Q349 }
association football
Tsutomu Sonobe participated in association football
association football
action filter_type
action find
entity Tsutomu Sonobe
relation sport
type sport
['Tsutomu Sonobe', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Tsutomu_Sonobe property:sport ?u . ?u rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q349 Q43229 Q2342494
USER
How many sports do more number of organizations or collectables belong to than that sport ?
(c(Q43229)|c(Q2342494),P101,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q43229
type Q2342494
[[{'concept': 'Q43229'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P101 ?k . ?k rdf:type ontology:Q349 . ?x rdf:type ontology:Q43229 } UNION { ?x property:P101 ?k . ?k rdf:type ontology:Q349 . ?x rdf:type ontology:Q2342494 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:P101 resource:Q2736 . { { ?e rdf:type ontology:Q43229 } UNION { ?e rdf:type ontology:Q2342494 } } } } . FILTER ( ?y > ?j ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type organization
type collectable
[[{'concept': 'organization'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:field_of_work ?k . ?k rdf:type ontology:sport . ?x rdf:type ontology:organization } UNION { ?x property:field_of_work ?k . ?k rdf:type ontology:sport . ?x rdf:type ontology:collectable } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:field_of_work resource:association_football . { { ?e rdf:type ontology:organization } UNION { ?e rdf:type ontology:collectable } } } } . FILTER ( ?y > ?j ) }
[]
sport organization collectable
SYSTEM
2
Q1109032 Q114466
(c(Q43229)|c(Q2342494),P101,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q43229
type Q2342494
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P101 ?k . ?k rdf:type ontology:Q349 . ?x rdf:type ontology:Q43229 } UNION { ?x property:P101 ?k . ?k rdf:type ontology:Q349 . ?x rdf:type ontology:Q2342494 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:P101 resource:Q2736 . { { ?e rdf:type ontology:Q43229 } UNION { ?e rdf:type ontology:Q2342494 } } } } . FILTER ( ?y > ?j ) }
college football mixed martial arts
2
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type organization
type collectable
[[{'concept': 'organization'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:field_of_work ?k . ?k rdf:type ontology:sport . ?x rdf:type ontology:organization } UNION { ?x property:field_of_work ?k . ?k rdf:type ontology:sport . ?x rdf:type ontology:collectable } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { ?e property:field_of_work resource:association_football . { { ?e rdf:type ontology:organization } UNION { ?e rdf:type ontology:collectable } } } } . FILTER ( ?y > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q178933
P1303
Q34379 Q502895
USER
Which musical instruments do more number of people know to play than Hardanger fiddle ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q178933
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Q178933 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?o > ?i ) }
Hardanger fiddle
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Hardanger fiddle
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Hardanger_fiddle property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?i ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q178933
relation P1303
type Q34379
[ANSWERS] more number of people know to play than Hardanger fiddle
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Q178933 property:P1303 ?d . ?d rdf:type ontology:Q34379 } } . FILTER ( ?o > ?i ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot more number of people know to play than Hardanger fiddle
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Hardanger fiddle
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?o ) WHERE { ?k property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { resource:Hardanger_fiddle property:instrument ?d . ?d rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q678090
P1303
Q34379 Q502895
USER
And also tell me about Twelve-string guitar?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q678090
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P1303 ?q . ?u rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:Q34379 . resource:Q678090 property:P1303 ?k } } . FILTER ( ?h > ?m ) }
Twelve-string guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Twelve-string guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:instrument ?q . ?u rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:musical_instrument . resource:Twelve-string_guitar property:instrument ?k } } . FILTER ( ?h > ?m ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q678090
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:P1303 ?q . ?u rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:Q34379 . resource:Q678090 property:P1303 ?k } } . FILTER ( ?h > ?m ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Twelve-string guitar
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?h ) WHERE { ?u property:instrument ?q . ?u rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k rdf:type ontology:musical_instrument . resource:Twelve-string_guitar property:instrument ?k } } . FILTER ( ?h > ?m ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q5994 Q81982 Q862501
P425
Q12737077
USER
Which occupations do those musical instruments belong to ?
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q862501)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q862501']
SELECT DISTINCT ?m WHERE { ?m property:P425 ?y . VALUES ( ?y ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q201129 ) } . ?m rdf:type ontology:Q12737077 }
piano harpsichord ondes Martenot
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
SELECT DISTINCT ?m WHERE { ?m property:field_of_this_occupation ?y . VALUES ( ?y ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:lyre ) } . ?m rdf:type ontology:occupation }
[]
occupation
Q885122 Q486748 Q5371902
SYSTEM
piano maker, pianist, harpsichordist
Q486748 Q885122 Q5371902 Q20198734
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q81982) (c(Q12737077),P425,Q862501)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
Those musical instruments belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q81982'] [{'concept': 'Q12737077'}, 'P425', 'Q862501']
SELECT DISTINCT ?m WHERE { ?m property:P425 ?y . VALUES ( ?y ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q201129 ) } . ?m rdf:type ontology:Q12737077 }
pianist piano maker harpsichordist ondist
Those musical instruments belong to the piano maker, pianist and harpsichordist
piano maker pianist harpsichordist
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'harpsichord'] [{'concept': 'occupation'}, 'field of this occupation', 'ondes Martenot']
SELECT DISTINCT ?m WHERE { ?m property:field_of_this_occupation ?y . VALUES ( ?y ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:lyre ) } . ?m rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5942706
Q502895
USER
And what about Hungargunn Bear It'n Mind?
(Q5942706,P106,c(Q502895))
action filter_type
action find
entity Q5942706
relation P106
type Q502895
['Q5942706', 'P106', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q5942706 property:P106 ?z }
Hungargunn Bear It'n Mind
action filter_type
action find
entity Hungargunn Bear It'n Mind
relation occupation
type common name
["Hungargunn Bear It'n Mind", 'occupation', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Hungargunn_Bear_It'n_Mind property:occupation ?z }
[]
common name
Q12008694
SYSTEM
Show dog
Q12008694
(Q5942706,P106,c(Q502895))
action filter_type
action find
entity Q5942706
relation P106
type Q502895
Mind And It 'n ' [ANSWER]
['Q5942706', 'P106', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q5942706 property:P106 ?z }
Show dog
Mind And It 'n ' Show dog
Show dog
action filter_type
action find
entity Hungargunn Bear It'n Mind
relation occupation
type common name
["Hungargunn Bear It'n Mind", 'occupation', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:Hungargunn_Bear_It'n_Mind property:occupation ?z }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1340887 Q2535891
P27
Q15617994
USER
Which administrative territories are Tsutomu Sonobe or Jacques Brichant an inhabitant of ?
OR((Q2535891,P27,c(Q15617994)), (Q1340887,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2535891
relation P27
action find
entity Q1340887
relation P27
type Q15617994
{'OR': [['Q2535891', 'P27', {'concept': 'Q15617994'}], ['Q1340887', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { ?v property:P27 ?z . VALUES ( ?v ) { ( resource:Q2535891 ) ( resource:Q1340887 ) } } . ?z rdf:type ontology:Q15617994 }
Jacques Brichant Tsutomu Sonobe
action filter_type
action union
action find
entity Tsutomu Sonobe
relation country of citizenship
action find
entity Jacques Brichant
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tsutomu Sonobe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jacques Brichant', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { ?v property:country_of_citizenship ?z . VALUES ( ?v ) { ( resource:Tsutomu_Sonobe ) ( resource:Jacques_Brichant ) } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q31
SYSTEM
Japan, Belgium
Q17 Q31
OR((Q2535891,P27,c(Q15617994)), (Q1340887,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2535891
relation P27
action find
entity Q1340887
relation P27
type Q15617994
[ANSWERS] are Tsutomu Sonobe or Jacques Brichant an inhabitant of
{'OR': [['Q2535891', 'P27', {'concept': 'Q15617994'}], ['Q1340887', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { ?v property:P27 ?z . VALUES ( ?v ) { ( resource:Q2535891 ) ( resource:Q1340887 ) } } . ?z rdf:type ontology:Q15617994 }
Japan Belgium
Japan and Belgium are Tsutomu Sonobe or Jacques Brichant an inhabitant of
Japan Belgium
action filter_type
action union
action find
entity Tsutomu Sonobe
relation country of citizenship
action find
entity Jacques Brichant
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Tsutomu Sonobe', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jacques Brichant', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { ?v property:country_of_citizenship ?z . VALUES ( ?v ) { ( resource:Tsutomu_Sonobe ) ( resource:Jacques_Brichant ) } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have diplomatic relations with those ones ?
(Q230,P530,Q17) (Q230,P530,Q31)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q17'] ['Q230', 'P530', 'Q31']
ASK WHERE { VALUES ( ?h ) { ( resource:Q17 ) ( resource:Q31 ) } . resource:Q230 property:P530 ?h }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Japan'] ['Georgia', 'diplomatic relation', 'Belgium']
ASK WHERE { VALUES ( ?h ) { ( resource:Japan ) ( resource:Belgium ) } . resource:Georgia property:diplomatic_relation ?h }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q17) (Q230,P530,Q31)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q17'] ['Q230', 'P530', 'Q31']
ASK WHERE { VALUES ( ?h ) { ( resource:Q17 ) ( resource:Q31 ) } . resource:Q230 property:P530 ?h }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Japan'] ['Georgia', 'diplomatic relation', 'Belgium']
ASK WHERE { VALUES ( ?h ) { ( resource:Japan ) ( resource:Belgium ) } . resource:Georgia property:diplomatic_relation ?h }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q221
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with around the same number of administrative territories as Republic of Macedonia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q221
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?y = ?v ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Q221 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } }
Republic of Macedonia
action count
action approx
action find_reverse_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 Republic of Macedonia
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 ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?y = ?v ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Republic_of_Macedonia property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
154
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q221
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?a } . FILTER ( ?y = ?v ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Q221 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
154
action count
action approx
action find_reverse_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 Republic of Macedonia
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 ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?y ) WHERE { ?f property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . FILTER ( ?y = ?v ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Republic_of_Macedonia property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q398
P530
Q15617994 Q15617994
USER
And what about Bahrain?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q398 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?p ) }
Bahrain
action count
action approx
action find_reverse_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 Bahrain
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 ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Bahrain property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?p ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
154
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:P530 ?d . ?d rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q398 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?p ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
154
action count
action approx
action find_reverse_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 Bahrain
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 ( ?d ) AS ?o ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?h ) AS ?y ) WHERE { ?h property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Bahrain property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q35
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with Japan and Denmark ?
(Q17,P530,c(Q15617994)) (Q35,P530,c(Q15617994))
action count
action intersection
action filter_type
action find
entity Q17
relation P530
type Q15617994
action filter_type
action find
entity Q35
relation P530
type Q15617994
['Q17', 'P530', {'concept': 'Q15617994'}] ['Q35', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Q35 property:P530 ?s . ?s rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Japan Denmark
action count
action intersection
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Denmark property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
Q155 Q38
(Q17,P530,c(Q15617994)) (Q35,P530,c(Q15617994))
action count
action intersection
action filter_type
action find
entity Q17
relation P530
type Q15617994
action filter_type
action find
entity Q35
relation P530
type Q15617994
[ANSWER]
['Q17', 'P530', {'concept': 'Q15617994'}] ['Q35', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Q35 property:P530 ?s . ?s rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?s . ?s rdf:type ontology:Q15617994 }
Brazil Italy
2
action count
action intersection
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Denmark
relation diplomatic relation
type designation for an administrative territorial entity
['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Denmark', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { resource:Denmark property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]