Simple Question (Direct)
Simple Question
Q11898995
P19
Q56061
USER
Where was Tytti Tuppurainen born ?
(Q11898995,P19,c(Q56061))
action filter_type
action find
entity Q11898995
relation P19
type Q56061
['Q11898995', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q11898995 property:P19 ?c }
Tytti Tuppurainen
action filter_type
action find
entity Tytti Tuppurainen
relation place of birth
type administrative territorial entity
['Tytti Tuppurainen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Tytti_Tuppurainen property:place_of_birth ?c }
[]
administrative territorial entity
Q47048
SYSTEM
Oulu
Q47048
(Q11898995,P19,c(Q56061))
action filter_type
action find
entity Q11898995
relation P19
type Q56061
Tytti Tuppurainen was born in [ANSWER]
['Q11898995', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . resource:Q11898995 property:P19 ?c }
Oulu
Tytti Tuppurainen was born in Oulu
Oulu
action filter_type
action find
entity Tytti Tuppurainen
relation place of birth
type administrative territorial entity
['Tytti Tuppurainen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . resource:Tytti_Tuppurainen property:place_of_birth ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11898995
P102
Q7210356
USER
Which party does that person belong to ?
(Q47048,P102,c(Q7210356))
action filter_type
action find
entity Q11898995
relation P102
type Q7210356
['Q47048', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q11898995 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Tytti Tuppurainen
action filter_type
action find
entity Tytti Tuppurainen
relation member of political party
type political organization
['Oulu', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Tytti_Tuppurainen property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q499029
SYSTEM
Social Democratic Party of Finland
Q499029
(Q47048,P102,c(Q7210356))
action filter_type
action find
entity Q11898995
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q47048', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q11898995 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Social Democratic Party of Finland
That person belongs to Social Democratic Party of Finland
Social Democratic Party of Finland
action filter_type
action find
entity Tytti Tuppurainen
relation member of political party
type political organization
['Oulu', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Tytti_Tuppurainen property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q499029 Q33
P17
Q15617994
USER
Is that political organization a part of Finland ?
(Q499029,P17,Q33)
action is_in
entity Q33
action find
entity Q499029
relation P17
['Q499029', 'P17', 'Q33']
ASK WHERE { resource:Q499029 property:P17 resource:Q33 }
Social Democratic Party of Finland Finland
action is_in
entity Finland
action find
entity Social Democratic Party of Finland
relation country
['Social Democratic Party of Finland', 'country', 'Finland']
ASK WHERE { resource:Social_Democratic_Party_of_Finland property:country resource:Finland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q499029,P17,Q33)
action is_in
entity Q33
action find
entity Q499029
relation P17
[ANSWER]
['Q499029', 'P17', 'Q33']
ASK WHERE { resource:Q499029 property:P17 resource:Q33 }
Yes
action is_in
entity Finland
action find
entity Social Democratic Party of Finland
relation country
['Social Democratic Party of Finland', 'country', 'Finland']
ASK WHERE { resource:Social_Democratic_Party_of_Finland property:country resource:Finland }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1754
P190
Q515 Q15617994
USER
How many cities and administrative territories are sister towns of Stockholm ?
(Q1754,P190,c(Q515)) (Q1754,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1754
relation P190
type Q515
action filter_type
action find
entity Q1754
relation P190
type Q15617994
['Q1754', 'P190', {'concept': 'Q515'}] ['Q1754', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { resource:Q1754 property:P190 ?d . ?d rdf:type ontology:Q515 } UNION { ?d rdf:type ontology:Q15617994 . resource:Q1754 property:P190 ?d } }
Stockholm
action count
action union
action filter_type
action find
entity Stockholm
relation sister city
type city
action filter_type
action find
entity Stockholm
relation sister city
type designation for an administrative territorial entity
['Stockholm', 'sister city', {'concept': 'city'}] ['Stockholm', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { resource:Stockholm property:sister_city ?d . ?d rdf:type ontology:city } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Stockholm property:sister_city ?d } }
[]
city designation for an administrative territorial entity
SYSTEM
6 cities and 1 administrative territories
Q3624 Q47094 Q19689 Q1899 Q1773 Q11194 Q3572
(Q1754,P190,c(Q515)) (Q1754,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1754
relation P190
type Q515
action filter_type
action find
entity Q1754
relation P190
type Q15617994
[ANSWER]
['Q1754', 'P190', {'concept': 'Q515'}] ['Q1754', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { resource:Q1754 property:P190 ?d . ?d rdf:type ontology:Q515 } UNION { ?d rdf:type ontology:Q15617994 . resource:Q1754 property:P190 ?d } }
Addis Ababa Bassano del Grappa Tirana Kyiv Riga Sarajevo Tunis
6 cities and 1 administrative territories
action count
action union
action filter_type
action find
entity Stockholm
relation sister city
type city
action filter_type
action find
entity Stockholm
relation sister city
type designation for an administrative territorial entity
['Stockholm', 'sister city', {'concept': 'city'}] ['Stockholm', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { resource:Stockholm property:sister_city ?d . ?d rdf:type ontology:city } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Stockholm property:sister_city ?d } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q499029 Q1757 Q5842298
P159
Q56061
USER
Does Social Democratic Party of Finland have headquarters located at Helsinki and Kolartan ?
(Q499029,P159,Q1757) (Q499029,P159,Q5842298)
action is_in
entity Q499029
action intersection
action find_reverse
entity Q1757
relation P159
action find_reverse
entity Q5842298
relation P159
['Q499029', 'P159', 'Q1757'] ['Q499029', 'P159', 'Q5842298']
ASK WHERE { resource:Q499029 property:P159 resource:Q1757 . resource:Q499029 property:P159 resource:Q5842298 }
Social Democratic Party of Finland Helsinki Kolartan
action is_in
entity Social Democratic Party of Finland
action intersection
action find_reverse
entity Helsinki
relation headquarters location
action find_reverse
entity Kolartan
relation headquarters location
['Social Democratic Party of Finland', 'headquarters location', 'Helsinki'] ['Social Democratic Party of Finland', 'headquarters location', 'Kolartan']
ASK WHERE { resource:Social_Democratic_Party_of_Finland property:headquarters_location resource:Helsinki . resource:Social_Democratic_Party_of_Finland property:headquarters_location resource:Kolartan }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q499029,P159,Q1757) (Q499029,P159,Q5842298)
action is_in
entity Q499029
action intersection
action find_reverse
entity Q1757
relation P159
action find_reverse
entity Q5842298
relation P159
[ANSWER]
['Q499029', 'P159', 'Q1757'] ['Q499029', 'P159', 'Q5842298']
ASK WHERE { resource:Q499029 property:P159 resource:Q1757 . resource:Q499029 property:P159 resource:Q5842298 }
YES and NO respectively
action is_in
entity Social Democratic Party of Finland
action intersection
action find_reverse
entity Helsinki
relation headquarters location
action find_reverse
entity Kolartan
relation headquarters location
['Social Democratic Party of Finland', 'headquarters location', 'Helsinki'] ['Social Democratic Party of Finland', 'headquarters location', 'Kolartan']
ASK WHERE { resource:Social_Democratic_Party_of_Finland property:headquarters_location resource:Helsinki . resource:Social_Democratic_Party_of_Finland property:headquarters_location resource:Kolartan }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6467442 Q1754
P1376 P495
Q15617994
USER
Which administrative territories have Stockholm as their capital or are the countries of origin of Labour Monthly ?
OR((Q1754,P1376,c(Q15617994)), (Q6467442,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1754
relation P1376
action find
entity Q6467442
relation P495
type Q15617994
{'OR': [['Q1754', 'P1376', {'concept': 'Q15617994'}], ['Q6467442', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1754 property:P1376 ?y } UNION { resource:Q6467442 property:P495 ?y } } . ?y rdf:type ontology:Q15617994 }
Labour Monthly Stockholm
action filter_type
action union
action find
entity Stockholm
relation capital of
action find
entity Labour Monthly
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Stockholm', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['Labour Monthly', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Stockholm property:capital_of ?y } UNION { resource:Labour_Monthly property:country_of_origin ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34 Q145
SYSTEM
Sweden, United Kingdom
Q34 Q145
OR((Q1754,P1376,c(Q15617994)), (Q6467442,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1754
relation P1376
action find
entity Q6467442
relation P495
type Q15617994
[ANSWERS] have Stockholm as their capital or are the countries of origin of Labour Monthly
{'OR': [['Q1754', 'P1376', {'concept': 'Q15617994'}], ['Q6467442', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1754 property:P1376 ?y } UNION { resource:Q6467442 property:P495 ?y } } . ?y rdf:type ontology:Q15617994 }
Sweden United Kingdom
Sweden and United Kingdom have Stockholm as their capital or are the countries of origin of Labour Monthly
Sweden United Kingdom
action filter_type
action union
action find
entity Stockholm
relation capital of
action find
entity Labour Monthly
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Stockholm', 'capital of', {'concept': 'designation for an administrative territorial entity'}], ['Labour Monthly', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Stockholm property:capital_of ?y } UNION { resource:Labour_Monthly property:country_of_origin ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q570125
P495
Q838948
USER
Did I Hired a Contract Killer originate in those administrative territories ?
(Q570125,P495,Q34) (Q570125,P495,Q145)
action is_in
entity prev_answer
action find
entity Q570125
relation P495
['Q570125', 'P495', 'Q34'] ['Q570125', 'P495', 'Q145']
ASK WHERE { VALUES ( ?f ) { ( resource:Q34 ) ( resource:Q145 ) } . resource:Q570125 property:P495 ?f }
I Hired a Contract Killer
action is_in
entity prev_answer
action find
entity I Hired a Contract Killer
relation country of origin
['I Hired a Contract Killer', 'country of origin', 'Sweden'] ['I Hired a Contract Killer', 'country of origin', 'United Kingdom']
ASK WHERE { VALUES ( ?f ) { ( resource:Sweden ) ( resource:United_Kingdom ) } . resource:I_Hired_a_Contract_Killer property:country_of_origin ?f }
[]
work of art
SYSTEM
YES
(Q570125,P495,Q34) (Q570125,P495,Q145)
action is_in
entity prev_answer
action find
entity Q570125
relation P495
[ANSWER]
['Q570125', 'P495', 'Q34'] ['Q570125', 'P495', 'Q145']
ASK WHERE { VALUES ( ?f ) { ( resource:Q34 ) ( resource:Q145 ) } . resource:Q570125 property:P495 ?f }
Yes
action is_in
entity prev_answer
action find
entity I Hired a Contract Killer
relation country of origin
['I Hired a Contract Killer', 'country of origin', 'Sweden'] ['I Hired a Contract Killer', 'country of origin', 'United Kingdom']
ASK WHERE { VALUES ( ?f ) { ( resource:Sweden ) ( resource:United_Kingdom ) } . resource:I_Hired_a_Contract_Killer property:country_of_origin ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q34 Q16 Q4258451
P530
Q1048835
USER
Does Sweden have diplomatic relations with Canada and Leninske ?
(Q34,P530,Q16) (Q34,P530,Q4258451)
action is_in
entity Q34
action intersection
action find_reverse
entity Q16
relation P530
action find_reverse
entity Q4258451
relation P530
['Q34', 'P530', 'Q16'] ['Q34', 'P530', 'Q4258451']
ASK WHERE { resource:Q34 property:P530 resource:Q16 . resource:Q34 property:P530 resource:Q4258451 }
Sweden Canada Leninske
action is_in
entity Sweden
action intersection
action find_reverse
entity Canada
relation diplomatic relation
action find_reverse
entity Leninske
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Canada'] ['Sweden', 'diplomatic relation', 'Leninske']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Canada . resource:Sweden property:diplomatic_relation resource:Leninske }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q34,P530,Q16) (Q34,P530,Q4258451)
action is_in
entity Q34
action intersection
action find_reverse
entity Q16
relation P530
action find_reverse
entity Q4258451
relation P530
[ANSWER]
['Q34', 'P530', 'Q16'] ['Q34', 'P530', 'Q4258451']
ASK WHERE { resource:Q34 property:P530 resource:Q16 . resource:Q34 property:P530 resource:Q4258451 }
YES and NO respectively
action is_in
entity Sweden
action intersection
action find_reverse
entity Canada
relation diplomatic relation
action find_reverse
entity Leninske
relation diplomatic relation
['Sweden', 'diplomatic relation', 'Canada'] ['Sweden', 'diplomatic relation', 'Leninske']
ASK WHERE { resource:Sweden property:diplomatic_relation resource:Canada . resource:Sweden property:diplomatic_relation resource:Leninske }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11898995 Q653143
P27
Q15617994
USER
Is Sulzbachtal the country of citizenship of Tytti Tuppurainen ?
(Q11898995,P27,Q653143)
action is_in
entity Q653143
action find
entity Q11898995
relation P27
['Q11898995', 'P27', 'Q653143']
ASK WHERE { resource:Q11898995 property:P27 resource:Q653143 }
Tytti Tuppurainen Sulzbachtal
action is_in
entity Sulzbachtal
action find
entity Tytti Tuppurainen
relation country of citizenship
['Tytti Tuppurainen', 'country of citizenship', 'Sulzbachtal']
ASK WHERE { resource:Tytti_Tuppurainen property:country_of_citizenship resource:Sulzbachtal }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q11898995,P27,Q653143)
action is_in
entity Q653143
action find
entity Q11898995
relation P27
[ANSWER]
['Q11898995', 'P27', 'Q653143']
ASK WHERE { resource:Q11898995 property:P27 resource:Q653143 }
No
action is_in
entity Sulzbachtal
action find
entity Tytti Tuppurainen
relation country of citizenship
['Tytti Tuppurainen', 'country of citizenship', 'Sulzbachtal']
ASK WHERE { resource:Tytti_Tuppurainen property:country_of_citizenship resource:Sulzbachtal }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q337567 Q1267889 Q56061
USER
Which administrative territories are located nearby min number of still waterss and waterways ?
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?y ) WHERE { { ?r property:P206 ?m . ?r rdf:type ontology:Q56061 . ?m rdf:type ontology:Q337567 } UNION { ?r property:P206 ?m . ?r rdf:type ontology:Q56061 . ?m rdf:type ontology:Q1267889 } } GROUP BY ?r } . FILTER ( ?y = ?x ) }
action argmin
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:still_waters ) ( ontology:waterway ) } } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?y ) WHERE { { ?r property:located_next_to_body_of_water ?m . ?r rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:still_waters } UNION { ?r property:located_next_to_body_of_water ?m . ?r rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:waterway } } GROUP BY ?r } . FILTER ( ?y = ?x ) }
[]
still waters waterway administrative territorial entity
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q165736 Q3579 Q991950 Q1721578 Q84 Q2003600 Q157478 Q1718 Q2752171 Q539767 Q305067 Q9248 Q3876 Q990253 Q898 Q1586529 Q3246724 Q493544 Q957593 Q3718 Q12273 Q3818 Q3711 Q23311 Q3238 Q4359610 Q3143983 Q41057 Q16650704 Q2207185 Q2222516 Q3844 Q770885 Q1395576 Q18682692 Q2047623 Q10014 Q643835 Q515728 Q321197 Q4083209 Q7054 Q25231 Q2335714 Q2454052 Q501661 Q501744 Q11882295 Q1939468 Q3549178 Q1520342 Q3150 Q18682889 Q16168559 Q10084 Q895123 Q1416753 Q846242 Q1083051 Q18808 Q622030 Q253741 Q985642 Q11974 Q548441 Q331556 Q369911 Q1309 Q991532 Q934511 Q4093 Q955992 Q144773 Q3659 Q1780116 Q1667345 Q2415951 Q987 Q2451654 Q6672525 Q11874170 Q577891 Q2943426 Q17151 Q15982011 Q13648690 Q175258 Q209176 Q1636296 Q1754096 Q746096 Q2135238 Q1521492 Q653025 Q387502 Q2284683 Q105342 Q38834 Q162857 Q1521199 Q1757 Q1025910 Q4201085 Q1022 Q769631 Q15377069 Q251091 Q571970 Q2987335 Q1685683 Q15241516 Q257034 Q2500974 Q2088134 Q5350973 Q1252635 Q9365 Q9361 Q47048 Q156325 Q90 Q1519942 Q3563897 Q7673494 Q986645 Q2441552 Q588293 Q501090 Q73049 Q486792 Q1610396 Q371532 Q3397397 Q956954 Q1113813 Q34820 Q9375247 Q2357495 Q1650017 Q1930 Q14621387 Q786111 Q2007261 Q1033978 Q2539726 Q2305394 Q20205325 Q17332337 Q597 Q73462 Q3183256 Q2287228 Q3929 Q3036324 Q328121 Q991661 Q1018010 Q20714928 Q185404 Q47164 Q810309 Q3897 Q93347 Q3748 Q11901685 Q365 Q5836 Q1020231 Q641390 Q1845104 Q572034 Q26362 Q624065 Q36433 Q11866294 Q2465220 Q2060910 Q617407 Q23800 Q1020776 Q19613124 Q3323 Q103255 Q2060859 Q8546656 Q2921491 Q473914 Q16015040 Q3026650 Q8818 Q478036 Q18923859 Q9270 Q2886833 Q15981916 Q1718608 Q2599767 Q1335 Q635806 Q208337 Q3761 Q1779522 Q2916660 Q968631 Q379531 Q24861 Q28721 Q1526933 Q793407 Q1009524 Q7018666 Q427708 Q160642 Q14935628 Q163091 Q2078223 Q185582 Q484799 Q14328 Q73221 Q9326 Q156717 Q573599 Q1520 Q1646181 Q925506 Q1776515 Q997407 Q2467 Q554655 Q3561 Q6465685 Q3021755 Q28218 Q4527424 Q41295 Q2861 Q131233 Q793 Q621483 Q2482545 Q13403152 Q5465 Q6477002 Q20730670 Q18682920 Q1614071 Q43070 Q932008 Q3703 Q12246 Q4975194 Q2059003 Q1963 Q37133 Q2069566 Q314367 Q1842 Q207998 Q3792 Q52437 Q2525207 Q740066 Q2598092 Q2983392 Q463937 Q997775 Q212096 Q986079 Q2280 Q550373 Q2174345 Q2627252 Q504544 Q3630 Q49149 Q8851 Q200783 Q988658 Q18682241 Q4070552 Q16636995 Q1165854 Q10509 Q5474003 Q755657 Q3832 Q239 Q12994 Q5476889 Q4083 Q282461 Q1454043 Q515229 Q1094123 Q733368 Q35178 Q15377091 Q995159 Q508998 Q2300996 Q656709 Q3037 Q2379952 Q2719861 Q3033 Q1004822 Q4119405 Q238803 Q932955 Q1908062 Q846188 Q542647 Q948468 Q145638 Q894535 Q1563 Q523651 Q1741 Q987797 Q987790 Q2543792 Q1748 Q210093 Q18682719 Q2335535 Q2677934 Q991274 Q2391779 Q3299785 Q85 Q15241507 Q533456 Q9536 Q849441 Q15068816 Q10707890 Q2090 Q2255057 Q3947670 Q2933890 Q966534 Q1487909 Q629786 Q2229853 Q737877 Q2103 Q2918470 Q73031 Q2543086 Q969531 Q1735 Q851034 Q3595479 Q1143278 Q14875773 Q984973 Q773280 Q2950738 Q2924158 Q19297212 Q3856 Q614919 Q1785679 Q36281 Q7481520 Q1000107 Q1442470 Q21060 Q5330523 Q14056 Q70 Q2021057 Q425780 Q3743068 Q1648515 Q1585348 Q831527 Q200036 Q1390387 Q2321706 Q12191 Q3674 Q651997 Q517053 Q5912898 Q992474 Q270 Q1957 Q109535 Q847085 Q105037 Q214843 Q2336499 Q23564 Q1519434 Q39178 Q40921 Q2225013 Q690 Q119446 Q1906235 Q3828 Q941967 Q285323 Q961068 Q537214 Q18681966 Q2684898 Q109386 Q2729544 Q14947347 Q301415 Q2160909 Q3051477 Q192098 Q15241652 Q26296883 Q18663090 Q5189288 Q649738 Q715 Q567332 Q4374268 Q49414 Q3001 Q21197 Q9310 Q1052027 Q736906 Q10717 Q1874 Q1129607 Q1018225 Q837211 Q180333 Q543904 Q592123 Q586112 Q990651 Q2578642 Q252466 Q239496 Q7107283 Q791602 Q959 Q2842582 Q437 Q390588 Q3932309 Q3551 Q1265670 Q384 Q8745 Q38807 Q2745332 Q213707 Q1770 Q41699 Q491999 Q858775 Q19613821 Q425786 Q865808 Q6751200 Q938379 Q2191422 Q2329846 Q3688 Q1780 Q1781 Q658902 Q2659563 Q1003576 Q2529554 Q2682753 Q3306 Q647543 Q11897598 Q4067724 Q914755 Q227064 Q1850 Q1070428 Q2893117 Q477232 Q244327 Q3780 Q7314172 Q1314479 Q1490863 Q840867 Q285778 Q1732099 Q2807 Q133123 Q4357920 Q35381 Q986387 Q259617 Q3825 Q19613231 Q865021 Q3407596 Q4405293 Q959517 Q5638429 Q2590944 Q4207520 Q183104 Q2238911 Q17315652 Q2225806 Q1025055 Q2424732 Q2538313 Q1330853 Q5379235 Q208143 Q806414 Q3733 Q593141 Q1189066 Q1785595 Q165486 Q3739 Q2637838 Q16015068 Q2787064 Q1823092 Q617 Q952497 Q181359 Q1243780 Q7230655 Q810092 Q19613854 Q492744 Q1012411 Q3854 Q15241991 Q19906849 Q2574529 Q4072448 Q155955 Q10400 Q34713 Q5068781 Q1545679 Q10690 Q5926907 Q915 Q16953999 Q311809 Q15682 Q1200892 Q161912 Q3028239 Q1997485 Q11889617 Q5493749 Q2007254 Q14945 Q2911365 Q1538830 Q632489 Q12047 Q2157144 Q724394 Q2267399 Q4347874 Q9347 Q2785515 Q671557 Q4454 Q1800099 Q9974 Q2292517 Q989288 Q987243 Q13640603 Q614706 Q2927534 Q276274 Q2449 Q1726 Q1624013 Q17483998 Q36526 Q503640 Q1792879 Q2511670 Q569804 Q1423660 Q345389 Q1729 Q1721184 Q3901 Q466046 Q2727978 Q2666506 Q3909 Q2931074 Q7056872 Q755389 Q1419813 Q1011866 Q61 Q62 Q736131 Q41572 Q306440 Q3882 Q1567437 Q3766 Q3889 Q9125 Q1861 Q15552182 Q1616324 Q1870405 Q868647 Q216939 Q2194010 Q5813 Q12439 Q83065 Q269 Q1794939 Q2392235 Q661700 Q767357 Q1947 Q2674551 Q1981987 Q162065 Q1591499 Q50960 Q2751941 Q2928585 Q676689 Q2498737 Q939609 Q49550 Q37806 Q770518 Q1533868 Q795623 Q79716 Q840681 Q2077402 Q2784834 Q2351343 Q985659 Q971550 Q930204 Q2713838 Q13400194 Q2868 Q10313 Q1886770 Q3640 Q1394778 Q5132825 Q2682566 Q647 Q40747 Q2087380 Q820949 Q649 Q3012 Q2423894 Q894955 Q2579332 Q504678 Q990527 Q2014445 Q187251 Q2948574 Q140147 Q990130 Q9939 Q427044 Q28848 Q3112541 Q8050719 Q598948 Q368275 Q79848 Q2413248 Q806799 Q34692 Q910997 Q766896 Q2830827 Q586 Q913649 Q585 Q8757 Q34370 Q954764 Q1734018 Q1669399 Q1764 Q16531502 Q630478 Q9279 Q3940 Q2236639 Q820024 Q220 Q2729387 Q602314 Q2704 Q1040 Q986675 Q1713141 Q579556 Q11900887 Q176749 Q14452 Q464955 Q508056 Q8826 Q100 Q3820 Q506700 Q6899495 Q11873187 Q36260 Q963894 Q36262 Q123076 Q2281721 Q2319224 Q569080 Q18386455 Q204234 Q787279 Q750760 Q19613699 Q3932 Q988100 Q1006998 Q719379 Q54898 Q353307 Q1025353 Q1572113 Q2432955 Q55630 Q7618827 Q4100 Q216 Q4914513 Q16016733 Q878809 Q4998230 Q683125 Q19612988 Q3726 Q57006 Q1742334 Q5674391 Q230406 Q1867127 Q615732 Q502398 Q2978763 Q222702 Q36600 Q36168 Q3114 Q956125 Q630334 Q773919 Q2051589 Q1553283 Q2409481 Q743521 Q1807728 Q1341 Q578026 Q1964137 Q503763 Q11901258 Q2355915 Q2084446 Q2303243 Q1531454 Q446232 Q1017 Q41547 Q4190 Q18399563 Q15241523 Q7823825 Q1552720 Q505601 Q1850580 Q2585002 Q14205508 Q1522881 Q670057 Q5646331 Q179385 Q1248930 Q1728043 Q1743660 Q991400 Q1085 Q1758944
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action argmin
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
[ANSWERS] are located nearby min number of still waterss and waterways
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?y ) WHERE { { ?r property:P206 ?m . ?r rdf:type ontology:Q56061 . ?m rdf:type ontology:Q337567 } UNION { ?r property:P206 ?m . ?r rdf:type ontology:Q56061 . ?m rdf:type ontology:Q1267889 } } GROUP BY ?r } . FILTER ( ?y = ?x ) }
Doesburg Tripoli Karczew Tagazar London Walton-on-Thames Lesozavodsk Düsseldorf Ardnacrusha Ivalo Gniew Baku Lilongwe Henley-on-Thames Omsk Rothneusiedl Bisham Makkum Den Oever Dakar Gijón Malabo Belgrade City of London Tegucigalpa El Pescadero Lekkerkerk Topeka Innokent'evka Terneuzen Sansané Haoussa Brazzaville Bergen aan Zee Nussdorf Kirkonkylä Strzyżów Kampen Arfurt Harburg-Wilhelmsburg Cieszyn Seymour Arm Dalnegorsk Svalbard Steeden Olney Schleswig Alert Metsäkylä Paravur Onari Turvey Jena Väli-Olhava Novozhatkovo Vlissingen Boumba Sitra Nieuw-Lekkerland Swanscombe Pyongyang Palos de la Frontera Grinzing Góra Kalwaria Las Palmas de Gran Canaria Portugalete Bosaso Athlone Maastricht Grays Papendrecht Glasgow Kobryn Zakroczym N'Djamena Cold Brayfield Marienwerder Whitchurch-on-Thames New Delhi Trentemoult Long Ditton Kätkäsuvanto East St. Louis Cayo Santa María Thessaloniki El Teso Taradei Novosil Ely Hulhumalé Weybridge North Shields East Tilbury Ghazaouet Bergambacht Świecie Mobridge Bolshoy Kamen Nuku'alofa Kourfeye Centre Great Barford Helsinki Maïné-Soroa Innishannon Stuttgart Drohiczyn Zellerfeld Athy Torgelow East Cowes Jean Marie River Alchan Kemble Richmond San José del Cabo El Centenario Doulsou Dushanbe Bishkek Oulu Juan Fernández Islands Paris Bromham Vyadhapura Taboiaki Imanan Tondikandia Sonning Castro Urdiales Hindeloopen Aranjuez Egham Hythe Lisala Radley Kaspi Come By Chance, Newfoundland and Labrador Santo Domingo Winniki Paesens Sidi Abdelaziz Ottawa Anna Kokorou N'Gonga Canvey Island Ashton Keynes Karesuvanto Hattian Dupatta Grand Forks, Yukon Lisbon Zaltbommel Opheusden Simmering Port Louis Pangbourne Greater Tokyo Area Callantsoog Sidi Barrani Port Famine Bundaberg Santa Monica Oberwurmbach Luanda Mostar Monrovia Virkkula Cologne Toledo Newport Pagnell Breskens Little Thetford Eggesin Lebus Molesey Porto Jeesiö Putney Fuvahmulah Eton Valletta Cabo San Lucas Alekseyevka Belgorod Alatyr Nieuw-Beijerland Hurley Katwijk aan Zee Ibiza Town Ariadnoye Lexmond Valencia Schoonhoven Busse Thimphu Basildon, Berkshire El Sargento Speising Yatakala Montevideo Runkel Koltur Accra Kolmane Brakel Corringham, Essex Heiligenstadt Albany Beeston Regis Hacking Ayourou Whalley Newnham Murren Chamberlain Salisbury Lune River Zwiesel Kelmscott Knoxville Marbella Santa Cruz de Tenerife Tiel Vientiane Khmelnytskyi Weilburg Astana Worcester Brok New Bradwell Bubaque Nassau Ronneburg Algiers La Ventana Dellys Baton Rouge Shuyskoye, Vologda Oblast Basseterre Rostock South Tarawa Zwolle Villmar Tortuguero Loenen aan de Vecht Cape Town Vuotso Glen Cove Yli-Olhava Dodewaard Donetsk Maarssen Bamako Huelva Brookville, Nova Scotia Bourne End Khartoum Mariupol Penzing Tunxdorf Luxembourg Fethiye Lomé Murano Ochten Kinderdijk Shorne Colliers Saint Thomas Palojoensuu Kastelorizo Castro Marim Municipality Minsk Godstow Rudolfsheim Katwijk aan den Rijn Ellingen Jakarta Nantucket Málaga Monschau Połaniec Mankila Arkhangelovka Glazovka Dargol Elche Köngäs Athlunkard Bangui Brussels Bruges Fox River, Nova Scotia Eschweiler IJmuiden Paesens-Moddergat Ngerulmud Rhoda Island Hoofdplaat Kuwait City Clausthal Ciechanowiec Marlow Caversham, Berkshire Nukunonu Kathmandu Moulsford Oost-Vlieland Göttingen Bumba, Democratic Republic of the Congo Nabih Saleh Maidenhead Scharsterbrug Matankari Wervershoof Méhana Carabane Kashira Bosso Havana St Mary Hoo Vienna Leixlip Inagh Youri Copenhagen Motril Tepasto Deest Puttershoek Kalamos Tamou Halat Nuaim Cairo Arkhipovka Cricklade Bad Doberan Saint John Norris Arm Olhava Nuremberg Iffley San Mauro Mare Stoneleigh Elleholm Sinder Wraysbury Velsen-Noord Termunten Bochum Rossum, Gelderland Kessel Blanchland Monster Innsbruck San Leandro Andrott Twickenham Spencer's Island Laleham Aumenau Waarde Bray Neuses Nicosia Atokos Sambéra Roseau Wolvercote Kijkduin Santoña Ouddorp Eastern Tickle Jan Mayen Bern Hindersön 's-Gravendeel Muonio Tounouga Harikanassou Djurgården Volos Fabidji Kingston upon Thames Nantes Niamey Alcobaça, Portugal De Koog Houghton, Cambridgeshire Taplow Warsaw Vologda Zutphen Heinenoord Callao Tipaza Higham, Kent Podgorica Carlton Port of Spain Honiara Thénia Delft De Cocksdorp Łomianki Dessau-Roßlau Peniche Staines-upon-Thames Chétimari Prenzlau Kaukonen Ter Heijde Nampho Rotterdam Centrum Beetz Marken Rodaun Ellewoutsdijk Oymyakon Busse Deventer Ylikiiminki Crowmarsh Gifford Alto Douro Heilbronn Annopol Mapledurham Ramsberg am Brombachsee Paramaribo Chișinău Dili Cayo Largo del Sur Almonte Georgetown Odessa Cookham St Neots Scheveningen Foča Bagdad, Tamaulipas Medmenham Amini Kozienice Purley on Thames Treuchtlingen Sheringham Osney Awala-Yalimapo Vladivostok Ameide Ljubljana Metković Nieuw-Haamstede Rabat Dungass Skopje Vigo Suva Villa Las Estrellas Grímsey Tallinn Castries Andijk Dartford Bichura 's-Gravenzande Birni N'Gaouré Manoka Samarai Vingt Cinq Sandford-on-Thames Nouakchott Bratislava Budapest Otley Little Wittenham Say Old Windsor Werkendam Panama City Arrecife Tikkaperä Anuchino Dogo Zoutelande Phnom Penh Chertsey Beit Ummar Aktobe Gorinchem Freetown Reposaari Sorbon Haoussa Gaden bei Pförring Rudnaya Pristan Datchet Twillingate Madrid Patras Kuttura Colombo Cárdenas Wasserburg am Inn Libreville Antonovka Birchington-on-Sea Kennington, Oxfordshire Fobbing Koygolo Hafslundsøy Reimerswaal Kazakevichevo Feldkirch Kumta Siikajoenkylä Sassoumbroum Kruiningen Zuilichem Wacha Vilsandi Ennore Wigan Bandé Conakry Philip Point Cires Kourteye Kempston Bissau Vlissingen-Oost Venyukovo Long Wittenham Liboré Padua Letterkenny Talavera de la Reina Dorchester on Thames Port Greville Unterwurmbach Bogoslovka Mijas Culham Bujumbura Nizhnie Luzhki Novorossiyka Stanford-le-Hope Aurovka Kuybyshev Almería Salzburg Chalk, Kent Shepperton Cardiff Hubbards, Nova Scotia Perm Daloloia Group Sidi Daoud Cádiz Dessa Solec Kujawski Greenhithe Littleport Raattama Fraserville, Nova Scotia N'Dounga Merseburg Borssele Gothèye Niulakita Mügeln Almere Haven Poros Krimpen aan de Lek Emäsalo Malé West-Terschelling Brackley Khabarovsk Wytham Weesp Skikda Yankton Kollo Banevurovo Anzourou Allhallows Wolverton Mogadishu Munich Yampupata Ettling Port Moresby Gunzenhausen Canning Town Tima Wyszogród Hütteldorf Łochów Erfurt Kahlenbergerdorf Moroni Salé Karwar Panaeati Island Maseru Termunterzijl North Stoke, Oxfordshire Athenry Roatán Tillabéri Washington, D.C. San Francisco Alblasserdam Mykolaiv Abbeyfeale Manama Hadersdorf-Weidlingau Damascus Maputo Winterthur Bangkok Tikhmenevo Egmond aan Zee Lorrha Southport Essaouira Sunbury-on-Thames Canary Islands Detroit Leicester Tashkent Kwaya Tanda Sankt Andreasberg Caravela Juba West Tilbury Neuwaldegg Dishoek Havelse Demmin South Stoke, Oxfordshire Burnt Islands, Newfoundland and Labrador Gravesend Dorney Lechlade Maó-Mahón Port Vila Boumerdès Godmanchester Oud-Beijerland Whittier Kinsale Aldeburgh Dreumel Benson, Oxfordshire Ciechocinek West Thurrock Wells-next-the-Sea Vaghena Island Dornbach Lima Donostia/San Sebastián Malawa Ankara Falmey Cliffe, Kent Clifton Hampden Rennes Pierre Northfleet Gougane Barra Moscow Ulm Funafala Boubon Appleford-on-Thames Berwick-upon-Tweed Diffa Bath, Netherlands Vestmannaeyjar Champ d'Asile Brest Hook of Holland Huizen Guilladjé Saint Paul Vuren Ydrefors Wargrave Spetses Southampton Cayo Romano Bankilaré Kingston Wyszków Gaya Remenham Bonn Wijk aan Zee Oslo A Coruña Rotterdam Thames Ditton Karma Killorglin Reykjavík Baryshevo Rixensart Bandar Seri Begawan Victoria Oosterdijk, Enkhuizen Kupiškis Rome Huisduinen Ruo Pescara Karlsruhe Gorouol Juliusplate Labasa Venetpalo Villingili Easter Island Windsor Filingué Palma Boston Beirut Ueckermünde Mongewell Kuivaniemi Apia Kilrush St. John's Palmyra Atoll Teddington Goring-on-Thames Koipsi Canoe Island Milton Keynes Stony Stratford Sliedrecht Beloyarovo São Tomé Wallingford Sutton Courtenay Sachs Harbour San Cristóbal de La Laguna Addlestone Cadzand-Bad Útila Isleworth Novi Sad Stone, Kent Baden-Baden Vilnius Binsey, Oxfordshire Orlinoye Bitinkodji Burcot, Oxfordshire Ustronie Morskie Abaykan Banjul Emmerich am Rhein Kiota Hartford, Cambridgeshire Zurich, Friesland Lobsing Breukelen Oranje, Drenthe Clearwater Beach Tarifa The Hague Bridgetown Canberra Kouré Bad Berka Aunu'u Streatley, Berkshire Gueskérou Little Thurrock Scarborough Samhah Tolyatti Kleszczele Namaro Pappenheim Vihiluoto Czyżew Arzew Shiplake Glin Petten Aachen St. George's Passau Argunskoye Abramovka Too Good Arm Guanaja Wassenaar Hambleden Brockham Barra de Potosí Killaloe, County Clare Birgitz Hampton Wick Greenwich Bishop's Waltham Sheremetyevo Kirtachi Puerto Barrios Prague Rottumeroog
Prague, Moscow and Madrid are located nearby min number of still waterss and waterways
Prague Moscow Madrid
action argmin
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?x ) { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:still_waters ) ( ontology:waterway ) } } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?y ) WHERE { { ?r property:located_next_to_body_of_water ?m . ?r rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:still_waters } UNION { ?r property:located_next_to_body_of_water ?m . ?r rdf:type ontology:administrative_territorial_entity . ?m rdf:type ontology:waterway } } GROUP BY ?r } . FILTER ( ?y = ?x ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q52028 Q1754
P190
Q515
USER
Which cities are twin towns of Stockholm or Chiang Mai ?
OR((Q1754,P190,c(Q515)), (Q52028,P190,c(Q515)))
action filter_type
action union
action find
entity Q1754
relation P190
action find
entity Q52028
relation P190
type Q515
{'OR': [['Q1754', 'P190', {'concept': 'Q515'}], ['Q52028', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1754 property:P190 ?g } UNION { resource:Q52028 property:P190 ?g } } . ?g rdf:type ontology:Q515 }
Chiang Mai Stockholm
action filter_type
action union
action find
entity Stockholm
relation sister city
action find
entity Chiang Mai
relation sister city
type city
{'OR': [['Stockholm', 'sister city', {'concept': 'city'}], ['Chiang Mai', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Stockholm property:sister_city ?g } UNION { resource:Chiang_Mai property:sister_city ?g } } . ?g rdf:type ontology:city }
[]
city
Q3624 Q182852 Q3572 Q19689 Q1899 Q819613 Q1773 Q11194
SYSTEM
Addis Ababa, Kunming, Tunis, Tirana, Kyiv, Uozu, Riga, Sarajevo
Q3624 Q182852 Q3572 Q19689 Q1899 Q819613 Q1773 Q11194
OR((Q1754,P190,c(Q515)), (Q52028,P190,c(Q515)))
action filter_type
action union
action find
entity Q1754
relation P190
action find
entity Q52028
relation P190
type Q515
[ANSWERS] are twin towns of Stockholm or Chiang Mai
{'OR': [['Q1754', 'P190', {'concept': 'Q515'}], ['Q52028', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1754 property:P190 ?g } UNION { resource:Q52028 property:P190 ?g } } . ?g rdf:type ontology:Q515 }
Addis Ababa Kunming Tunis Tirana Kyiv Uozu Riga Sarajevo
Addis Ababa, Kunming, Tunis, Tirana, Kyiv, Uozu, Riga and Sarajevo are twin towns of Stockholm or Chiang Mai
Addis Ababa Kunming Tunis Tirana Kyiv Uozu Riga Sarajevo
action filter_type
action union
action find
entity Stockholm
relation sister city
action find
entity Chiang Mai
relation sister city
type city
{'OR': [['Stockholm', 'sister city', {'concept': 'city'}], ['Chiang Mai', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Stockholm property:sister_city ?g } UNION { resource:Chiang_Mai property:sister_city ?g } } . ?g rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q849439
P159
Q515 Q43229 Q1269299
USER
How many cities are the head office for lesser number of organizations or business organizations located than Kopřivnice ?
(c(Q43229)|c(Q1269299),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q43229
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action count
action filter_multi_types
action find_reverse
entity Q849439
relation P159
type Q43229
type Q1269299
[[{'concept': 'Q43229'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?s WHERE { { ?z property:P159 ?s . ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q1269299 } UNION { ?z property:P159 ?s . ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q43229 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { { ?x rdf:type ontology:Q43229 } UNION { ?x rdf:type ontology:Q1269299 } } . ?x property:P159 resource:Q849439 } } . FILTER ( ?k < ?t ) }
Kopřivnice
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type organization
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action count
action filter_multi_types
action find_reverse
entity Kopřivnice
relation headquarters location
type organization
type type of business entity
[[{'concept': 'organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?s WHERE { { ?z property:headquarters_location ?s . ?s rdf:type ontology:city . ?z rdf:type ontology:type_of_business_entity } UNION { ?z property:headquarters_location ?s . ?s rdf:type ontology:city . ?z rdf:type ontology:organization } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { { ?x rdf:type ontology:organization } UNION { ?x rdf:type ontology:type_of_business_entity } } . ?x property:headquarters_location resource:Kopřivnice } } . FILTER ( ?k < ?t ) }
[]
city organization type of business entity
SYSTEM
120
Q213278 Q835227 Q318047 Q609350 Q27860 Q209785 Q766168 Q2427117 Q273880 Q653389 Q853821 Q637913 Q696388 Q1017251 Q8131 Q83786 Q505208 Q374477 Q181276 Q317834 Q192271 Q592065 Q216077 Q507846 Q178878 Q390413 Q4348183 Q179608 Q213263 Q13630 Q386635 Q4346 Q838660 Q243859 Q8247 Q646805 Q188082 Q460829 Q270704 Q167109 Q15734 Q207408 Q316841 Q237699 Q1209 Q330007 Q1936067 Q5285 Q693237 Q72990 Q657642 Q641491 Q665097 Q385591 Q124375 Q2180 Q850332 Q389562 Q850344 Q62723 Q820496 Q646834 Q427557 Q844138 Q820725 Q645567 Q658058 Q824009 Q3955 Q6829 Q8156 Q14440 Q1379299 Q1856 Q497341 Q242874 Q492366 Q326956 Q368929 Q210661 Q386322 Q3866 Q496405 Q183584 Q5869 Q508591 Q830411 Q75091 Q146317 Q502209 Q5784 Q273798 Q270814 Q57944 Q189761 Q189769 Q184998 Q696643 Q819603 Q158523 Q168648 Q3931 Q696412 Q1205932 Q823927 Q386661 Q1019956 Q25475 Q786762 Q542154 Q733979 Q508670 Q842923 Q92277 Q59132 Q329754 Q721163 Q390817 Q187812 Q1088790
(c(Q43229)|c(Q1269299),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q43229
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action count
action filter_multi_types
action find_reverse
entity Q849439
relation P159
type Q43229
type Q1269299
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?s WHERE { { ?z property:P159 ?s . ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q1269299 } UNION { ?z property:P159 ?s . ?s rdf:type ontology:Q515 . ?z rdf:type ontology:Q43229 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { { ?x rdf:type ontology:Q43229 } UNION { ?x rdf:type ontology:Q1269299 } } . ?x property:P159 resource:Q849439 } } . FILTER ( ?k < ?t ) }
Kodaira Ineu Narashino Kawanishi Jayapura Ichikawa Nagykáta Mníšek pod Brdy Beppu Nobeoka Mizunami Tōgane Toyooka Nová Paka Palembang Shimla Ouarzazate Ashikaga Szolnok Kokubunji City Guiyang Ginowan Jiujiang Sebiș Békéscsaba Tomakomai Athkatla Nanning Tama City Olbia Hikone Waren (Müritz) Chino Abiko Biratnagar Nanto Český Krumlov Matsusaka Třebíč Eger Izumi Vác Karlovo Aizuwakamatsu Free Hanseatic City of Bremen Kunitachi City Smržovka Tarlac Chitose Jincheng Villány Kakamigahara Minoh Ōmura Hódmezővásárhely Malolos Tagawa Inazawa Sakado General Trias Kōnan Asaka Ya'an Ryūgasaki Nayoro Törökbálint Wakō City Sayama Weimar Speyer Bandar Lampung Iquique Smyrna Malaybalay Xianyang Koganei City Norden Uji Jindřichův Hradec Musashino Ōtawara Dodoma Qujing Lanzhou Lhasa Police nad Metují Körmend Benxi Veszprém Hōfu Lhokseumawe Narita Ishinomaki Annaberg-Buchholz Szekszárd Salgótarján Kaposvár Kashiba Munakata Ehingen Sopron Brandenburg an der Havel Izumi Takizawa Higashine Fujisawa Moravské Budějovice Batumi Hroznětín Koronadal Eniwa Chișineu-Criș Pomáz Jilin City Jiangmen Kiyose City Itō Ichinoseki Dunaújváros Zsámbék
120
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type organization
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action count
action filter_multi_types
action find_reverse
entity Kopřivnice
relation headquarters location
type organization
type type of business entity
[[{'concept': 'organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) ?s WHERE { { ?z property:headquarters_location ?s . ?s rdf:type ontology:city . ?z rdf:type ontology:type_of_business_entity } UNION { ?z property:headquarters_location ?s . ?s rdf:type ontology:city . ?z rdf:type ontology:organization } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { { { ?x rdf:type ontology:organization } UNION { ?x rdf:type ontology:type_of_business_entity } } . ?x property:headquarters_location resource:Kopřivnice } } . FILTER ( ?k < ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q19689
P159
Q515 Q43229 Q1269299
USER
And what about Tirana?
(c(Q43229)|c(Q1269299),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q43229
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action count
action filter_multi_types
action find_reverse
entity Q19689
relation P159
type Q43229
type Q1269299
[[{'concept': 'Q43229'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P159 resource:Q19689 . { VALUES ( ?x ) { ( ontology:Q43229 ) ( ontology:Q1269299 ) } . ?l rdf:type ?x } } } . FILTER ( ?f < ?h ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:Q43229 ) ( ontology:Q1269299 ) } } GROUP BY ?n } }
Tirana
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type organization
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action count
action filter_multi_types
action find_reverse
entity Tirana
relation headquarters location
type organization
type type of business entity
[[{'concept': 'organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:headquarters_location resource:Tirana . { VALUES ( ?x ) { ( ontology:organization ) ( ontology:type_of_business_entity ) } . ?l rdf:type ?x } } } . FILTER ( ?f < ?h ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:organization ) ( ontology:type_of_business_entity ) } } GROUP BY ?n } }
[]
city organization type of business entity
SYSTEM
497
Q386691 Q944051 Q496702 Q3572 Q10127 Q643878 Q1711 Q10124 Q213278 Q841296 Q873835 Q3974 Q34412 Q703158 Q835227 Q849439 Q11736 Q1000069 Q852018 Q318047 Q1000060 Q460835 Q60037 Q278877 Q857256 Q569907 Q217432 Q827041 Q86536 Q860647 Q686775 Q4024 Q732851 Q499493 Q840888 Q10393 Q25282 Q609350 Q664895 Q41283 Q27860 Q3806 Q58401 Q3624 Q42651 Q209785 Q360326 Q58273 Q838652 Q68862 Q695895 Q646818 Q335444 Q212494 Q385982 Q52607 Q766168 Q774952 Q2427117 Q392692 Q59173 Q273880 Q320943 Q734416 Q861246 Q985465 Q14932 Q7473516 Q71266 Q846338 Q816728 Q696777 Q58570 Q1009095 Q653389 Q1019083 Q20934 Q41474 Q853821 Q57951 Q174091 Q59100 Q637913 Q734520 Q653372 Q38968 Q169127 Q622620 Q696388 Q3994 Q1000029 Q1017251 Q147738 Q1624 Q373023 Q1629 Q74957 Q653446 Q8131 Q362959 Q210493 Q3926 Q11462 Q3214 Q83786 Q505208 Q605256 Q374477 Q5838 Q181276 Q16520 Q220445 Q330409 Q317834 Q192271 Q58710 Q719 Q375651 Q69060 Q75961 Q3069 Q592065 Q3104 Q389515 Q394453 Q175197 Q216077 Q2910 Q321778 Q535534 Q68695 Q461020 Q1410 Q507846 Q375097 Q695930 Q9085 Q5088 Q178878 Q390413 Q203027 Q2966 Q331577 Q4348183 Q179608 Q1467 Q213263 Q425492 Q2865 Q851411 Q607625 Q13630 Q57719 Q496072 Q198370 Q73073 Q1000073 Q12245 Q117676 Q16959 Q386635 Q194087 Q10389 Q30340 Q23430 Q291745 Q629849 Q986070 Q4346 Q515573 Q8854 Q838660 Q243859 Q8247 Q694308 Q646805 Q182378 Q235 Q188082 Q1889017 Q161176 Q79535 Q460829 Q167668 Q270704 Q167109 Q2509609 Q459787 Q15734 Q209683 Q163888 Q207030 Q207408 Q877941 Q316841 Q6602 Q873583 Q237699 Q1757191 Q1209 Q3904 Q330007 Q1936067 Q615138 Q373101 Q14819 Q5285 Q14182 Q75026 Q104036 Q693237 Q72990 Q7568 Q44244 Q92324 Q657642 Q1000033 Q694317 Q2100 Q502486 Q56759 Q43433 Q641491 Q7027 Q57931 Q3857 Q426130 Q606212 Q155975 Q242108 Q3915 Q75110 Q460812 Q665097 Q174461 Q385591 Q1017806 Q17182 Q124375 Q2180 Q392624 Q75203 Q3075 Q239597 Q850332 Q861621 Q177149 Q389562 Q850344 Q62723 Q496319 Q820496 Q646834 Q3185 Q427557 Q844138 Q423371 Q820725 Q3004 Q26600 Q2092152 Q740853 Q645567 Q207876 Q384926 Q2978 Q860659 Q385779 Q2973 Q518992 Q34261 Q1953 Q373564 Q137271 Q1010158 Q1473 Q658058 Q1852569 Q1478 Q14821 Q824009 Q817965 Q3958 Q57970 Q3955 Q198266 Q425415 Q2079 Q2773 Q6829 Q8156 Q14440 Q404599 Q42007 Q1379299 Q1856 Q3787 Q497341 Q844052 Q916156 Q4007 Q242874 Q694154 Q7070 Q3826 Q492366 Q696407 Q58210 Q182852 Q214942 Q68481 Q838672 Q374511 Q4174 Q847565 Q386651 Q317847 Q1826 Q200077 Q47916 Q80484 Q58576 Q328605 Q71247 Q75336 Q326956 Q243293 Q3126 Q571051 Q3042 Q157835 Q3046 Q594275 Q368929 Q2936 Q372791 Q463171 Q2749 Q502407 Q170454 Q211243 Q210661 Q736897 Q496080 Q217698 Q386322 Q187861 Q207311 Q11194 Q3852 Q485581 Q485583 Q2119 Q869027 Q206872 Q390792 Q5972 Q1720 Q1643 Q1645 Q329996 Q11443 Q855059 Q7033 Q57906 Q11444 Q3866 Q34405 Q496405 Q1723 Q2844 Q11725 Q208863 Q427265 Q470369 Q1863 Q2209 Q2200 Q533241 Q359990 Q16506 Q1013864 Q76010 Q999916 Q42622 Q633996 Q185684 Q59095 Q72778 Q360235 Q3167 Q183584 Q187136 Q5869 Q508591 Q570937 Q59223 Q328651 Q17189 Q830411 Q1019675 Q851680 Q740863 Q75091 Q3014 Q634022 Q189823 Q242882 Q40626 Q242885 Q146317 Q825166 Q502209 Q5784 Q273798 Q187821 Q270814 Q20921 Q107401 Q57944 Q986082 Q189761 Q189769 Q57948 Q2795 Q236197 Q72877 Q954569 Q57866 Q2880 Q488134 Q2706 Q132997 Q184998 Q5217 Q696643 Q269634 Q285488 Q819603 Q851155 Q210628 Q158523 Q168648 Q3838 Q850676 Q551658 Q2833 Q20073 Q990352 Q3935 Q7003 Q3936 Q3931 Q3933 Q3919 Q3751 Q59218 Q3200 Q696412 Q844852 Q41278 Q171943 Q1205932 Q823927 Q386661 Q1019956 Q386668 Q25475 Q523956 Q328619 Q786762 Q4060 Q71339 Q542154 Q1530 Q733979 Q508670 Q66485 Q58422 Q1844 Q2900 Q857285 Q58584 Q1000101 Q842923 Q92277 Q80989 Q59132 Q873596 Q329754 Q721163 Q390817 Q187812 Q125604 Q2999 Q16666 Q1088790
(c(Q43229)|c(Q1269299),P159,c(Q515))
action count
action less
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q43229
action find_reverse_tuple_counts
relation P159
type Q515
type Q1269299
action count
action filter_multi_types
action find_reverse
entity Q19689
relation P159
type Q43229
type Q1269299
[ANSWER]
[[{'concept': 'Q43229'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P159 resource:Q19689 . { VALUES ( ?x ) { ( ontology:Q43229 ) ( ontology:Q1269299 ) } . ?l rdf:type ?x } } } . FILTER ( ?f < ?h ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:Q43229 ) ( ontology:Q1269299 ) } } GROUP BY ?n } }
Niiza City Horní Jiřetín Goshogawara Tunis Tangerang Settsu Potsdam Cilegon Kodaira Příbram Tomioka Landshut Foshan Velké Meziříčí Ineu Kopřivnice Tianjin Lovosice Izumisano Narashino Humpolec Marugame Zalaegerszeg Český Těšín Hasuda Baotou Port Harcourt Beroun Komae City Seki Fuchū Frankfurt (Oder) Mioveni Seto Ina Bogor Danang Kawanishi Uherský Brod Gwangju Jayapura Tübingen Shijiazhuang Addis Ababa Wuxi Ichikawa Tongling Taizhou Nakano Longyan Urasoe Towada Itami Akishima City Herend Mar del Plata Nagykáta Matsubara Mníšek pod Brdy Šumperk Huizhou Beppu Matsudo Tsuruoka Nagaokakyō Rakovník Langen (Hessen) Tokyo Yichang Suwa Kyōtanabe Nisshin Handan Otrokovice Nobeoka Napajedla Incheon Kingstown Mizunami Marienberg Changsha Shantou Tōgane Isehara Higashihiroshima Liuzhou Chitila Tōkai Toyooka Kempten Kraslice Nová Paka Saint Helier Pasig Weihai Zamboanga City Anshan Tsuchiura Palembang Xinyu Yantai Pretoria Surabaya Cottbus Shimla Ouarzazate Shimada Ashikaga Kabul Szolnok Busan Kuching Ústí nad Orlicí Kokubunji City Guiyang Langfang Saginaw Valašské Meziříčí Xining Biñan Bottrop Ginowan Koblenz Kariya Žďár nad Sázavou Kunovice Jiujiang Ludwigshafen Hodonín Hohhot Quanzhou Imabari Gibraltar Sebiș Tiszaújváros Hirakawa Mandaluyong Durgapur Békéscsaba Tomakomai Tsu Heidelberg Abrud Athkatla Nanning Cebu City Tama City Luzhou Kassel Imizu Tamási Olbia Xuzhou Fujinomiya Zibo Yuncheng Pelhřimov Stanley Viseu Ürümqi Hikone Hirosaki Bandung Zhengzhou Ulaanbaatar Ílhavo Hatvan Chrudim Waren (Müritz) Hanzhong Las Piñas Chino Abiko Biratnagar Habikino Nanto Putrajaya Monaco Český Krumlov Mandaue Fukushima Fort Smith Matsusaka Liepāja Třebíč Eger Sunchales Iloilo City Izumi Tokoname Ageo Ziyang Vác Echizen Karlovo Strasbourg Kashiwara Aizuwakamatsu Krásná Lípa Free Hanseatic City of Bremen Mbabane Kunitachi City Smržovka Soběslav Rizhao Freiberg Tarlac Banjarmasin Fushun Ventspils Chitose Jincheng Yogyakarta Santa Fe Tonghua Villány Lanškroun Chōshi Duisburg Mobara Olongapo Chandigarh Kakamigahara Straubing Taizhou Wilhelmshaven Mianyang Fremantle Kutná Hora Otaru Antananarivo Dandong Naruto Minoh Ranchi Ōmura Nové Sedlo Parañaque Hódmezővásárhely Malolos Štětí Liaoyang Fürth Neratovice Tagawa Nankoku Obihiro Inazawa Sakado General Trias Kashihara Kōnan Asaka Hildesheim Ya'an Ryūgasaki Ștei Nayoro Ingolstadt Fukuoka Velešín Szigetszentmiklós Törökbálint Yamaguchi Ōgaki Regensburg Gyōda Tendō Darmstadt Călan Port-au-Prince Yerevan Liaocheng Kota Kinabalu Letohrad Davao City Wakō City Týnec nad Sázavou Caloocan Coburg Sayama Ikeda Neubrandenburg Changzhou Weimar Zhuzhou Panzhihua Leipzig Braunschweig Speyer Bandar Lampung Iquique Luohe Szombathely Smyrna Malaybalay Abuja Xianyang Nakatsugawa Ghimbav Rosenheim Koganei City Moriguchi Eisenach Muscat Norden Hakusan Jinhua Kunming Kazincbarcika Fuzhou Okaya Oyama Emden Hanyū City Iwata Inagi Tagbilaran Morioka Lucknow Patna Xingtai Iizuka Jingzhou Chaoyang Uji Sekondi-Takoradi Erlangen Tsubame Offenbach am Main Zaporizhzhya Pforzheim General Santos Jindřichův Hradec Oldenburg Jining Handa Augsburg Kiyosu Agartala Yinchuan Musashino Hatsukaichi Kadoma Weifang Ōtawara Wollongong Suzuka Sarajevo Worms Aveiro Anan Mannheim Tsurugashima Ajka Kanuma Medan Mainz Taguig Cagayan de Oro Ōdate Kediri Sakaide Nordhausen Yangzhou Madiun Dodoma Jingdezhen Qujing Batangas City Brasília Chongqing Hachiōji City Yibin Kolín Andorra la Vella Roxas Tuguegarao Shimotsuma Wuhu České Budějovice Hluk Santa Rosa Vysoké Mýto Suzhou Kameoka Hefei Zhuhai Taiyuan Ma'anshan Siegen Lanzhou Luoyang Lhasa Police nad Metují Ordos City Zhongshan Yachiyo Pasay Körmend Nové Město nad Metují Kazo Česká Lípa Benxi Wolfsburg Kiryū Haikou Nishi-Tōkyō City Tacloban Mitaka City Veszprém Izumo Hōfu Lhokseumawe Narita Tatabánya Ishinomaki Daejeon Sivas Annaberg-Buchholz Litvínov Szekszárd Salgótarján Aue Chemnitz Hino City Datong Vyškov Yancheng Hamm Ontario Bremerhaven Florianópolis Kaposvár Bacolod Kashiba Tachikawa City Iligan Munakata Kasai Machida City Ehingen Sopron Kinshasa Blansko Vila Nova de Famalicão Freiburg im Breisgau Hohenstein-Ernstthal Kizugawa Windhoek Dijon Bamberg Brandenburg an der Havel Celle Gaborone Praia Dongguan Salzgitter Izumi Ueda Ulsan Nanchang Takizawa Higashine Fujisawa Moravské Budějovice Daitō Batumi Auerbach in der Oberpfalz Noda Hroznětín Hürth Xiaogan Koronadal Baghdad Eniwa Chișineu-Criș Jaipur Tangshan Vaduz Quito Kitamoto Baoding Vlašim Pomáz Jilin City Bhopal Jiangmen Niimi Kiyose City Itō Ichinoseki Dunaújváros Găești Würzburg Nanjing Zsámbék
497
action count
action less
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type organization
action find_reverse_tuple_counts
relation headquarters location
type city
type type of business entity
action count
action filter_multi_types
action find_reverse
entity Tirana
relation headquarters location
type organization
type type of business entity
[[{'concept': 'organization'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:headquarters_location resource:Tirana . { VALUES ( ?x ) { ( ontology:organization ) ( ontology:type_of_business_entity ) } . ?l rdf:type ?x } } } . FILTER ( ?f < ?h ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ?d . VALUES ( ?d ) { ( ontology:organization ) ( ontology:type_of_business_entity ) } } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1489 Q1754
P190
Q56061
USER
Which administrative territories are twin towns of Stockholm or Mexico City ?
OR((Q1754,P190,c(Q56061)), (Q1489,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1754
relation P190
action find
entity Q1489
relation P190
type Q56061
{'OR': [['Q1754', 'P190', {'concept': 'Q56061'}], ['Q1489', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { ?m property:P190 ?t . VALUES ( ?m ) { ( resource:Q1754 ) ( resource:Q1489 ) } } . ?t rdf:type ontology:Q56061 }
Mexico City Stockholm
action filter_type
action union
action find
entity Stockholm
relation sister city
action find
entity Mexico City
relation sister city
type administrative territorial entity
{'OR': [['Stockholm', 'sister city', {'concept': 'administrative territorial entity'}], ['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?m property:sister_city ?t . VALUES ( ?m ) { ( resource:Stockholm ) ( resource:Mexico_City ) } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q34820 Q1770 Q597 Q3820 Q406 Q3711 Q16555 Q65 Q226 Q13670
SYSTEM
Some of them are Santo Domingo, Tallinn, Lisbon, Beirut, Istanbul, Belgrade, Houston, Los Angeles, Nuuk, Syracuse
Q1757 Q1754 Q1022 Q35178 Q3110 Q1490 Q3130 Q1770 Q1297 Q10704 Q226 Q65 Q1829 Q34820 Q51103 Q1524 Q1748 Q41211 Q1335 Q1563 Q1489 Q3630 Q3306 Q33935 Q585 Q64 Q13670 Q5582862 Q85 Q3856 Q406 Q1764 Q23564 Q174 Q216 Q172 Q2868 Q8678 Q2807 Q597 Q956 Q1555 Q159273 Q3711 Q1491 Q3820 Q171632 Q16555
OR((Q1754,P190,c(Q56061)), (Q1489,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1754
relation P190
action find
entity Q1489
relation P190
type Q56061
[ANSWERS] are twin towns of Stockholm or Mexico City
{'OR': [['Q1754', 'P190', {'concept': 'Q56061'}], ['Q1489', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { ?m property:P190 ?t . VALUES ( ?m ) { ( resource:Q1754 ) ( resource:Q1489 ) } } . ?t rdf:type ontology:Q56061 }
Helsinki Stockholm Stuttgart Kuwait City San Salvador Tokyo Sydney Tallinn Chicago Tórshavn Nuuk Los Angeles Kaliningrad Santo Domingo Cali Athens Copenhagen San Juan Montevideo Havana Mexico City Jakarta Panama City Tel Aviv Oslo Berlin Syracuse Cusco Cairo Nicosia Istanbul Reykjavík Podgorica São Paulo Vilnius Toronto Lima Rio de Janeiro Madrid Lisbon Beijing Guatemala City Arequipa Belgrade La Paz Beirut Maracaibo Houston
Santo Domingo, Tallinn, Lisbon, Beirut, Istanbul, Belgrade, Houston, Los Angeles, Nuuk and Syracuse are twin towns of Stockholm or Mexico City
Santo Domingo Tallinn Lisbon Beirut Istanbul Belgrade Houston Los Angeles Nuuk Syracuse
action filter_type
action union
action find
entity Stockholm
relation sister city
action find
entity Mexico City
relation sister city
type administrative territorial entity
{'OR': [['Stockholm', 'sister city', {'concept': 'administrative territorial entity'}], ['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?m property:sister_city ?t . VALUES ( ?m ) { ( resource:Stockholm ) ( resource:Mexico_City ) } } . ?t rdf:type ontology:administrative_territorial_entity }
[]