Simple Question (Direct)
Simple Question
Q22695280
P102
Q7210356
USER
Which party is Walter Lingg affiliated with ?
(Q22695280,P102,c(Q7210356))
action filter_type
action find
entity Q22695280
relation P102
type Q7210356
['Q22695280', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q22695280 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
Walter Lingg
action filter_type
action find
entity Walter Lingg
relation member of political party
type political organization
['Walter Lingg', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:Walter_Lingg property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
political organization
Q186867
SYSTEM
Austrian People's Party
Q186867
(Q22695280,P102,c(Q7210356))
action filter_type
action find
entity Q22695280
relation P102
type Q7210356
Walter Lingg is affiliated with [ANSWER]
['Q22695280', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?l WHERE { resource:Q22695280 property:P102 ?l . ?l rdf:type ontology:Q7210356 }
Austrian People's Party
Walter Lingg is affiliated with Austrian People's Party
Austrian People's Party
action filter_type
action find
entity Walter Lingg
relation member of political party
type political organization
['Walter Lingg', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?l WHERE { resource:Walter_Lingg property:member_of_political_party ?l . ?l rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22695280
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q186867,P27,c(Q1048835))
action filter_type
action find
entity Q22695280
relation P27
type Q1048835
['Q186867', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q22695280 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Walter Lingg
action filter_type
action find
entity Walter Lingg
relation country of citizenship
type political territorial entity
["Austrian People's Party", 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Walter_Lingg property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q186867,P27,c(Q1048835))
action filter_type
action find
entity Q22695280
relation P27
type Q1048835
That person belongs to [ANSWER]
['Q186867', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q22695280 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Austria
That person belongs to Austria
Austria
action filter_type
action find
entity Walter Lingg
relation country of citizenship
type political territorial entity
["Austrian People's Party", 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Walter_Lingg property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q6834091 Q22695280
P27
Q1048835
USER
Or Michael Sabia?
OR((Q22695280,P27,c(Q1048835)), (Q6834091,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q22695280
relation P27
action find
entity Q6834091
relation P27
type Q1048835
{'OR': [['Q22695280', 'P27', {'concept': 'Q1048835'}], ['Q6834091', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { ?q property:P27 ?i . VALUES ( ?q ) { ( resource:Q22695280 ) ( resource:Q6834091 ) } } . ?i rdf:type ontology:Q1048835 }
Michael Sabia Walter Lingg
action filter_type
action union
action find
entity Walter Lingg
relation country of citizenship
action find
entity Michael Sabia
relation country of citizenship
type political territorial entity
{'OR': [['Walter Lingg', 'country of citizenship', {'concept': 'political territorial entity'}], ['Michael Sabia', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?q property:country_of_citizenship ?i . VALUES ( ?q ) { ( resource:Walter_Lingg ) ( resource:Michael_Sabia ) } } . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q40
SYSTEM
Canada, Austria
Q16 Q40
OR((Q22695280,P27,c(Q1048835)), (Q6834091,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q22695280
relation P27
action find
entity Q6834091
relation P27
type Q1048835
[ANSWERS]
{'OR': [['Q22695280', 'P27', {'concept': 'Q1048835'}], ['Q6834091', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { ?q property:P27 ?i . VALUES ( ?q ) { ( resource:Q22695280 ) ( resource:Q6834091 ) } } . ?i rdf:type ontology:Q1048835 }
Canada Austria
Canada Austria
action filter_type
action union
action find
entity Walter Lingg
relation country of citizenship
action find
entity Michael Sabia
relation country of citizenship
type political territorial entity
{'OR': [['Walter Lingg', 'country of citizenship', {'concept': 'political territorial entity'}], ['Michael Sabia', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { ?q property:country_of_citizenship ?i . VALUES ( ?q ) { ( resource:Walter_Lingg ) ( resource:Michael_Sabia ) } } . ?i rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q9433
P530
Q15617994
USER
Do Loranzè have ambassadorial relations with those political territories ?
(Q9433,P530,Q16) (Q9433,P530,Q40)
action is_in
entity prev_answer
action find
entity Q9433
relation P530
['Q9433', 'P530', 'Q16'] ['Q9433', 'P530', 'Q40']
ASK WHERE { VALUES ( ?w ) { ( resource:Q16 ) ( resource:Q40 ) } . resource:Q9433 property:P530 ?w }
Loranzè
action is_in
entity prev_answer
action find
entity Loranzè
relation diplomatic relation
['Loranzè', 'diplomatic relation', 'Canada'] ['Loranzè', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?w ) { ( resource:Canada ) ( resource:Austria ) } . resource:Loranzè property:diplomatic_relation ?w }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q9433,P530,Q16) (Q9433,P530,Q40)
action is_in
entity prev_answer
action find
entity Q9433
relation P530
[ANSWER]
['Q9433', 'P530', 'Q16'] ['Q9433', 'P530', 'Q40']
ASK WHERE { VALUES ( ?w ) { ( resource:Q16 ) ( resource:Q40 ) } . resource:Q9433 property:P530 ?w }
No
action is_in
entity prev_answer
action find
entity Loranzè
relation diplomatic relation
['Loranzè', 'diplomatic relation', 'Canada'] ['Loranzè', 'diplomatic relation', 'Austria']
ASK WHERE { VALUES ( ?w ) { ( resource:Canada ) ( resource:Austria ) } . resource:Loranzè property:diplomatic_relation ?w }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q40 Q6685750
P6
Q502895
USER
Is Lou Sarcone the head of government of Austria ?
(Q40,P6,Q6685750)
action is_in
entity Q6685750
action find
entity Q40
relation P6
['Q40', 'P6', 'Q6685750']
ASK WHERE { resource:Q40 property:P6 resource:Q6685750 }
Austria Lou Sarcone
action is_in
entity Lou Sarcone
action find
entity Austria
relation head of government
['Austria', 'head of government', 'Lou Sarcone']
ASK WHERE { resource:Austria property:head_of_government resource:Lou_Sarcone }
[]
common name
SYSTEM
NO
(Q40,P6,Q6685750)
action is_in
entity Q6685750
action find
entity Q40
relation P6
[ANSWER]
['Q40', 'P6', 'Q6685750']
ASK WHERE { resource:Q40 property:P6 resource:Q6685750 }
No
action is_in
entity Lou Sarcone
action find
entity Austria
relation head of government
['Austria', 'head of government', 'Lou Sarcone']
ASK WHERE { resource:Austria property:head_of_government resource:Lou_Sarcone }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40
P159
Q874405
USER
Which social groups have their head office location at that political territory ?
action filter_type
action find_reverse
entity Q40
relation P159
type Q874405
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q40 . ?h rdf:type ontology:Q874405 }
Austria
action filter_type
action find_reverse
entity Austria
relation headquarters location
type social group
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Austria . ?h rdf:type ontology:social_group }
[]
social group
Q2737122 Q304062 Q303786
SYSTEM
Jugend Eine Welt, Austrian Physical Society, Austrian Mathematical Society
Q2737122 Q304062 Q303786
action filter_type
action find_reverse
entity Q40
relation P159
type Q874405
[ANSWERS] have their head office location at that political territory
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q40 . ?h rdf:type ontology:Q874405 }
Jugend Eine Welt Austrian Physical Society Austrian Mathematical Society
Jugend Eine Welt, Austrian Physical Society and Austrian Mathematical Society have their head office location at that political territory
Jugend Eine Welt Austrian Physical Society Austrian Mathematical Society
action filter_type
action find_reverse
entity Austria
relation headquarters location
type social group
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Austria . ?h rdf:type ontology:social_group }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P749
Q740752 Q43229 Q874405
USER
How many social groups have atleast 1 transport companies and organizations as parent organization ?
(c(Q874405),P749,c(Q740752)|c(Q43229))
action count
action atleast
action union
action find_tuple_counts
relation P749
type Q874405
type Q740752
action find_tuple_counts
relation P749
type Q874405
type Q43229
value 1
[{'concept': 'Q874405'}, 'P749', [{'concept': 'Q740752'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?s WHERE { { ?s property:P749 ?f . ?s rdf:type ontology:Q874405 . ?f rdf:type ontology:Q740752 } UNION { ?s property:P749 ?f . ?s rdf:type ontology:Q874405 . ?f rdf:type ontology:Q43229 } } GROUP BY ?s } . FILTER ( ?u >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation parent organization
type social group
type transport company
action find_tuple_counts
relation parent organization
type social group
type organization
value 1
[{'concept': 'social group'}, 'parent organization', [{'concept': 'transport company'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?s WHERE { { ?s property:parent_organization ?f . ?s rdf:type ontology:social_group . ?f rdf:type ontology:transport_company } UNION { ?s property:parent_organization ?f . ?s rdf:type ontology:social_group . ?f rdf:type ontology:organization } } GROUP BY ?s } . FILTER ( ?u >= 1 ) }
[]
transport company organization social group
SYSTEM
28
Q4816411 Q7437933 Q1114200 Q11788418 Q4929965 Q7988225 Q13431465 Q2860866 Q4698479 Q3519460 Q14623752 Q2044206 Q6670591 Q26830968 Q4318661 Q5330408 Q3913196 Q3435621 Q4698480 Q7570387 Q1377855 Q1203555 Q408396 Q7055281 Q11722823 Q14334150 Q23978267 Q10955989
(c(Q874405),P749,c(Q740752)|c(Q43229))
action count
action atleast
action union
action find_tuple_counts
relation P749
type Q874405
type Q740752
action find_tuple_counts
relation P749
type Q874405
type Q43229
value 1
[ANSWER]
[{'concept': 'Q874405'}, 'P749', [{'concept': 'Q740752'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?s WHERE { { ?s property:P749 ?f . ?s rdf:type ontology:Q874405 . ?f rdf:type ontology:Q740752 } UNION { ?s property:P749 ?f . ?s rdf:type ontology:Q874405 . ?f rdf:type ontology:Q43229 } } GROUP BY ?s } . FILTER ( ?u >= 1 ) }
Atlantic Council of Serbia Scottish Region of British Railways Picnik NWR Karbonia Blue Triangle Western Region of British Railways Thales Air Defence Areva TA Airbus ProSky Thales Underwater Systems Pink BH PIK Vrbovec London Midland Region of British Railways USA TODAY Network Nizhny Novgorod Research Institute of Radio Engineering Eastern Region of British Railways Thales Nederland Elektrárna Dětmarovice Airbus Operations S.A.S. Southern Region of British Railways Google.org Deutsche Messe AG Airbus Transport International North Eastern Region of British Railways Centrum Holdings MediaCorp Raintree Pictures beIN CONNECT Media Asia Film Distribution Company
28
action count
action atleast
action union
action find_tuple_counts
relation parent organization
type social group
type transport company
action find_tuple_counts
relation parent organization
type social group
type organization
value 1
[{'concept': 'social group'}, 'parent organization', [{'concept': 'transport company'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?s WHERE { { ?s property:parent_organization ?f . ?s rdf:type ontology:social_group . ?f rdf:type ontology:transport_company } UNION { ?s property:parent_organization ?f . ?s rdf:type ontology:social_group . ?f rdf:type ontology:organization } } GROUP BY ?s } . FILTER ( ?u >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22695280
P39
Q12737077
USER
Which occupation was a position occupied by Walter Lingg ?
(Q22695280,P39,c(Q12737077))
action filter_type
action find
entity Q22695280
relation P39
type Q12737077
['Q22695280', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q22695280 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Walter Lingg
action filter_type
action find
entity Walter Lingg
relation position held
type occupation
['Walter Lingg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Walter_Lingg property:position_held ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q1343573
SYSTEM
Member of state parliament
Q1343573
(Q22695280,P39,c(Q12737077))
action filter_type
action find
entity Q22695280
relation P39
type Q12737077
The [ANSWER] was a position occupied by Walter Lingg
['Q22695280', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q22695280 property:P39 ?g . ?g rdf:type ontology:Q12737077 }
Member of state parliament
The Member of state parliament was a position occupied by Walter Lingg
Member of state parliament
action filter_type
action find
entity Walter Lingg
relation position held
type occupation
['Walter Lingg', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Walter_Lingg property:position_held ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22695280
P20
Q56061
USER
Where did the demise of Walter Lingg occur ?
(Q22695280,P20,c(Q56061))
action filter_type
action find
entity Q22695280
relation P20
type Q56061
['Q22695280', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q22695280 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Walter Lingg
action filter_type
action find
entity Walter Lingg
relation place of death
type administrative territorial entity
['Walter Lingg', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Walter_Lingg property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q183104
SYSTEM
Feldkirch
Q183104
(Q22695280,P20,c(Q56061))
action filter_type
action find
entity Q22695280
relation P20
type Q56061
The demise of Walter Lingg occurred in [ANSWER]
['Q22695280', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q22695280 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Feldkirch
The demise of Walter Lingg occurred in Feldkirch
Feldkirch
action filter_type
action find
entity Walter Lingg
relation place of death
type administrative territorial entity
['Walter Lingg', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Walter_Lingg property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q22695280
P21
Q290
USER
Which sex does that person belong to ?
(Q183104,P21,c(Q290))
action filter_type
action find
entity Q22695280
relation P21
type Q290
['Q183104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q22695280 property:P21 ?c . ?c rdf:type ontology:Q290 }
Walter Lingg
action filter_type
action find
entity Walter Lingg
relation gender
type sex
['Feldkirch', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Walter_Lingg property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q183104,P21,c(Q290))
action filter_type
action find
entity Q22695280
relation P21
type Q290
That person belongs to [ANSWER]
['Q183104', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q22695280 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Walter Lingg
relation gender
type sex
['Feldkirch', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Walter_Lingg property:gender ?c . ?c rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q5730634 Q22695280
P106
Q12737077
USER
Which occupations have Walter Lingg and Henry Yesler as his/her as a career ?
AND((Q22695280,P106,c(Q12737077)), (Q5730634,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q22695280
relation P106
action find
entity Q5730634
relation P106
type Q12737077
{'AND': [['Q22695280', 'P106', {'concept': 'Q12737077'}], ['Q5730634', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q22695280 property:P106 ?e . resource:Q5730634 property:P106 ?e }
Henry Yesler Walter Lingg
action filter_type
action intersection
action find
entity Walter Lingg
relation occupation
action find
entity Henry Yesler
relation occupation
type occupation
{'AND': [['Walter Lingg', 'occupation', {'concept': 'occupation'}], ['Henry Yesler', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Walter_Lingg property:occupation ?e . resource:Henry_Yesler property:occupation ?e }
[]
occupation
Q82955
SYSTEM
politician
Q82955
AND((Q22695280,P106,c(Q12737077)), (Q5730634,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q22695280
relation P106
action find
entity Q5730634
relation P106
type Q12737077
The [ANSWER] have Walter Lingg and Henry Yesler as his/her as a career
{'AND': [['Q22695280', 'P106', {'concept': 'Q12737077'}], ['Q5730634', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q22695280 property:P106 ?e . resource:Q5730634 property:P106 ?e }
politician
The politician have Walter Lingg and Henry Yesler as his/her as a career
politician
action filter_type
action intersection
action find
entity Walter Lingg
relation occupation
action find
entity Henry Yesler
relation occupation
type occupation
{'AND': [['Walter Lingg', 'occupation', {'concept': 'occupation'}], ['Henry Yesler', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Walter_Lingg property:occupation ?e . resource:Henry_Yesler property:occupation ?e }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q34863
P840
Q56061 Q2342494 Q15416
USER
Which administrative territories are lesser number of collectables and television programs set in than Oklahoma City ?
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q34863
relation P840
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { { ?w property:P840 ?z . ?z rdf:type ontology:Q56061 . ?w rdf:type ontology:Q2342494 } UNION { ?w property:P840 ?z . ?z rdf:type ontology:Q56061 . ?w rdf:type ontology:Q15416 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P840 resource:Q34863 . { ?h rdf:type ?y . VALUES ( ?y ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } } } . FILTER ( ?j < ?n ) }
Oklahoma City
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Oklahoma City
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { { ?w property:narrative_location ?z . ?z rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:collectable } UNION { ?w property:narrative_location ?z . ?z rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:television_program } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:narrative_location resource:Oklahoma_City . { ?h rdf:type ?y . VALUES ( ?y ) { ( ontology:collectable ) ( ontology:television_program ) } } } } . FILTER ( ?j < ?n ) }
[]
administrative territorial entity collectable television program
Q1085 Q490 Q8686
SYSTEM
Prague, Milan, Shanghai
Q1715 Q7436 Q21075005 Q1183 Q3711 Q331990 Q210292 Q28729 Q25286 Q2280 Q3805 Q501661 Q49233 Q1255278 Q42096 Q18808 Q23725 Q3659 Q16563 Q23337 Q8692 Q124739 Q3413045 Q79873 Q81788 Q43453 Q308891 Q101625 Q48320 Q80985 Q80734 Q7880 Q1435589 Q690 Q257536 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q25319 Q54140 Q180294 Q8818 Q34739 Q1335 Q594807 Q9427 Q48274 Q12340599 Q186237 Q37776 Q1489 Q7094142 Q11864 Q83387 Q462799 Q8673 Q11703 Q490 Q48370 Q36036 Q3703 Q208287 Q54212 Q490584 Q3630 Q17151 Q6046 Q25416 Q239 Q16558 Q16559 Q753121 Q8686 Q994 Q35178 Q113546 Q3037 Q723329 Q900 Q14815 Q13670 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q214178 Q25395 Q78 Q70 Q178168 Q37100 Q2214 Q270 Q37066 Q486439 Q26887 Q208472 Q82490 Q79985 Q49243 Q3766 Q41604 Q1070 Q3590079 Q837165 Q41819 Q41329 Q1555 Q1491 Q1492 Q16562 Q6225 Q437 Q2118905 Q1479 Q1780 Q690052 Q2090 Q2073211 Q1851 Q18705 Q3820 Q621549 Q49149 Q676689 Q271411 Q13496 Q340 Q125434 Q25331 Q25231 Q25230 Q612 Q3305102 Q990168 Q1015727 Q34713 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q1659757 Q268873 Q530090 Q3825 Q159232 Q1867 Q384 Q5813 Q27393 Q12191 Q126148 Q202337 Q837478 Q184345 Q49111 Q499196 Q495373 Q10313 Q3640 Q647 Q41621 Q3012 Q3483936 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q1449 Q47048 Q1764 Q34932 Q2211 Q2704 Q47716 Q1040 Q6441 Q374748 Q485172 Q26793 Q4190 Q897848 Q165413 Q1574020 Q3992 Q3110 Q630533 Q2751 Q41876 Q41970 Q34647 Q1085
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q34863
relation P840
type Q2342494
type Q15416
[ANSWERS] are lesser number of collectables and television programs set in than Oklahoma City
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { { ?w property:P840 ?z . ?z rdf:type ontology:Q56061 . ?w rdf:type ontology:Q2342494 } UNION { ?w property:P840 ?z . ?z rdf:type ontology:Q56061 . ?w rdf:type ontology:Q15416 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P840 resource:Q34863 . { ?h rdf:type ?y . VALUES ( ?y ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } } } } . FILTER ( ?j < ?n ) }
Hanover Gatchina Serritslev Puerto Rico Belgrade Korean Demilitarized Zone Yozgat Kozhikode Uppsala Minsk Amman Schleswig Orlando Dragør Miryang Pyongyang Byzantium N'Djamena Memphis Salt Lake City Bilbao Tijuana Farsø Tombstone Giza Plzeň special wards of Tokyo Marrakesh Kōbe Fes Campagna Toulouse Folsom Delft Janesville Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Aarhus Salem Jaffa Valencia Dayton Montevideo Søborg Timbuktu Nashua Vedersø Joensuu Besançon Mexico City Onllwyn Junagadh Diyarbakır Evanston Lagos United States Virgin Islands Milan Manchester Lviv Bamako Kauniainen Barnsley Flint Jakarta Thessaloniki Novara Stavanger Brussels Fort Worth Austin Atacames Shanghai Tbilisi Kuwait City Blackeberg Kathmandu Ascot Kazan Weißenfels Syracuse Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Nablus Newark Basel Bern Mitrovica Auckland Pskov Warsaw Bismarck Cedar Rapids Davenport Bingöl Lyme Regis Kodiak Riverside Damascus Amiens Ahmedabad Hvidovre Hyrylä Kansas City Linz Guatemala City La Paz Barcelona El Paso Coventry Ljubljana Purley Bordeaux Bratislava Trebinje Nuremberg Talamone Arkhangelsk Bajram Curri Beirut Inglewood Nantucket Gravesend Malindi Brindisi Montreal Port Elizabeth Odense Svalbard Guernsey Dubai Tsamantas Keighley Mbale Salzburg Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Gimli Newport Beach Jerichow Libreville Santa Cruz Taipei Skopje Canary Islands Herning Nantes Tangier Nauplion Sabinov Viña del Mar Cambridge Costa Mesa Visalia Donostia/San Sebastián Ankara Rennes Haifa Ulm Sils Maria Jamestown Ramallah Southampton Olympia Łódź Bonn Genoa Oulu Reykjavík Brisbane Malmö Pescara Charleston Karlsruhe Montpellier Jenin Ann Arbor Bergen Passau Brande Baikonur The Hamptons Liège San Salvador Tire Siena Reims Pyatigorsk Johannesburg Prague
Prague, Milan and Shanghai are lesser number of collectables and television programs set in than Oklahoma City
Prague Milan Shanghai
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Oklahoma City
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) ?z WHERE { { ?w property:narrative_location ?z . ?z rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:collectable } UNION { ?w property:narrative_location ?z . ?z rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:television_program } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:narrative_location resource:Oklahoma_City . { ?h rdf:type ?y . VALUES ( ?y ) { ( ontology:collectable ) ( ontology:television_program ) } } } } . FILTER ( ?j < ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2073798
P840
Q56061 Q2342494 Q15416
USER
And what about Welch?
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q2073798
relation P840
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:P840 resource:Q2073798 . { { ?u rdf:type ontology:Q15416 } UNION { ?u rdf:type ontology:Q2342494 } } } } . FILTER ( ?k < ?d ) . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?r rdf:type ?w } GROUP BY ?t } }
Welch
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Welch
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:narrative_location resource:Welch . { { ?u rdf:type ontology:television_program } UNION { ?u rdf:type ontology:collectable } } } } . FILTER ( ?k < ?d ) . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:television_program ) } . ?r rdf:type ?w } GROUP BY ?t } }
[]
administrative territorial entity collectable television program
Q1085 Q490 Q8686
SYSTEM
Prague, Milan, Shanghai
Q1715 Q7436 Q21075005 Q1183 Q3711 Q331990 Q210292 Q28729 Q25286 Q2280 Q3805 Q501661 Q49233 Q1255278 Q42096 Q18808 Q23725 Q3659 Q16563 Q23337 Q8692 Q124739 Q3413045 Q79873 Q81788 Q43453 Q308891 Q101625 Q48320 Q80985 Q80734 Q7880 Q1435589 Q690 Q257536 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q25319 Q54140 Q180294 Q8818 Q34739 Q1335 Q594807 Q9427 Q48274 Q12340599 Q186237 Q37776 Q1489 Q7094142 Q11864 Q83387 Q462799 Q8673 Q11703 Q490 Q48370 Q36036 Q3703 Q208287 Q54212 Q490584 Q3630 Q17151 Q6046 Q25416 Q239 Q16558 Q16559 Q753121 Q8686 Q994 Q35178 Q113546 Q3037 Q723329 Q900 Q14815 Q13670 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q214178 Q25395 Q78 Q70 Q178168 Q37100 Q2214 Q270 Q37066 Q486439 Q26887 Q208472 Q82490 Q79985 Q49243 Q3766 Q41604 Q1070 Q3590079 Q837165 Q41819 Q41329 Q1555 Q1491 Q1492 Q16562 Q6225 Q437 Q2118905 Q1479 Q1780 Q690052 Q2090 Q2073211 Q1851 Q18705 Q3820 Q621549 Q49149 Q676689 Q271411 Q13496 Q340 Q125434 Q25331 Q25231 Q25230 Q612 Q3305102 Q990168 Q1015727 Q34713 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q1659757 Q268873 Q530090 Q3825 Q159232 Q1867 Q384 Q5813 Q27393 Q12191 Q126148 Q202337 Q837478 Q184345 Q49111 Q499196 Q495373 Q10313 Q3640 Q647 Q41621 Q3012 Q3483936 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q1449 Q47048 Q1764 Q34932 Q2211 Q2704 Q47716 Q1040 Q6441 Q374748 Q485172 Q26793 Q4190 Q897848 Q165413 Q1574020 Q3992 Q3110 Q630533 Q2751 Q41876 Q41970 Q34647 Q1085
(c(Q2342494)|c(Q15416),P840,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q2073798
relation P840
type Q2342494
type Q15416
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:P840 resource:Q2073798 . { { ?u rdf:type ontology:Q15416 } UNION { ?u rdf:type ontology:Q2342494 } } } } . FILTER ( ?k < ?d ) . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?r rdf:type ?w } GROUP BY ?t } }
Hanover Gatchina Serritslev Puerto Rico Belgrade Korean Demilitarized Zone Yozgat Kozhikode Uppsala Minsk Amman Schleswig Orlando Dragør Miryang Pyongyang Byzantium N'Djamena Memphis Salt Lake City Bilbao Tijuana Farsø Tombstone Giza Plzeň special wards of Tokyo Marrakesh Kōbe Fes Campagna Toulouse Folsom Delft Janesville Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Aarhus Salem Jaffa Valencia Dayton Montevideo Søborg Timbuktu Nashua Vedersø Joensuu Besançon Mexico City Onllwyn Junagadh Diyarbakır Evanston Lagos United States Virgin Islands Milan Manchester Lviv Bamako Kauniainen Barnsley Flint Jakarta Thessaloniki Novara Stavanger Brussels Fort Worth Austin Atacames Shanghai Tbilisi Kuwait City Blackeberg Kathmandu Ascot Kazan Weißenfels Syracuse Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Nablus Newark Basel Bern Mitrovica Auckland Pskov Warsaw Bismarck Cedar Rapids Davenport Bingöl Lyme Regis Kodiak Riverside Damascus Amiens Ahmedabad Hvidovre Hyrylä Kansas City Linz Guatemala City La Paz Barcelona El Paso Coventry Ljubljana Purley Bordeaux Bratislava Trebinje Nuremberg Talamone Arkhangelsk Bajram Curri Beirut Inglewood Nantucket Gravesend Malindi Brindisi Montreal Port Elizabeth Odense Svalbard Guernsey Dubai Tsamantas Keighley Mbale Salzburg Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Gimli Newport Beach Jerichow Libreville Santa Cruz Taipei Skopje Canary Islands Herning Nantes Tangier Nauplion Sabinov Viña del Mar Cambridge Costa Mesa Visalia Donostia/San Sebastián Ankara Rennes Haifa Ulm Sils Maria Jamestown Ramallah Southampton Olympia Łódź Bonn Genoa Oulu Reykjavík Brisbane Malmö Pescara Charleston Karlsruhe Montpellier Jenin Ann Arbor Bergen Passau Brande Baikonur The Hamptons Liège San Salvador Tire Siena Reims Pyatigorsk Johannesburg Prague
Prague Milan Shanghai
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Welch
relation narrative location
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:narrative_location resource:Welch . { { ?u rdf:type ontology:television_program } UNION { ?u rdf:type ontology:collectable } } } } . FILTER ( ?k < ?d ) . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?k ) WHERE { VALUES ( ?w ) { ( ontology:collectable ) ( ontology:television_program ) } . ?r rdf:type ?w } GROUP BY ?t } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1376
Q1048835 Q643589
USER
How many political territories or departments have that administrative territory as their county seat ?
(Q490,P1376,c(Q1048835)) (Q490,P1376,c(Q643589)) (Q1085,P1376,c(Q1048835)) (Q1085,P1376,c(Q643589)) (Q490,P1376,c(Q1048835)) (Q490,P1376,c(Q643589)) (Q8686,P1376,c(Q1048835)) (Q8686,P1376,c(Q643589))
['Q490', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q643589'}] ['Q1085', 'P1376', {'concept': 'Q1048835'}] ['Q1085', 'P1376', {'concept': 'Q643589'}] ['Q490', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q643589'}] ['Q8686', 'P1376', {'concept': 'Q1048835'}] ['Q8686', 'P1376', {'concept': 'Q643589'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q5851811 property:P1376 ?z } UNION { resource:Q5851811 property:P1376 ?y } UNION { resource:Q2084234 property:P1376 ?z } UNION { resource:Q2084234 property:P1376 ?y } UNION { resource:Q5851811 property:P1376 ?z } UNION { resource:Q5851811 property:P1376 ?y } UNION { resource:Q7488397 property:P1376 ?z } UNION { resource:Q7488397 property:P1376 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q643589 }
['Milan', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'department'}] ['Prague', 'capital of', {'concept': 'political territorial entity'}] ['Prague', 'capital of', {'concept': 'department'}] ['Milan', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'department'}] ['Shanghai', 'capital of', {'concept': 'political territorial entity'}] ['Shanghai', 'capital of', {'concept': 'department'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Milan property:capital_of ?z } UNION { resource:Milan property:capital_of ?y } UNION { resource:Prague property:capital_of ?z } UNION { resource:Prague property:capital_of ?y } UNION { resource:Milan property:capital_of ?z } UNION { resource:Milan property:capital_of ?y } UNION { resource:Shanghai property:capital_of ?z } UNION { resource:Shanghai property:capital_of ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:department }
[]
political territorial entity department
Quantitative|Count|Mult. entity type|Clarification
Q490
SYSTEM
Did you mean Milan ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q5851811 property:P1376 ?z } UNION { resource:Q5851811 property:P1376 ?y } UNION { resource:Q2084234 property:P1376 ?z } UNION { resource:Q2084234 property:P1376 ?y } UNION { resource:Q5851811 property:P1376 ?z } UNION { resource:Q5851811 property:P1376 ?y } UNION { resource:Q7488397 property:P1376 ?z } UNION { resource:Q7488397 property:P1376 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q643589 }
Did you mean Milan ?
Milan
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Milan property:capital_of ?z } UNION { resource:Milan property:capital_of ?y } UNION { resource:Prague property:capital_of ?z } UNION { resource:Prague property:capital_of ?y } UNION { resource:Milan property:capital_of ?z } UNION { resource:Milan property:capital_of ?y } UNION { resource:Shanghai property:capital_of ?z } UNION { resource:Shanghai property:capital_of ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:department }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q490,P1376,c(Q1048835)) (Q490,P1376,c(Q643589)) (Q1085,P1376,c(Q1048835)) (Q1085,P1376,c(Q643589)) (Q490,P1376,c(Q1048835)) (Q490,P1376,c(Q643589)) (Q8686,P1376,c(Q1048835)) (Q8686,P1376,c(Q643589))
['Q490', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q643589'}] ['Q1085', 'P1376', {'concept': 'Q1048835'}] ['Q1085', 'P1376', {'concept': 'Q643589'}] ['Q490', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q643589'}] ['Q8686', 'P1376', {'concept': 'Q1048835'}] ['Q8686', 'P1376', {'concept': 'Q643589'}]
['Milan', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'department'}] ['Prague', 'capital of', {'concept': 'political territorial entity'}] ['Prague', 'capital of', {'concept': 'department'}] ['Milan', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'department'}] ['Shanghai', 'capital of', {'concept': 'political territorial entity'}] ['Shanghai', 'capital of', {'concept': 'department'}]
[]
SYSTEM
2
Q3351539 Q18288155
(Q490,P1376,c(Q1048835)) (Q490,P1376,c(Q643589)) (Q1085,P1376,c(Q1048835)) (Q1085,P1376,c(Q643589)) (Q490,P1376,c(Q1048835)) (Q490,P1376,c(Q643589)) (Q8686,P1376,c(Q1048835)) (Q8686,P1376,c(Q643589))
[ANSWER]
['Q490', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q643589'}] ['Q1085', 'P1376', {'concept': 'Q1048835'}] ['Q1085', 'P1376', {'concept': 'Q643589'}] ['Q490', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q643589'}] ['Q8686', 'P1376', {'concept': 'Q1048835'}] ['Q8686', 'P1376', {'concept': 'Q643589'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q5851811 property:P1376 ?z } UNION { resource:Q5851811 property:P1376 ?y } UNION { resource:Q2084234 property:P1376 ?z } UNION { resource:Q2084234 property:P1376 ?y } UNION { resource:Q5851811 property:P1376 ?z } UNION { resource:Q5851811 property:P1376 ?y } UNION { resource:Q7488397 property:P1376 ?z } UNION { resource:Q7488397 property:P1376 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q643589 }
Olona Metropolitan City of Milan
2
['Milan', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'department'}] ['Prague', 'capital of', {'concept': 'political territorial entity'}] ['Prague', 'capital of', {'concept': 'department'}] ['Milan', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'department'}] ['Shanghai', 'capital of', {'concept': 'political territorial entity'}] ['Shanghai', 'capital of', {'concept': 'department'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Milan property:capital_of ?z } UNION { resource:Milan property:capital_of ?y } UNION { resource:Prague property:capital_of ?z } UNION { resource:Prague property:capital_of ?y } UNION { resource:Milan property:capital_of ?z } UNION { resource:Milan property:capital_of ?y } UNION { resource:Shanghai property:capital_of ?z } UNION { resource:Shanghai property:capital_of ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:department }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1085
P190
Q56061 Q20667921
USER
How many administrative territories or french administrative divisions are partner towns of Prague ?
(Q1085,P190,c(Q56061)) (Q1085,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q1085
relation P190
type Q56061
action filter_type
action find
entity Q1085
relation P190
type Q20667921
['Q1085', 'P190', {'concept': 'Q56061'}] ['Q1085', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ?q . VALUES ( ?q ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } }
Prague
action count
action union
action filter_type
action find
entity Prague
relation sister city
type administrative territorial entity
action filter_type
action find
entity Prague
relation sister city
type type of french administrative division
['Prague', 'sister city', {'concept': 'administrative territorial entity'}] ['Prague', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ?q . VALUES ( ?q ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } }
[]
administrative territorial entity type of french administrative division
SYSTEM
29
Q1757 Q201348 Q13386 Q1748 Q649 Q26119 Q472 Q8621 Q185632 Q2090 Q1867 Q1842 Q16556 Q13362 Q42807 Q216 Q2807 Q239 Q51103 Q1297 Q1524 Q6252 Q1780 Q2634 Q64 Q3376 Q1218 Q406 Q168202
(Q1085,P190,c(Q56061)) (Q1085,P190,c(Q20667921))
action count
action union
action filter_type
action find
entity Q1085
relation P190
type Q56061
action filter_type
action find
entity Q1085
relation P190
type Q20667921
[ANSWER]
['Q1085', 'P190', {'concept': 'Q56061'}] ['Q1085', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ?q . VALUES ( ?q ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } }
Helsinki Drancy Lecce Copenhagen Moscow Prešov Sofia Terni Limassol Nuremberg Taipei Luxembourg Phoenix Ferrara Nîmes Vilnius Madrid Brussels Cali Chicago Athens Monza Bratislava Naples Berlin Trento Jerusalem Istanbul Rosh HaAyin
29
action count
action union
action filter_type
action find
entity Prague
relation sister city
type administrative territorial entity
action filter_type
action find
entity Prague
relation sister city
type type of french administrative division
['Prague', 'sister city', {'concept': 'administrative territorial entity'}] ['Prague', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { ?h rdf:type ?q . VALUES ( ?q ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } }
[]