Simple Question (Direct)
Simple Question
Q5230851
P19
Q56061
USER
Which administrative territory was David Armstrong born at ?
(Q5230851,P19,c(Q56061))
action filter_type
action find
entity Q5230851
relation P19
type Q56061
['Q5230851', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5230851 property:P19 ?a . ?a rdf:type ontology:Q56061 }
David Armstrong
action filter_type
action find
entity David Armstrong
relation place of birth
type administrative territorial entity
['David Armstrong', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:David_Armstrong property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1828035
SYSTEM
Lisburn
Q1828035
(Q5230851,P19,c(Q56061))
action filter_type
action find
entity Q5230851
relation P19
type Q56061
David Armstrong was born in [ANSWER]
['Q5230851', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5230851 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Lisburn
David Armstrong was born in Lisburn
Lisburn
action filter_type
action find
entity David Armstrong
relation place of birth
type administrative territorial entity
['David Armstrong', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:David_Armstrong property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1828035
P159
Q43229
USER
Which organizations have the principal seat at that administrative territory ?
(c(Q43229),P159,Q1828035)
action filter_type
action find_reverse
entity Q1828035
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q1828035']
SELECT DISTINCT ?a WHERE { ?a property:P159 resource:Q1828035 . ?a rdf:type ontology:Q43229 }
Lisburn
action filter_type
action find_reverse
entity Lisburn
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Lisburn']
SELECT DISTINCT ?a WHERE { ?a property:headquarters_location resource:Lisburn . ?a rdf:type ontology:organization }
[]
organization
Q5050081 Q6386389
SYSTEM
Castle Gallery, Kelman Ltd.
Q5050081 Q6386389
(c(Q43229),P159,Q1828035)
action filter_type
action find_reverse
entity Q1828035
relation P159
type Q43229
[ANSWERS] have the principal seat at that administrative territory
[{'concept': 'Q43229'}, 'P159', 'Q1828035']
SELECT DISTINCT ?a WHERE { ?a property:P159 resource:Q1828035 . ?a rdf:type ontology:Q43229 }
Castle Gallery Kelman Ltd.
Castle Gallery and Kelman Ltd. have the principal seat at that administrative territory
Castle Gallery Kelman Ltd.
action filter_type
action find_reverse
entity Lisburn
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Lisburn']
SELECT DISTINCT ?a WHERE { ?a property:headquarters_location resource:Lisburn . ?a rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1828035 Q13133387
P17
Q15617994
USER
How many administrative territories do Lisburn or Honoured Lawyer of the Republic of Belarus belong to ?
(Q1828035,P17,c(Q15617994)) (Q13133387,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1828035
relation P17
type Q15617994
action filter_type
action find
entity Q13133387
relation P17
type Q15617994
['Q1828035', 'P17', {'concept': 'Q15617994'}] ['Q13133387', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { VALUES ( ?f ) { ( resource:Q1828035 ) ( resource:Q13133387 ) } . ?f property:P17 ?c }
Lisburn Honoured Lawyer of the Republic of Belarus
action count
action union
action filter_type
action find
entity Lisburn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Honoured Lawyer of the Republic of Belarus
relation country
type designation for an administrative territorial entity
['Lisburn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Honoured Lawyer of the Republic of Belarus', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { VALUES ( ?f ) { ( resource:Lisburn ) ( resource:Honoured_Lawyer_of_the_Republic_of_Belarus ) } . ?f property:country ?c }
[]
designation for an administrative territorial entity
SYSTEM
2
Q184 Q145
(Q1828035,P17,c(Q15617994)) (Q13133387,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1828035
relation P17
type Q15617994
action filter_type
action find
entity Q13133387
relation P17
type Q15617994
[ANSWER]
['Q1828035', 'P17', {'concept': 'Q15617994'}] ['Q13133387', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { VALUES ( ?f ) { ( resource:Q1828035 ) ( resource:Q13133387 ) } . ?f property:P17 ?c }
Belarus United Kingdom
2
action count
action union
action filter_type
action find
entity Lisburn
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Honoured Lawyer of the Republic of Belarus
relation country
type designation for an administrative territorial entity
['Lisburn', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Honoured Lawyer of the Republic of Belarus', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { VALUES ( ?f ) { ( resource:Lisburn ) ( resource:Honoured_Lawyer_of_the_Republic_of_Belarus ) } . ?f property:country ?c }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17142426 Q13133387
P17
Q15617994
USER
Which administrative territories are Honoured Lawyer of the Republic of Belarus or Nong Muang Khai present in ?
OR((Q13133387,P17,c(Q15617994)), (Q17142426,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13133387
relation P17
action find
entity Q17142426
relation P17
type Q15617994
{'OR': [['Q13133387', 'P17', {'concept': 'Q15617994'}], ['Q17142426', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q17142426 property:P17 ?i } UNION { resource:Q13133387 property:P17 ?i } } }
Nong Muang Khai Honoured Lawyer of the Republic of Belarus
action filter_type
action union
action find
entity Honoured Lawyer of the Republic of Belarus
relation country
action find
entity Nong Muang Khai
relation country
type designation for an administrative territorial entity
{'OR': [['Honoured Lawyer of the Republic of Belarus', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nong Muang Khai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Nong_Muang_Khai property:country ?i } UNION { resource:Honoured_Lawyer_of_the_Republic_of_Belarus property:country ?i } } }
[]
designation for an administrative territorial entity
Q869 Q184
SYSTEM
Thailand, Belarus
Q869 Q184
OR((Q13133387,P17,c(Q15617994)), (Q17142426,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13133387
relation P17
action find
entity Q17142426
relation P17
type Q15617994
[ANSWERS] are Honoured Lawyer of the Republic of Belarus or Nong Muang Khai present in
{'OR': [['Q13133387', 'P17', {'concept': 'Q15617994'}], ['Q17142426', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q17142426 property:P17 ?i } UNION { resource:Q13133387 property:P17 ?i } } }
Thailand Belarus
Thailand and Belarus are Honoured Lawyer of the Republic of Belarus or Nong Muang Khai present in
Thailand Belarus
action filter_type
action union
action find
entity Honoured Lawyer of the Republic of Belarus
relation country
action find
entity Nong Muang Khai
relation country
type designation for an administrative territorial entity
{'OR': [['Honoured Lawyer of the Republic of Belarus', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nong Muang Khai', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Nong_Muang_Khai property:country ?i } UNION { resource:Honoured_Lawyer_of_the_Republic_of_Belarus property:country ?i } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1001
Q15617994 Q1292279 Q35798
USER
Which administrative territories apply to jurisdiction of max number of political borders and executive branches ?
(c(Q1292279)|c(Q35798),P1001,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
[[{'concept': 'Q1292279'}, {'concept': 'Q35798'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?l ) WHERE { { ?k property:P1001 ?g . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1292279 } UNION { ?k rdf:type ontology:Q35798 . ?g rdf:type ontology:Q15617994 . ?k property:P1001 ?g } } GROUP BY ?g } } . FILTER ( ?h = ?u ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P1001 ?c . ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1292279 } UNION { ?m property:P1001 ?c . ?m rdf:type ontology:Q35798 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } }
action argmax
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
[[{'concept': 'political border'}, {'concept': 'executive branch'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?l ) WHERE { { ?k property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_border } UNION { ?k rdf:type ontology:executive_branch . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:applies_to_jurisdiction ?g } } GROUP BY ?g } } . FILTER ( ?h = ?u ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:applies_to_jurisdiction ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_border } UNION { ?m property:applies_to_jurisdiction ?c . ?m rdf:type ontology:executive_branch . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
designation for an administrative territorial entity political border executive branch
Q142
SYSTEM
France
Q142
(c(Q1292279)|c(Q35798),P1001,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q35798
[ANSWER] apply to jurisdiction of max number of political borders and executive branches
[[{'concept': 'Q1292279'}, {'concept': 'Q35798'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?l ) WHERE { { ?k property:P1001 ?g . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1292279 } UNION { ?k rdf:type ontology:Q35798 . ?g rdf:type ontology:Q15617994 . ?k property:P1001 ?g } } GROUP BY ?g } } . FILTER ( ?h = ?u ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:P1001 ?c . ?c rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q1292279 } UNION { ?m property:P1001 ?c . ?m rdf:type ontology:Q35798 . ?c rdf:type ontology:Q15617994 } } GROUP BY ?c } }
France
France apply to jurisdiction of max number of political borders and executive branches
France
action argmax
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type executive branch
[[{'concept': 'political border'}, {'concept': 'executive branch'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?u ) { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?l ) WHERE { { ?k property:applies_to_jurisdiction ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_border } UNION { ?k rdf:type ontology:executive_branch . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:applies_to_jurisdiction ?g } } GROUP BY ?g } } . FILTER ( ?h = ?u ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?h ) WHERE { { ?m property:applies_to_jurisdiction ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:political_border } UNION { ?m property:applies_to_jurisdiction ?c . ?m rdf:type ontology:executive_branch . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q142 Q17
P530
Q15617994
USER
Does Japan hold diplomatic relationship with that one ?
(Q142,P530,Q17)
action is_in
entity Q17
action find
entity Q142
relation P530
['Q142', 'P530', 'Q17']
ASK WHERE { resource:Q142 property:P530 resource:Q17 }
France Japan
action is_in
entity Japan
action find
entity France
relation diplomatic relation
['France', 'diplomatic relation', 'Japan']
ASK WHERE { resource:France property:diplomatic_relation resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q142,P530,Q17)
action is_in
entity Q17
action find
entity Q142
relation P530
[ANSWER]
['Q142', 'P530', 'Q17']
ASK WHERE { resource:Q142 property:P530 resource:Q17 }
Yes
action is_in
entity Japan
action find
entity France
relation diplomatic relation
['France', 'diplomatic relation', 'Japan']
ASK WHERE { resource:France property:diplomatic_relation resource:Japan }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q869 Q183 Q408
P530
Q1048835
USER
Does Thailand have ambassadorial relations with Germany and Australia ?
(Q869,P530,Q183) (Q869,P530,Q408)
action is_in
entity Q869
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q408
relation P530
['Q869', 'P530', 'Q183'] ['Q869', 'P530', 'Q408']
ASK WHERE { resource:Q869 property:P530 resource:Q408 . resource:Q869 property:P530 resource:Q183 }
Thailand Germany Australia
action is_in
entity Thailand
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity Australia
relation diplomatic relation
['Thailand', 'diplomatic relation', 'Germany'] ['Thailand', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Thailand property:diplomatic_relation resource:Australia . resource:Thailand property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q869,P530,Q183) (Q869,P530,Q408)
action is_in
entity Q869
action intersection
action find_reverse
entity Q183
relation P530
action find_reverse
entity Q408
relation P530
[ANSWER]
['Q869', 'P530', 'Q183'] ['Q869', 'P530', 'Q408']
ASK WHERE { resource:Q869 property:P530 resource:Q408 . resource:Q869 property:P530 resource:Q183 }
Yes
action is_in
entity Thailand
action intersection
action find_reverse
entity Germany
relation diplomatic relation
action find_reverse
entity Australia
relation diplomatic relation
['Thailand', 'diplomatic relation', 'Germany'] ['Thailand', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Thailand property:diplomatic_relation resource:Australia . resource:Thailand property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q15617994
USER
Which administrative territories are atleast 1 holidays and people a patron saint of ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action atleast
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 1
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?j ) WHERE { { ?n property:P417 ?b . ?n rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1445650 } UNION { ?n property:P417 ?b . ?b rdf:type ontology:Q502895 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?n } . FILTER ( ?j >= 1 ) }
action atleast
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
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?j ) WHERE { { ?n property:patron_saint ?b . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:holiday } UNION { ?n property:patron_saint ?b . ?b rdf:type ontology:common_name . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?j >= 1 ) }
[]
holiday common name designation for an administrative territorial entity
Q38 Q36 Q33
SYSTEM
Italy, Poland, Finland
Q102547 Q103832 Q46304 Q55000 Q55009 Q22497 Q103572 Q328037 Q20208 Q53164 Q99937 Q391326 Q36 Q111749 Q58491 Q46939 Q72069 Q51294 Q224131 Q47238 Q20067 Q17677 Q116604 Q41058 Q53524 Q10212 Q9044 Q52085 Q47342 Q45 Q52244 Q25198 Q111113 Q101067 Q80554 Q112143 Q42972 Q17674 Q51207 Q13470 Q9148 Q54742 Q295538 Q9000 Q13378 Q34742 Q101526 Q10307 Q112131 Q52019 Q10302 Q94644 Q17313 Q17312 Q9400 Q117368 Q390854 Q243371 Q223504 Q34603 Q17822 Q54587 Q42977 Q34360 Q40379 Q285089 Q42476 Q20247 Q53124 Q34684 Q111800 Q18206 Q48114 Q95095 Q128060 Q111966 Q39701 Q9370 Q242126 Q52200 Q9373 Q490416 Q100654 Q25009 Q157673 Q53235 Q48027 Q18377 Q53339 Q101651 Q176292 Q72728 Q340610 Q22173 Q55852 Q242692 Q123981 Q47368 Q279682 Q221900 Q101151 Q105045 Q43092 Q22571 Q123505 Q116731 Q278237 Q42942 Q40127 Q100829 Q104653 Q17862 Q17861 Q477537 Q286808 Q9031 Q53694 Q6558 Q10336 Q10337 Q10331 Q53496 Q17321 Q19918 Q53886 Q34324 Q53284 Q25179 Q42306 Q279247 Q267183 Q17816 Q52110 Q34547 Q51417 Q47585 Q17368 Q39403 Q47429 Q24997 Q295602 Q42885 Q18080 Q104963 Q489881 Q40937 Q51349 Q100973 Q34423 Q53177 Q242139 Q18400 Q22655 Q46168 Q51288 Q55104 Q123941 Q9432 Q270058 Q17777 Q123540 Q217391 Q17779 Q111972 Q33 Q265651 Q37 Q94588 Q25056 Q101057 Q38 Q9153 Q490851 Q101358 Q17686 Q54746 Q9076 Q23632 Q100365 Q51851 Q42167 Q20122 Q56210 Q9489 Q56063 Q80883 Q58844 Q117211 Q54521 Q81687 Q53992 Q224272 Q81138 Q42269 Q91199 Q50128 Q17659 Q124836 Q17851 Q17854 Q10207 Q17257 Q23217 Q23662 Q219641 Q10208 Q10209 Q53874 Q53877 Q18040 Q53879 Q81755 Q39985 Q42580 Q50157 Q47671 Q123763 Q73218 Q495734 Q42466 Q34406 Q241780 Q53136 Q2107 Q46320 Q51405 Q55956 Q128170 Q23669 Q103465 Q388085 Q102562 Q52213 Q42513 Q55890 Q9508 Q53225 Q42752 Q54708 Q54701 Q59234 Q105142 Q51473 Q279302 Q20166 Q18356 Q80753 Q22543 Q10338 Q72036 Q36198 Q17741 Q477423 Q23226 Q23224 Q72146 Q101187 Q101182 Q47093 Q91096 Q389292 Q80574 Q19209 Q22468 Q47500 Q25216 Q52282 Q53884 Q17290 Q101269 Q10328 Q101699 Q277474 Q252320 Q9352 Q128226 Q51304 Q50059 Q53882 Q34545 Q42259 Q493491 Q160262 Q100199 Q270968 Q9451 Q99962 Q99969 Q81622 Q20284 Q47371 Q40985 Q128134 Q48090 Q42413 Q8983 Q42553 Q100125 Q56081 Q56086 Q94754 Q56088 Q101423 Q18385 Q55053 Q51435 Q168670 Q42379 Q40851 Q278952 Q39884 Q53313 Q17666 Q52227 Q49605 Q9167 Q54736 Q9048 Q268291 Q54739 Q9169 Q53720 Q269134 Q102677 Q42983 Q42986 Q17695 Q20036 Q10284 Q52661 Q10281 Q17409 Q278199 Q52133 Q51861 Q18380 Q17404 Q51867 Q17691 Q117342 Q244185 Q266630 Q267134 Q56207 Q100394 Q100396 Q58690 Q492625 Q53967 Q478357 Q53961 Q9194 Q19279 Q19925 Q17244 Q24883 Q104007 Q53865 Q53864 Q13660 Q42456 Q99956 Q42450 Q25155 Q22039 Q42757 Q20507 Q46334 Q9019 Q478703 Q40951 Q52184 Q128161 Q490431 Q40408 Q101770 Q22079 Q17627 Q43031 Q17628 Q72527 Q9050 Q478906 Q18357 Q34972 Q103891 Q101519 Q20604 Q22155 Q55901 Q224048 Q41046 Q47341 Q46793 Q95066 Q52073 Q52072 Q100916 Q39783 Q182689 Q103155 Q100854 Q102780 Q58433 Q72009 Q391241 Q17757 Q17753 Q101205 Q9017 Q40539 Q116573 Q101194 Q101759 Q82766 Q17883 Q17287 Q34759 Q17283 Q17281 Q51181 Q20105 Q20103 Q390160 Q42812 Q40036 Q40033 Q100135 Q40216 Q42241 Q390865 Q17371 Q54500 Q54503 Q223513 Q52959 Q17833 Q20425 Q59225 Q42397 Q20197 Q23607 Q46935 Q58898 Q432678 Q116404 Q581 Q111906 Q59236 Q19948 Q53852 Q207448 Q9363 Q40690 Q20551 Q40699 Q22626 Q214691 Q55097 Q254139 Q55042 Q101382 Q123965 Q101388 Q128057 Q46693 Q51423 Q269788 Q339993 Q43049 Q120399 Q40967 Q40965 Q390609 Q34598 Q101702 Q17654 Q55284 Q257357 Q47835 Q72221 Q269943 Q55958 Q10361 Q51258 Q34440 Q117621 Q20386 Q111888 Q20028 Q9467 Q71832 Q10364 Q52125 Q266259 Q157720 Q50148 Q101148 Q388325 Q496878 Q17877 Q100141 Q58901 Q243022 Q270299 Q478346 Q6662 Q34702 Q42366 Q42192 Q95090 Q20095 Q10226 Q42298 Q9298 Q271236 Q100044 Q100040 Q17749 Q24918 Q177713 Q47125 Q34568 Q13657 Q42680 Q42723 Q491724 Q20517 Q42219 Q46293 Q40396 Q6244
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action atleast
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 1
[ANSWERS] are atleast 1 holidays and people a patron saint of
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?j ) WHERE { { ?n property:P417 ?b . ?n rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1445650 } UNION { ?n property:P417 ?b . ?b rdf:type ontology:Q502895 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?n } . FILTER ( ?j >= 1 ) }
Abetone Castelcovati Foza Ariano Irpino Cairano Meina Borgosatollo Villa Lagarina Monterosso Grana Clauzetto Cesenatico Pozzomaggiore Poland Seniga Carinaro Enego Comiziano Scerni Fara in Sabina Trissino Gaiola Spineto Scrivia Castelliri Galliavola Gagliato Quassolo Barone Canavese Marciano della Chiana Arzignano Portugal Zeri Olgiate Olona Brescello Foppolo Alfano Urago d'Oglio Cusano Milanino Solonghello Civitella Messer Raimondo Barletta Candiolo Soriano Calabro Orosei Alpignano Arezzo Arquà Polesine Rovetta Sparone Trenzano Manduria Sestriere Casalfiumanese Casal Cermelli Cartosio Ingria Sgurgola Ittireddu San Polo dei Cavalieri Casperia Abano Terme Mombaruzzo Campo Calabro Zelo Buon Persico Cartura Siziano Sestu Cappella de' Picenardi Narzole Cormons Battaglia Terme Cattolica Castelmagno Thiene Codigoro Campodimele Torriana Mello Front Castelnuovo di Porto Squinzano Frossasco Merì Curno Collobiano Bibbona Carlino Legnago Bosia Rigolato Terno d'Isola Lucito Tufino Talana Cavallirio Baselice Gerano Cupramontana Vigonovo Sesto Campano Pozzilli Grassobbio Longhena Meleti Pombia Agugliano Colfelice Spinete Lierna Gerola Alta Langhirano Gussago San Marzano Oliveto San Martino Alfieri Marianopoli Fiavè Banchette Satriano Belluno Valprato Soana Varisella Valgioie Belcastro Cassine Castiglione Falletto Grimaldi, Calabria Pozzonovo Moggio Udinese Quarona Bertonico Macchiagodena Carasco Isola d'Asti Alessano Bagnolo di Po Alba Adriatica Garda Gavi, Piedmont Borgarello Ramponio Verna Civiasco Mezzolombardo Isola Dovarese Massazza Leno Santa Marina Salina Zeme Cappelle sul Tavo Valmozzola Castelbaldo Montereale Valcellina Cerreto Laziale Alatri Vinzaglio Montegalda San Salvo Santa Lucia di Serino Chiaravalle, Marche Lombriasco Brugnato Castel Rocchero Arcevia Giuncugnano Castellero Verucchio Finland Cavedine Lithuania Borgo Tossignano Fobello Fiorano al Serio Italy Canischio Termini Imerese Palosco Tortona Stefanaconi Brandizzo Massiola Chiuduno Santeramo in Colle Dovera Lisio Regalbuto Montanaro Folignano Conca dei Marini San Gregorio Matese Roccasecca Scandale Serramezzana Santa Sofia d'Epiro Orvinio Nocera Inferiore Cusago Gaiole in Chianti Prata d'Ansidonia Sala Monferrato San Paolo di Jesi Roatto Roccaverano Prarostino Arquata Scrivia San Ferdinando di Puglia Omegna San Romano in Garfagnana Prascorsano Pratiglione Dipignano Fagnano Castello Candelo Figline Vegliaturo Torre Orsaia Brugherio Dairago Sulmona Citta' Mezzane di Sotto Castel Colonna Belforte del Chienti Alcara li Fusi Veroli Urbana Bellegra Romans d'Isonzo Wuppertal Chiampo Tocco da Casauria San Giorgio La Molara San Felice Circeo Pallanzeno Bagolino Sedilo Alseno Trepuzzi Liscate Castelvenere Nomaglio Bertiolo Crotta d'Adda Filandari Cessaniti Magliano di Tenna Manerba del Garda Valle Castellana Montenero Val Cocchiara Margarita Barolo Casalbuono Paruzzaro Vauda Canavese Cicciano Siligo Agliano Terme Campofranco Baceno Aurano Liveri Lallio Isso, Lombardy Anversa degli Abruzzi Abbadia San Salvatore Tramatza Aquara Caprauna Grignasco Dolcè Varallo Sesia Cirigliano Fuscaldo Brignano-Frascata Nembro Usseglio Valbondione Colle d'Anchise Pleinfeld Fenestrelle Terracina Torrebruna Campo di Giove Francavilla Marittima Vò Corte Palasio Castel di Lucio Caprarola Cenate Sopra Noli Marentino Barbata Blello Sant'Egidio del Monte Albino Paesana Tarzo Rocca Pietore Ponza, Lazio Marostica Noviglio Alice Superiore Settala Calcio, Lombardy Montegallo Ripatransone Castel Guelfo di Bologna Roccafluvione Ponte Nossa Briga Alta Mercogliano Castiglione Messer Raimondo Maccastorna Crespiatica Garlasco Castel del Giudice Albuzzano Povoletto Sardigliano Aulla Montecatini Terme Caprie San Gregorio d'Ippona Beinasco Carpasio Serra San Bruno Caravino Settingiano Lucinasco Pieve a Nievole Agnadello Grezzago Villadeati Envie Sangano San Costantino Albanese San Secondo di Pinerolo Morsasco Sant'Angelo Limosano Copertino Ceglie Messapica Boves Montemarzino Latiano Vignale Monferrato Santopadre Cadorago Sori, Liguria Borzonasca Nissoria Cologno al Serio Colzate Macerata Campania Basicò San Giorgio Albanese Maletto San Demetrio Corone Casalborgone Aversa Cavallerleone Acqui Terme Borgo Vercelli Cigole Cerzeto Cervicati Carbonia Motta Baluffi Sarsina Ripalta Guerina Motta de' Conti Ameno San Martino del Lago Torre Bormida Camisano Vicentino Baldissero Canavese Motta Sant'Anastasia Bema Salice Salentino Roccagorga Reitano San Gregorio nelle Alpi Villa di Serio Boca Orsara Bormida Casalmaiocco Ottiglio San Sebastiano al Vesuvio Bibiana Santa Venerina Bastia Mondovì Cogne Cerveno Roncola Trevi Casalvolone Dugenta Collalto Sabino Bregano Laglio Marano Vicentino Alzano Lombardo Castiglion Fibocchi Castelfranco di Sopra Salsomaggiore Terme Mel Sillano Monteverdi Marittimo Noceto Serravalle Pistoiese Alife, Campania Casoria Perfugas Bubbio Berzano di San Pietro Lurano Balangero Agrate Brianza Casalattico Lenna, Lombardy Villa d'Adda Montelupo Fiorentino Villafranca d'Asti Bosio Arvier Bosco Marengo Borgoratto Alessandrino Ari, Abruzzo Guarene Assisi Banari Capralba Tromello Cesiomaggiore Canonica d'Adda Sappada Morimondo Ittiri Gremiasco Cerenzia Cotronei Castel di Tora Bagnara di Romagna Montechiaro d'Asti Roddi Campofilone Massalengo Montaldo di Mondovì Macugnaga Lazise Sessa Aurunca Sant'Angelo Muxaro Anagni Canegrate San Clemente, Emilia-Romagna Monsampietro Morico Chiusa di Pesio Casole Bruzio Monreale Forno Canavese Forcola Vezza d'Alba Sesto Calende Sillavengo Magliano in Toscana San Sossio Baronia Levanto, Liguria Guardia Lombardi Piario Corinaldo Piazza Brembana Bassiano Caprino Veronese Bellante Santo Stefano al Mare Jerzu Esino Lario Carloforte Civo Romagnese Bultei Stienta Valbrembo Rocca Grimalda Sedini Caldonazzo Selva di Progno Marano di Napoli Ameglia San Giorgio del Sannio Vinovo Palena, Abruzzo Villafranca Padovana Viticuso Castel Ritaldi Riccione Entracque Meugliano Bacoli Vische Casarano Tiglieto Capoliveri Scanno, Abruzzo Gorno Siamaggiore Capaci Vesime Capriate San Gervasio Sparanise Morlupo Rocchetta di Vara Licodia Eubea Cesena Tribano Livraga San Donato Milanese Argenta, Emilia–Romagna Barasso Rivarolo Canavese Codogno Coazze Spotorno Castelnuovo Rangone Camposanto Azzano d'Asti Campertogno San Lorenzo Nuovo Avezzano Melara Lanusei Cumignano sul Naviglio Torlino Vimercati Sant'Agata di Militello Treiso Montanaso Lombardo Asigliano Veneto Limbiate Lodi
Italy, Poland and Finland are atleast 1 holidays and people a patron saint of
Italy Poland Finland
action atleast
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
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?j ) WHERE { { ?n property:patron_saint ?b . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:holiday } UNION { ?n property:patron_saint ?b . ?b rdf:type ontology:common_name . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?j >= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q184
P530
Q15617994
USER
Are Belarus known to have diplomatic connections with those ones ?
(Q184,P530,Q38) (Q184,P530,Q36) (Q184,P530,Q33)
action is_in
entity prev_answer
action find
entity Q184
relation P530
['Q184', 'P530', 'Q38'] ['Q184', 'P530', 'Q36'] ['Q184', 'P530', 'Q33']
ASK WHERE { VALUES ( ?g ) { ( resource:Q102547 ) ( resource:Q103832 ) ( resource:Q46304 ) } . resource:Q184 property:P530 ?g }
Belarus
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Italy'] ['Belarus', 'diplomatic relation', 'Poland'] ['Belarus', 'diplomatic relation', 'Finland']
ASK WHERE { VALUES ( ?g ) { ( resource:Abetone ) ( resource:Castelcovati ) ( resource:Foza ) } . resource:Belarus property:diplomatic_relation ?g }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q184,P530,Q38) (Q184,P530,Q36) (Q184,P530,Q33)
action is_in
entity prev_answer
action find
entity Q184
relation P530
[ANSWER]
['Q184', 'P530', 'Q38'] ['Q184', 'P530', 'Q36'] ['Q184', 'P530', 'Q33']
ASK WHERE { VALUES ( ?g ) { ( resource:Q102547 ) ( resource:Q103832 ) ( resource:Q46304 ) } . resource:Q184 property:P530 ?g }
Yes
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Italy'] ['Belarus', 'diplomatic relation', 'Poland'] ['Belarus', 'diplomatic relation', 'Finland']
ASK WHERE { VALUES ( ?g ) { ( resource:Abetone ) ( resource:Castelcovati ) ( resource:Foza ) } . resource:Belarus property:diplomatic_relation ?g }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1828035 Q5184619 Q42217
P17
Q15617994
USER
Is Lisburn situated in Creston School District and Castiglione d'Adda ?
(Q1828035,P17,Q5184619) (Q1828035,P17,Q42217)
action is_in
entity Q1828035
action intersection
action find_reverse
entity Q5184619
relation P17
action find_reverse
entity Q42217
relation P17
['Q1828035', 'P17', 'Q5184619'] ['Q1828035', 'P17', 'Q42217']
ASK WHERE { resource:Q1828035 property:P17 resource:Q5184619 . resource:Q1828035 property:P17 resource:Q42217 }
Lisburn Creston School District Castiglione d'Adda
action is_in
entity Lisburn
action intersection
action find_reverse
entity Creston School District
relation country
action find_reverse
entity Castiglione d'Adda
relation country
['Lisburn', 'country', 'Creston School District'] ['Lisburn', 'country', "Castiglione d'Adda"]
ASK WHERE { resource:Lisburn property:country resource:Creston_School_District . resource:Lisburn property:country resource:Castiglione_d'Adda }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1828035,P17,Q5184619) (Q1828035,P17,Q42217)
action is_in
entity Q1828035
action intersection
action find_reverse
entity Q5184619
relation P17
action find_reverse
entity Q42217
relation P17
[ANSWER]
['Q1828035', 'P17', 'Q5184619'] ['Q1828035', 'P17', 'Q42217']
ASK WHERE { resource:Q1828035 property:P17 resource:Q5184619 . resource:Q1828035 property:P17 resource:Q42217 }
No
action is_in
entity Lisburn
action intersection
action find_reverse
entity Creston School District
relation country
action find_reverse
entity Castiglione d'Adda
relation country
['Lisburn', 'country', 'Creston School District'] ['Lisburn', 'country', "Castiglione d'Adda"]
ASK WHERE { resource:Lisburn property:country resource:Creston_School_District . resource:Lisburn property:country resource:Castiglione_d'Adda }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q33 Q7493512 Q20
P47
Q15617994
USER
Does Sheldon Independent School District and Norway share a border with Finland ?
(Q33,P47,Q7493512) (Q33,P47,Q20)
action is_in
entity Q33
action intersection
action find_reverse
entity Q7493512
relation P47
action find_reverse
entity Q20
relation P47
['Q33', 'P47', 'Q7493512'] ['Q33', 'P47', 'Q20']
ASK WHERE { resource:Q33 property:P47 resource:Q7493512 . resource:Q33 property:P47 resource:Q20 }
Finland Sheldon Independent School District Norway
action is_in
entity Finland
action intersection
action find_reverse
entity Sheldon Independent School District
relation shares border with
action find_reverse
entity Norway
relation shares border with
['Finland', 'shares border with', 'Sheldon Independent School District'] ['Finland', 'shares border with', 'Norway']
ASK WHERE { resource:Finland property:shares_border_with resource:Sheldon_Independent_School_District . resource:Finland property:shares_border_with resource:Norway }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q33,P47,Q7493512) (Q33,P47,Q20)
action is_in
entity Q33
action intersection
action find_reverse
entity Q7493512
relation P47
action find_reverse
entity Q20
relation P47
[ANSWER]
['Q33', 'P47', 'Q7493512'] ['Q33', 'P47', 'Q20']
ASK WHERE { resource:Q33 property:P47 resource:Q7493512 . resource:Q33 property:P47 resource:Q20 }
NO and YES respectively
action is_in
entity Finland
action intersection
action find_reverse
entity Sheldon Independent School District
relation shares border with
action find_reverse
entity Norway
relation shares border with
['Finland', 'shares border with', 'Sheldon Independent School District'] ['Finland', 'shares border with', 'Norway']
ASK WHERE { resource:Finland property:shares_border_with resource:Sheldon_Independent_School_District . resource:Finland property:shares_border_with resource:Norway }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33
P463
Q484652
USER
What international organizations had Finland as their member ?
action filter_type
action find
entity Q33
relation P463
type Q484652
SELECT DISTINCT ?a WHERE { resource:Q33 property:P463 ?a . ?a rdf:type ontology:Q484652 }
Finland
action filter_type
action find
entity Finland
relation member of
type international organization
SELECT DISTINCT ?a WHERE { resource:Finland property:member_of ?a . ?a rdf:type ontology:international_organization }
[]
international organization
Q81299 Q42262 Q1065
SYSTEM
Organization for Security and Co-operation in Europe, European Space Agency, United Nations
Q81299 Q789769 Q1065 Q188822 Q42262 Q674182 Q146165 Q1043527
action filter_type
action find
entity Q33
relation P463
type Q484652
[ANSWERS] had Finland as their member
SELECT DISTINCT ?a WHERE { resource:Q33 property:P463 ?a . ?a rdf:type ontology:Q484652 }
Organization for Security and Co-operation in Europe Council of the Baltic Sea States United Nations Asian Development Bank European Space Agency Arctic Council Nordic Council Multilateral Investment Guarantee Agency
Organization for Security and Co-operation in Europe, European Space Agency and United Nations had Finland as their member
Organization for Security and Co-operation in Europe European Space Agency United Nations
action filter_type
action find
entity Finland
relation member of
type international organization
SELECT DISTINCT ?a WHERE { resource:Finland property:member_of ?a . ?a rdf:type ontology:international_organization }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P122
Q12737077 Q43229 Q15617994
USER
Which administrative territories have min number of occupations and organizations as the form of government ?
(c(Q15617994),P122,c(Q12737077)|c(Q43229))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action find_tuple_counts
relation P122
type Q15617994
type Q43229
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q12737077'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?a WHERE { { ?a property:P122 ?g . ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q12737077 } UNION { ?a property:P122 ?g . ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q43229 } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?i ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { { ?f property:P122 ?w . ?f rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q43229 } UNION { ?f property:P122 ?w . ?f rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q12737077 } } GROUP BY ?f } } }
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'occupation'}, {'concept': 'organization'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?a WHERE { { ?a property:basic_form_of_government ?g . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:occupation } UNION { ?a property:basic_form_of_government ?g . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:organization } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?i ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { { ?f property:basic_form_of_government ?w . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:organization } UNION { ?f property:basic_form_of_government ?w . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:occupation } } GROUP BY ?f } } }
[]
occupation organization designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q12737077)|c(Q43229))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action find_tuple_counts
relation P122
type Q15617994
type Q43229
[ANSWERS] have min number of occupations and organizations as the form of government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q12737077'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?a WHERE { { ?a property:P122 ?g . ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q12737077 } UNION { ?a property:P122 ?g . ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q43229 } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?i ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { { ?f property:P122 ?w . ?f rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q43229 } UNION { ?f property:P122 ?w . ?f rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q12737077 } } GROUP BY ?f } } }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy, Brazil and United States of America have min number of occupations and organizations as the form of government
Italy Brazil United States of America
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'occupation'}, {'concept': 'organization'}]]
SELECT DISTINCT ?a WHERE { FILTER ( ?c = ?v ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?a WHERE { { ?a property:basic_form_of_government ?g . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:occupation } UNION { ?a property:basic_form_of_government ?g . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:organization } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?i ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?f WHERE { { ?f property:basic_form_of_government ?w . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:organization } UNION { ?f property:basic_form_of_government ?w . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:occupation } } GROUP BY ?f } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with atmost 6 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 6
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 . ?b property:P530 ?v } GROUP BY ?v } . FILTER ( ?l <= 6 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 6
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?v } GROUP BY ?v } . FILTER ( ?l <= 6 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
149
Q702 Q804 Q800 Q419 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 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 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 6
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 . ?b property:P530 ?v } GROUP BY ?v } . FILTER ( ?l <= 6 ) }
Federated States of Micronesia Panama Costa Rica Peru Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal 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 Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
149
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 6
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?v } GROUP BY ?v } . FILTER ( ?l <= 6 ) }
[]