Simple Question (Direct)
Simple Question
Q5563036
P39
Q12737077
USER
Which occupation was a position for which Lennart Axelsson was appointed ?
(Q5563036,P39,c(Q12737077))
action filter_type
action find
entity Q5563036
relation P39
type Q12737077
['Q5563036', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5563036 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Lennart Axelsson
action filter_type
action find
entity Lennart Axelsson
relation position held
type occupation
['Lennart Axelsson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Lennart_Axelsson property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q10655178
SYSTEM
Member of the Riksdag
Q10655178
(Q5563036,P39,c(Q12737077))
action filter_type
action find
entity Q5563036
relation P39
type Q12737077
[ANSWER] was a position for which Lennart Axelsson was appointed
['Q5563036', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q5563036 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Member of the Riksdag
Member of the Riksdag was a position for which Lennart Axelsson was appointed
Member of the Riksdag
action filter_type
action find
entity Lennart Axelsson
relation position held
type occupation
['Lennart Axelsson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Lennart_Axelsson property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5563036
P102
Q7210356
USER
Which political organization is that person a member of ?
(Q10655178,P102,c(Q7210356))
action filter_type
action find
entity Q5563036
relation P102
type Q7210356
['Q10655178', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q5563036 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Lennart Axelsson
action filter_type
action find
entity Lennart Axelsson
relation member of political party
type political organization
['Member of the Riksdag', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Lennart_Axelsson property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
political organization
Q105112
SYSTEM
Swedish Social Democratic Party
Q105112
(Q10655178,P102,c(Q7210356))
action filter_type
action find
entity Q5563036
relation P102
type Q7210356
[ANSWER] is that person a member of
['Q10655178', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?m WHERE { resource:Q5563036 property:P102 ?m . ?m rdf:type ontology:Q7210356 }
Swedish Social Democratic Party
Swedish Social Democratic Party is that person a member of
Swedish Social Democratic Party
action filter_type
action find
entity Lennart Axelsson
relation member of political party
type political organization
['Member of the Riksdag', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?m WHERE { resource:Lennart_Axelsson property:member_of_political_party ?m . ?m rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q114559 Q5563036
P27 P17
Q15617994
USER
Which administrative territories are Lennart Axelsson an inhabitant of or are Medal in memory of Russo-Turkish War 1877–78 present in ?
OR((Q5563036,P27,c(Q15617994)), (Q114559,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5563036
relation P27
action find
entity Q114559
relation P17
type Q15617994
{'OR': [['Q5563036', 'P27', {'concept': 'Q15617994'}], ['Q114559', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5563036 property:P27 ?u } UNION { resource:Q114559 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Medal in memory of Russo-Turkish War 1877–78 Lennart Axelsson
action filter_type
action union
action find
entity Lennart Axelsson
relation country of citizenship
action find
entity Medal in memory of Russo-Turkish War 1877–78
relation country
type designation for an administrative territorial entity
{'OR': [['Lennart Axelsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Medal in memory of Russo-Turkish War 1877–78', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Lennart_Axelsson property:country_of_citizenship ?u } UNION { resource:Medal_in_memory_of_Russo-Turkish_War_1877–78 property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q34
SYSTEM
Romania, Sweden
Q218 Q34
OR((Q5563036,P27,c(Q15617994)), (Q114559,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5563036
relation P27
action find
entity Q114559
relation P17
type Q15617994
[ANSWERS] are Lennart Axelsson an inhabitant of or are Medal in memory of Russo-Turkish War 1877–78 present in
{'OR': [['Q5563036', 'P27', {'concept': 'Q15617994'}], ['Q114559', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q5563036 property:P27 ?u } UNION { resource:Q114559 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Romania Sweden
Romania and Sweden are Lennart Axelsson an inhabitant of or are Medal in memory of Russo-Turkish War 1877–78 present in
Romania Sweden
action filter_type
action union
action find
entity Lennart Axelsson
relation country of citizenship
action find
entity Medal in memory of Russo-Turkish War 1877–78
relation country
type designation for an administrative territorial entity
{'OR': [['Lennart Axelsson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Medal in memory of Russo-Turkish War 1877–78', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Lennart_Axelsson property:country_of_citizenship ?u } UNION { resource:Medal_in_memory_of_Russo-Turkish_War_1877–78 property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q2031291
USER
How many administrative territories did lesser number of literary works or releases originate than that administrative territory ?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
designation for an administrative territorial entity literary work release
Comparative|Count over More/Less|Mult. entity type|Clarification
Q218
SYSTEM
Did you mean Romania ?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Did you mean Romania ?
Romania
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
0
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
0
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q3305213 Q17638008
USER
Which occupations are expressed in atmost 5 paintings and game equipment ?
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
value 5
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:Q17638008 . ?g rdf:type ontology:Q12737077 . ?q property:P180 ?g } UNION { ?g rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q3305213 . ?q property:P180 ?g } } GROUP BY ?g } . FILTER ( ?a <= 5 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
value 5
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:game_equipment . ?g rdf:type ontology:occupation . ?q property:depicts ?g } UNION { ?g rdf:type ontology:occupation . ?q rdf:type ontology:painting . ?q property:depicts ?g } } GROUP BY ?g } . FILTER ( ?a <= 5 ) }
[]
occupation painting game equipment
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q4991371 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q2730732 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q3305213)|c(Q17638008),P180,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
value 5
[ANSWERS] are expressed in atmost 5 paintings and game equipment
[[{'concept': 'Q3305213'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:Q17638008 . ?g rdf:type ontology:Q12737077 . ?q property:P180 ?g } UNION { ?g rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q3305213 . ?q property:P180 ?g } } GROUP BY ?g } . FILTER ( ?a <= 5 ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner soldier goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor equestrian courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are expressed in atmost 5 paintings and game equipment
farmer nurse tailor
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
value 5
[[{'concept': 'painting'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { { ?q rdf:type ontology:game_equipment . ?g rdf:type ontology:occupation . ?q property:depicts ?g } UNION { ?g rdf:type ontology:occupation . ?q rdf:type ontology:painting . ?q property:depicts ?g } } GROUP BY ?g } . FILTER ( ?a <= 5 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q34
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories have a diplomatic relationship with Sweden ?
(Q34,P530,c(Q15617994)) (Q34,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q34
relation P530
type Q15617994
action filter_type
action find
entity Q34
relation P530
type Q1048835
['Q34', 'P530', {'concept': 'Q15617994'}] ['Q34', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Sweden
action count
action union
action filter_type
action find
entity Sweden
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
['Sweden', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
5
Q928 Q16 Q408 Q38 Q183
(Q34,P530,c(Q15617994)) (Q34,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q34
relation P530
type Q15617994
action filter_type
action find
entity Q34
relation P530
type Q1048835
[ANSWER]
['Q34', 'P530', {'concept': 'Q15617994'}] ['Q34', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Philippines Canada Australia Italy Germany
5
action count
action union
action filter_type
action find
entity Sweden
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Sweden
relation diplomatic relation
type political territorial entity
['Sweden', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9592
P112
Q15619164
USER
What is the name of the founder of Roman Catholic Church ?
(Q9592,P112,c(Q15619164))
action filter_type
action find
entity Q9592
relation P112
type Q15619164
['Q9592', 'P112', {'concept': 'Q15619164'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15619164 . resource:Q9592 property:P112 ?q }
Roman Catholic Church
action filter_type
action find
entity Roman Catholic Church
relation founder
type abstract being
['Roman Catholic Church', 'founder', {'concept': 'abstract being'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:abstract_being . resource:Roman_Catholic_Church property:founder ?q }
[]
abstract being
Q302
SYSTEM
Jesus Christ
Q302
(Q9592,P112,c(Q15619164))
action filter_type
action find
entity Q9592
relation P112
type Q15619164
The name of the founder of Roman Catholic Church is to [ANSWER]
['Q9592', 'P112', {'concept': 'Q15619164'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15619164 . resource:Q9592 property:P112 ?q }
Jesus Christ
The name of the founder of Roman Catholic Church is to Jesus Christ
Jesus Christ
action filter_type
action find
entity Roman Catholic Church
relation founder
type abstract being
['Roman Catholic Church', 'founder', {'concept': 'abstract being'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:abstract_being . resource:Roman_Catholic_Church property:founder ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q701632 Q1752346 Q12737077
USER
How many occupations did atleast 1 municipal councils and assemblies appoint ?
(c(Q12737077),P748,c(Q701632)|c(Q1752346))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?v WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } } GROUP BY ?v } . FILTER ( ?h >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?v WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:municipal_council ) ( ontology:assembly ) } } GROUP BY ?v } . FILTER ( ?h >= 1 ) }
[]
municipal council assembly occupation
SYSTEM
27
Q20748656 Q20890913 Q21371106 Q21013169 Q15305714 Q20872382 Q20872273 Q842386 Q19056310 Q890030 Q20891385 Q796593 Q21384866 Q20194364 Q21383592 Q7574264 Q20859388 Q20867550 Q20872296 Q3409203 Q327948 Q1370482 Q20872339 Q26209358 Q20992515 Q26721218 Q628102
(c(Q12737077),P748,c(Q701632)|c(Q1752346))
action count
action atleast
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?v WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } } GROUP BY ?v } . FILTER ( ?h >= 1 ) }
municipal executive of Zoetermeer municipal executive of Eindhoven municipal executive of Amersfoort municipal executive of The Hague Prime Minister of Libya municipal executive of Coevorden municipal executive of Boxmeer Prime Minister of Russia President of Botswana State President of South Africa municipal executive of Deventer President of Malta municipal executive of Rotterdam municipal executive of Amsterdam municipal executive of Haarlem Speaker of the Hellenic Parliament municipal executive of Mierlo municipal executive of Gorinchem municipal executive of Almere President of Greece President of Israel President of Cuba municipal executive of Woerden municipal executive of Warffum municipal executive of Utrecht municipal executive of Almere President of Nauru
27
action count
action atleast
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type assembly
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?v WHERE { ?w rdf:type ?u . VALUES ( ?u ) { ( ontology:municipal_council ) ( ontology:assembly ) } } GROUP BY ?v } . FILTER ( ?h >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34
P85
Q484692
USER
What is the anthem for Sweden ?
(Q34,P85,c(Q484692))
action filter_type
action find
entity Q34
relation P85
type Q484692
['Q34', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?z WHERE { resource:Q34 property:P85 ?z . ?z rdf:type ontology:Q484692 }
Sweden
action filter_type
action find
entity Sweden
relation anthem
type hymn
['Sweden', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?z WHERE { resource:Sweden property:anthem ?z . ?z rdf:type ontology:hymn }
[]
hymn
Q133261
SYSTEM
Du gamla, du fria
Q133261
(Q34,P85,c(Q484692))
action filter_type
action find
entity Q34
relation P85
type Q484692
The anthem for Sweden is sang [ANSWER]
['Q34', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?z WHERE { resource:Q34 property:P85 ?z . ?z rdf:type ontology:Q484692 }
Du gamla, du fria
The anthem for Sweden is sang Du gamla, du fria
Du gamla, du fria
action filter_type
action find
entity Sweden
relation anthem
type hymn
['Sweden', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?z WHERE { resource:Sweden property:anthem ?z . ?z rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5237
Q484692
USER
And how about Republic of North Ossetia-Alania?
(Q5237,P85,c(Q484692))
action filter_type
action find
entity Q5237
relation P85
type Q484692
['Q5237', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?a WHERE { resource:Q5237 property:P85 ?a . ?a rdf:type ontology:Q484692 }
Republic of North Ossetia-Alania
action filter_type
action find
entity Republic of North Ossetia-Alania
relation anthem
type hymn
['Republic of North Ossetia-Alania', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?a WHERE { resource:Republic_of_North_Ossetia-Alania property:anthem ?a . ?a rdf:type ontology:hymn }
[]
hymn
Q1063994
SYSTEM
National Anthem of the Republic of North Ossetia–Alania
Q1063994
(Q5237,P85,c(Q484692))
action filter_type
action find
entity Q5237
relation P85
type Q484692
[ANSWER]
['Q5237', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?a WHERE { resource:Q5237 property:P85 ?a . ?a rdf:type ontology:Q484692 }
National Anthem of the Republic of North Ossetia–Alania
National Anthem of the Republic of North Ossetia–Alania
action filter_type
action find
entity Republic of North Ossetia-Alania
relation anthem
type hymn
['Republic of North Ossetia-Alania', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?a WHERE { resource:Republic_of_North_Ossetia-Alania property:anthem ?a . ?a rdf:type ontology:hymn }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P85
Q484692 Q161243
USER
Which hymns are the national anthems of more number of dependent territories than that hymn ?
(c(Q161243),P85,c(Q484692))
action greater
action find_reverse_tuple_counts
relation P85
type Q484692
type Q161243
action count
action filter_type
action find
entity Q1063994
relation P85
type Q484692
[{'concept': 'Q161243'}, 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ontology:Q484692 . resource:Q1063994 property:P85 ?b } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P85 ?c . ?c rdf:type ontology:Q484692 . ?k rdf:type ontology:Q161243 } GROUP BY ?c } }
action greater
action find_reverse_tuple_counts
relation anthem
type hymn
type dependent territory
action count
action filter_type
action find
entity National Anthem of the Republic of North Ossetia–Alania
relation anthem
type hymn
[{'concept': 'dependent territory'}, 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ontology:hymn . resource:National_Anthem_of_the_Republic_of_North_Ossetia–Alania property:anthem ?b } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:anthem ?c . ?c rdf:type ontology:hymn . ?k rdf:type ontology:dependent_territory } GROUP BY ?c } }
[]
hymn dependent territory
Q81534 Q161539
SYSTEM
Kimi Ga Yo, The Brabançonne
Q81534 Q161539
(c(Q161243),P85,c(Q484692))
action greater
action find_reverse_tuple_counts
relation P85
type Q484692
type Q161243
action count
action filter_type
action find
entity Q1063994
relation P85
type Q484692
[ANSWERS] are the national anthems of more number of dependent territories than that hymn
[{'concept': 'Q161243'}, 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ontology:Q484692 . resource:Q1063994 property:P85 ?b } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:P85 ?c . ?c rdf:type ontology:Q484692 . ?k rdf:type ontology:Q161243 } GROUP BY ?c } }
Kimi Ga Yo The Brabançonne
Kimi Ga Yo and The Brabançonne are the national anthems of more number of dependent territories than that hymn
Kimi Ga Yo The Brabançonne
action greater
action find_reverse_tuple_counts
relation anthem
type hymn
type dependent territory
action count
action filter_type
action find
entity National Anthem of the Republic of North Ossetia–Alania
relation anthem
type hymn
[{'concept': 'dependent territory'}, 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ontology:hymn . resource:National_Anthem_of_the_Republic_of_North_Ossetia–Alania property:anthem ?b } } . FILTER ( ?x > ?q ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?x ) WHERE { ?k property:anthem ?c . ?c rdf:type ontology:hymn . ?k rdf:type ontology:dependent_territory } GROUP BY ?c } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P85
Q15617994 Q161243
USER
How many administrative territories and dependent territories have that hymn as their anthem ?
(c(Q15617994),P85,Q161539) (c(Q161243),P85,Q161539) (c(Q15617994),P85,Q81534) (c(Q161243),P85,Q81534) (c(Q15617994),P85,Q161539) (c(Q161243),P85,Q161539)
[{'concept': 'Q15617994'}, 'P85', 'Q161539'] [{'concept': 'Q161243'}, 'P85', 'Q161539'] [{'concept': 'Q15617994'}, 'P85', 'Q81534'] [{'concept': 'Q161243'}, 'P85', 'Q81534'] [{'concept': 'Q15617994'}, 'P85', 'Q161539'] [{'concept': 'Q161243'}, 'P85', 'Q161539']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q541947 resource:Q161539 } UNION { ?y property:Q541947 resource:Q161539 } UNION { ?z property:Q541947 resource:Q81534 } UNION { ?y property:Q541947 resource:Q81534 } UNION { ?z property:Q541947 resource:Q161539 } UNION { ?y property:Q541947 resource:Q161539 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q161243 }
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'The Brabançonne'] [{'concept': 'dependent territory'}, 'anthem', 'The Brabançonne'] [{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'Kimi Ga Yo'] [{'concept': 'dependent territory'}, 'anthem', 'Kimi Ga Yo'] [{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'The Brabançonne'] [{'concept': 'dependent territory'}, 'anthem', 'The Brabançonne']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:anthem resource:The_Brabançonne } UNION { ?y property:anthem resource:The_Brabançonne } UNION { ?z property:anthem resource:Kimi_Ga_Yo } UNION { ?y property:anthem resource:Kimi_Ga_Yo } UNION { ?z property:anthem resource:The_Brabançonne } UNION { ?y property:anthem resource:The_Brabançonne } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:dependent_territory }
[]
designation for an administrative territorial entity dependent territory
Quantitative|Count|Mult. entity type|Clarification
Q161539
SYSTEM
Did you mean The Brabançonne ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q541947 resource:Q161539 } UNION { ?y property:Q541947 resource:Q161539 } UNION { ?z property:Q541947 resource:Q81534 } UNION { ?y property:Q541947 resource:Q81534 } UNION { ?z property:Q541947 resource:Q161539 } UNION { ?y property:Q541947 resource:Q161539 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q161243 }
Did you mean The Brabançonne ?
The Brabançonne
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:anthem resource:The_Brabançonne } UNION { ?y property:anthem resource:The_Brabançonne } UNION { ?z property:anthem resource:Kimi_Ga_Yo } UNION { ?y property:anthem resource:Kimi_Ga_Yo } UNION { ?z property:anthem resource:The_Brabançonne } UNION { ?y property:anthem resource:The_Brabançonne } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:dependent_territory }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15617994),P85,Q161539) (c(Q161243),P85,Q161539) (c(Q15617994),P85,Q81534) (c(Q161243),P85,Q81534) (c(Q15617994),P85,Q161539) (c(Q161243),P85,Q161539)
[{'concept': 'Q15617994'}, 'P85', 'Q161539'] [{'concept': 'Q161243'}, 'P85', 'Q161539'] [{'concept': 'Q15617994'}, 'P85', 'Q81534'] [{'concept': 'Q161243'}, 'P85', 'Q81534'] [{'concept': 'Q15617994'}, 'P85', 'Q161539'] [{'concept': 'Q161243'}, 'P85', 'Q161539']
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'The Brabançonne'] [{'concept': 'dependent territory'}, 'anthem', 'The Brabançonne'] [{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'Kimi Ga Yo'] [{'concept': 'dependent territory'}, 'anthem', 'Kimi Ga Yo'] [{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'The Brabançonne'] [{'concept': 'dependent territory'}, 'anthem', 'The Brabançonne']
[]
SYSTEM
1 administrative territories and 1 dependent territories
Q31 Q213510
(c(Q15617994),P85,Q161539) (c(Q161243),P85,Q161539) (c(Q15617994),P85,Q81534) (c(Q161243),P85,Q81534) (c(Q15617994),P85,Q161539) (c(Q161243),P85,Q161539)
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', 'Q161539'] [{'concept': 'Q161243'}, 'P85', 'Q161539'] [{'concept': 'Q15617994'}, 'P85', 'Q81534'] [{'concept': 'Q161243'}, 'P85', 'Q81534'] [{'concept': 'Q15617994'}, 'P85', 'Q161539'] [{'concept': 'Q161243'}, 'P85', 'Q161539']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q541947 resource:Q161539 } UNION { ?y property:Q541947 resource:Q161539 } UNION { ?z property:Q541947 resource:Q81534 } UNION { ?y property:Q541947 resource:Q81534 } UNION { ?z property:Q541947 resource:Q161539 } UNION { ?y property:Q541947 resource:Q161539 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q161243 }
Belgium Belgian Congo
1 administrative territories and 1 dependent territories
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'The Brabançonne'] [{'concept': 'dependent territory'}, 'anthem', 'The Brabançonne'] [{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'Kimi Ga Yo'] [{'concept': 'dependent territory'}, 'anthem', 'Kimi Ga Yo'] [{'concept': 'designation for an administrative territorial entity'}, 'anthem', 'The Brabançonne'] [{'concept': 'dependent territory'}, 'anthem', 'The Brabançonne']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:anthem resource:The_Brabançonne } UNION { ?y property:anthem resource:The_Brabançonne } UNION { ?z property:anthem resource:Kimi_Ga_Yo } UNION { ?y property:anthem resource:Kimi_Ga_Yo } UNION { ?z property:anthem resource:The_Brabançonne } UNION { ?y property:anthem resource:The_Brabançonne } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:dependent_territory }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q105112 Q7240776
P463
Q502895
USER
How many people have a membership of Swedish Social Democratic Party or Presbyterian Historical Society ?
(c(Q502895),P463,Q105112) (c(Q502895),P463,Q7240776)
action count
action union
action filter_type
action find_reverse
entity Q105112
relation P463
type Q502895
action filter_type
action find_reverse
entity Q7240776
relation P463
type Q502895
[{'concept': 'Q502895'}, 'P463', 'Q105112'] [{'concept': 'Q502895'}, 'P463', 'Q7240776']
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:P463 ?r . VALUES ( ?r ) { ( resource:Q105112 ) ( resource:Q7240776 ) } }
Swedish Social Democratic Party Presbyterian Historical Society
action count
action union
action filter_type
action find_reverse
entity Swedish Social Democratic Party
relation member of
type common name
action filter_type
action find_reverse
entity Presbyterian Historical Society
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Swedish Social Democratic Party'] [{'concept': 'common name'}, 'member of', 'Presbyterian Historical Society']
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:member_of ?r . VALUES ( ?r ) { ( resource:Swedish_Social_Democratic_Party ) ( resource:Presbyterian_Historical_Society ) } }
[]
common name
SYSTEM
3
Q5542151 Q20890299 Q3141607
(c(Q502895),P463,Q105112) (c(Q502895),P463,Q7240776)
action count
action union
action filter_type
action find_reverse
entity Q105112
relation P463
type Q502895
action filter_type
action find_reverse
entity Q7240776
relation P463
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P463', 'Q105112'] [{'concept': 'Q502895'}, 'P463', 'Q7240776']
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:P463 ?r . VALUES ( ?r ) { ( resource:Q105112 ) ( resource:Q7240776 ) } }
George Marsden Philip Botström Thomas Bodström
3
action count
action union
action filter_type
action find_reverse
entity Swedish Social Democratic Party
relation member of
type common name
action filter_type
action find_reverse
entity Presbyterian Historical Society
relation member of
type common name
[{'concept': 'common name'}, 'member of', 'Swedish Social Democratic Party'] [{'concept': 'common name'}, 'member of', 'Presbyterian Historical Society']
SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) WHERE { ?p property:member_of ?r . VALUES ( ?r ) { ( resource:Swedish_Social_Democratic_Party ) ( resource:Presbyterian_Historical_Society ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q14524493 Q2221906 Q15617994
USER
How many administrative territories are the eponym of atmost 1 terrains or geographic locations ?
(c(Q15617994),P138,c(Q14524493)|c(Q2221906))
action count
action atmost
action union
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
action find_tuple_counts
relation P138
type Q15617994
type Q2221906
value 1
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q14524493'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { { ?r property:P138 ?s . ?s rdf:type ontology:Q14524493 . ?r rdf:type ontology:Q15617994 } UNION { ?r property:P138 ?s . ?r rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2221906 } } GROUP BY ?r } . FILTER ( ?x <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type geographic location
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'terrain'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { { ?r property:named_after ?s . ?s rdf:type ontology:terrain . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:named_after ?s . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:geographic_location } } GROUP BY ?r } . FILTER ( ?x <= 1 ) }
[]
terrain geographic location designation for an administrative territorial entity
SYSTEM
318
Q701 Q158876 Q968630 Q705 Q3216 Q707 Q1087137 Q709 Q1421544 Q12789 Q1027 Q12779 Q124000 Q12631 Q1041 Q3305157 Q492430 Q668 Q14697553 Q10919 Q2567507 Q3278 Q12563 Q142 Q33 Q685048 Q21671144 Q801 Q12538 Q1093 Q12536 Q12740 Q189 Q12820 Q1090684 Q657 Q3184 Q1098820 Q1452650 Q12594 Q3349 Q378004 Q568751 Q2316529 Q2803031 Q711 Q710 Q1979 Q625403 Q691368 Q1817784 Q199974 Q2998020 Q3083 Q7408058 Q1939894 Q3240 Q1028 Q12772 Q3286 Q691890 Q3249 Q12607 Q2310748 Q3164 Q15055472 Q1465069 Q12572 Q554491 Q159 Q686924 Q598193 Q1090678 Q12556 Q12526 Q12689 Q12753 Q624428 Q155 Q1232680 Q2527360 Q699731 Q290739 Q3377 Q12576 Q3372 Q231168 Q739 Q12589 Q2521404 Q12574 Q957825 Q1270638 Q3093 Q161258 Q1965 Q1508919 Q979470 Q3259 Q10903 Q786 Q1142326 Q10957559 Q5015782 Q676543 Q1270648 Q2758 Q12694 Q3563282 Q12745 Q12515 Q451448 Q12517 Q3368 Q32 Q31 Q30 Q924 Q36 Q12770 Q928 Q3361 Q39 Q3364 Q302479 Q2514636 Q1452646 Q986 Q541095 Q20211 Q3148 Q219 Q1390630 Q736 Q2567535 Q12798 Q4336071 Q1032 Q1508927 Q11140 Q3068 Q12792 Q676178 Q1268811 Q1338277 Q236 Q492437 Q230 Q221 Q232 Q233 Q2304605 Q1914678 Q282355 Q238 Q12620 Q566032 Q12661 Q20 Q4229407 Q621869 Q1042 Q475659 Q691265 Q28 Q1366860 Q12788 Q12584 Q12580 Q1025 Q683555 Q1020 Q2009 Q843 Q12709 Q184 Q548396 Q1029 Q3336 Q1206596 Q3334 Q541811 Q707950 Q3131 Q7084 Q1904 Q27495866 Q12784 Q12578 Q12717 Q3139 Q12782 Q3342 Q12559 Q558771 Q12679 Q12700 Q12703 Q1101 Q12675 Q811 Q1270623 Q347 Q71090 Q1989 Q4165945 Q21915715 Q902 Q153402 Q3207 Q974 Q3120 Q894972 Q894971 Q14810 Q967 Q962 Q963 Q2921370 Q694 Q3125 Q114 Q117 Q81751 Q12569 Q2921378 Q1788988 Q754 Q752 Q750 Q12730 Q12657 Q20095245 Q217 Q12736 Q12642 Q160307 Q12761 Q505607 Q6661829 Q2295479 Q2115819 Q912 Q1270568 Q1270636 Q2136219 Q3514973 Q1090691 Q12765 Q1005 Q977 Q1019 Q1008 Q3509886 Q971 Q3194 Q3113 Q568833 Q252157 Q12652 Q3110307 Q894973 Q541589 Q20310 Q760 Q1033 Q11301 Q1030 Q12804 Q12808 Q894970 Q12722 Q784 Q3326 Q79 Q1234961 Q12553 Q3528124 Q775 Q15060143 Q776 Q810 Q770 Q773 Q46130 Q1393469 Q27 Q1011 Q1013 Q480103 Q4149 Q12549 Q3266 Q12626 Q8575586 Q12543 Q3105 Q12545 Q1558632 Q1913193 Q4066675 Q12758 Q599866 Q1579364 Q731547 Q12816 Q2938 Q12751 Q1951 Q2236821 Q1952 Q2528268 Q3353 Q3357 Q1231 Q13401101 Q558796 Q12564
(c(Q15617994),P138,c(Q14524493)|c(Q2221906))
action count
action atmost
action union
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
action find_tuple_counts
relation P138
type Q15617994
type Q2221906
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q14524493'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { { ?r property:P138 ?s . ?s rdf:type ontology:Q14524493 . ?r rdf:type ontology:Q15617994 } UNION { ?r property:P138 ?s . ?r rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2221906 } } GROUP BY ?r } . FILTER ( ?x <= 1 ) }
North Holland Reinickendorf Taro Zeeland Aveyron Flevoland Rockaway, New Jersey Marshall Islands Wettertal Var Mauritius Tarn-et-Garonne Victoria Meuse Senegal Mella Bouches-de-l'Elbe India Neetzow-Liepen Medebach Arno Charente-Maritime Landes France Finland Simplon Mezhetchina Israel Haute-Garonne Limburg Abbasid caliphate Sarthe Iceland Yvelines Montserrat Chad Ariège Gênes Ombrone Marne Côtes-d'Armor Forêts Mont-Tonnerre Noordpolderzijl Pasop Mongolia Kiribati Prince Edward Island Schwielowsee Léman Leninkent, Makhachkala, Republic of Dagestan Hürtgenwald Corse Ain Sam Rayburn Independent School District Upper Oka Principalities Bouches-du-Rhône Morocco Tarn Cher Corcyre Calvados Haute-Marne Liamone Ardennes Gehlsbach Frise Haute-Loire Banan District Russia Mer-Égée Apennins Sègre Indre-et-Loire Gironde Pas-de-Calais Seine-et-Marne Biebertal Brazil Ithaque Stura Wied Sesia Eure-et-Loir Lot Eure Zuyderzée Colombia Manche Veytal Loiret Yssel-Supérieur Rhine Aisne Clipperton Island New Brunswick Marengo Seine-et-Oise Cantal Finnentrop Dominican Republic Seine Moldavia Cabot Public Schools Sankt Thomas Sieg Mönchengladbach Puy-de-Dôme Rumi District Savoie Gard Am Salzhaff Gers Essonne Luxembourg Belgium United States of America Tanzania Poland Somme Philippines Doubs Switzerland Drôme Ems-Occidental Vogtei Montenotte Eritrea Rhin-et-Moselle Peenehagen Ardèche Bulgaria Ourthe Ecuador Pô Vendée Ordzhonikidzevskiy raion of Zaporizhzhya Niger Méditerranée Möhnesee Loire-Atlantique Vaucluse Viereck Dyle Sambre-et-Meuse Montenegro Bouches-du-Weser Georgia Republic of Macedonia Kazakhstan Malta Spitsbergen Vlagtwedder-Veldhuis Nesse-Apfelstädt San Marino Mayenne Rheinbreitbach Nord Norway Komarovsky, Orenburg Oblast Georgsdorf Seychelles Sassenburg Mont-Terrible Hungary Escaut Val-de-Marne Maine-et-Loire Lozère Mauritania Vyronas Malawi Yukon Pakistan Pyrénées-Orientales Belarus Pommerby Mozambique Corse-du-Sud Deux-Nèthes Haute-Corse Ems-Oriental Muldestausee Alpes-de-Haute-Provence Seevetal Ontario Corse Val-d'Oise Lot-et-Garonne Bas-Rhin Alpes-Maritimes Territoire de Belfort Côte-d'Or Isère Wedendorfersee Orne Hautes-Pyrénées Pyrénées-Atlantiques North Brabant Oise Nicaragua Meurthe Liechtenstein Augustusburg Saskatchewan Sheikh Zayed City Kloster Tempzin Bangladesh Roer Aude Democratic Republic of the Congo Jura Bouches-de-l'Yssel Bouches-de-l'Escaut Nettetal Burundi Benin Botswana Bouches-de-l'Èbre-Montserrat South Holland Hautes-Alpes Kenya Ghana Niedereschach Loire Bouches-de-l'Èbre Trasimène Trinidad and Tobago Groningen Bolivia Haute-Saône Nièvre Sept-Saints Republic of Moldova Saône-et-Loire Morbihan Fatimid caliphate Seine-Saint-Denis Philippsreut Llanvaches Zandberg, Zeeland Klein-Ulsda Mali Ems Ruhr Amsterdam, Saskatchewan Tanaro Ter Deux-Sèvres Gambia Djibouti Madagascar Côte d'Ivoire Sègre-Ter Republic of the Congo Aube Allier Meuse-Inférieure Sarre Moselle Golo Bouches-du-Rhin Ems-Supérieur Kuckssee Saint Lucia Nigeria Ennepetal Namibia Vienne Haute-Vienne Bouches-de-la-Meuse Haut-Rhin Dominica Corrèze Egypt Doire Indre Tibre Gelderland Stepenitztal Utrecht Jordan Friesland Overijssel Rhône Jemmapes Ireland Cape Verde Lesotho Amt Volmarstein Neustadt an der Weinstraße Ille-et-Vilaine Charente Meurthe-et-Moselle Umayyad Caliphate Hauts-de-Seine Vosges Hérault Rome Chkalovsk Microdistrict Annino Seine-Maritime Lev Tolstoy Lys Lippe Yonne Leverkusen Haute-Savoie Alberta Rhône-et-Loire Nova Scotia Mont-Blanc Creuse Dordogne Kosovo Region Brandon Valley School District Obere Warnow Loir-et-Cher
318
action count
action atmost
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type geographic location
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'terrain'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?x ) WHERE { { ?r property:named_after ?s . ?s rdf:type ontology:terrain . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:named_after ?s . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:geographic_location } } GROUP BY ?r } . FILTER ( ?x <= 1 ) }
[]