Simple Question (Direct)
Simple Question
Q3762458
P102
Q7210356
USER
Which political organization is Giampaolo D'Andrea a member of ?
(Q3762458,P102,c(Q7210356))
action filter_type
action find
entity Q3762458
relation P102
type Q7210356
['Q3762458', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q3762458 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Giampaolo D'Andrea
action filter_type
action find
entity Giampaolo D'Andrea
relation member of political party
type political organization
["Giampaolo D'Andrea", 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Giampaolo_D'Andrea property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
political organization
Q47729
SYSTEM
Democratic Party
Q47729
(Q3762458,P102,c(Q7210356))
action filter_type
action find
entity Q3762458
relation P102
type Q7210356
Party [ANSWER] is Giampaolo D'Andrea a member of
['Q3762458', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?e WHERE { resource:Q3762458 property:P102 ?e . ?e rdf:type ontology:Q7210356 }
Democratic Party
Party Democratic Party is Giampaolo D'Andrea a member of
Democratic Party
action filter_type
action find
entity Giampaolo D'Andrea
relation member of political party
type political organization
["Giampaolo D'Andrea", 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?e WHERE { resource:Giampaolo_D'Andrea property:member_of_political_party ?e . ?e rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3762458
P937
Q56061
USER
Which are the work locations of that person ?
(Q47729,P937,c(Q56061))
action filter_type
action find
entity Q3762458
relation P937
type Q56061
['Q47729', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q3762458 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Giampaolo D'Andrea
action filter_type
action find
entity Giampaolo D'Andrea
relation work location
type administrative territorial entity
['Democratic Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Giampaolo_D'Andrea property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q239 Q220
SYSTEM
Brussels, Rome
Q239 Q220
(Q47729,P937,c(Q56061))
action filter_type
action find
entity Q3762458
relation P937
type Q56061
The work locations of that person are in [ANSWERS]
['Q47729', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q3762458 property:P937 ?d . ?d rdf:type ontology:Q56061 }
Brussels Rome
The work locations of that person are in Brussels and Rome
Brussels Rome
action filter_type
action find
entity Giampaolo D'Andrea
relation work location
type administrative territorial entity
['Democratic Party', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Giampaolo_D'Andrea property:work_location ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q239 Q220
P190
Q56061
USER
Which administrative territories are twin towns of those ones ?
(Q239,P190,c(Q56061)) (Q220,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q239', 'P190', {'concept': 'Q56061'}] ['Q220', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . VALUES ( ?c ) { ( resource:Q239 ) ( resource:Q220 ) } . ?c property:P190 ?r }
Brussels Rome
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Brussels', 'sister city', {'concept': 'administrative territorial entity'}] ['Rome', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . VALUES ( ?c ) { ( resource:Brussels ) ( resource:Rome ) } . ?c property:sister_city ?r }
[]
administrative territorial entity
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q8673 Q437 Q216 Q340 Q649 Q2807 Q956 Q64 Q23556 Q61 Q1085 Q484799 Q8717 Q90 Q34647 Q1490 Q132830
(Q239,P190,c(Q56061)) (Q220,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS] are twin towns of those ones
['Q239', 'P190', {'concept': 'Q56061'}] ['Q220', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . VALUES ( ?c ) { ( resource:Q239 ) ( resource:Q220 ) } . ?c property:P190 ?r }
Lagos Ljubljana Vilnius Montreal Moscow Madrid Beijing Berlin Atlanta Washington, D.C. Prague Marbella Seville Paris Johannesburg Tokyo Douala
Prague, Moscow and Madrid are twin towns of those ones
Prague Moscow Madrid
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Brussels', 'sister city', {'concept': 'administrative territorial entity'}] ['Rome', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . VALUES ( ?c ) { ( resource:Brussels ) ( resource:Rome ) } . ?c property:sister_city ?r }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1085 Q649 Q2807
P1376
Q15617994
USER
Which administrative territories have Prague, Moscow and Madrid as their county seat ?
(Q1085,P1376,c(Q15617994)) (Q649,P1376,c(Q15617994)) (Q2807,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q1085
relation P1376
type Q15617994
action filter_type
action find
entity Q649
relation P1376
type Q15617994
action filter_type
action find
entity Q2807
relation P1376
type Q15617994
['Q1085', 'P1376', {'concept': 'Q15617994'}] ['Q649', 'P1376', {'concept': 'Q15617994'}] ['Q2807', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:Q15617994 . resource:Q1085 property:P1376 ?m } UNION { resource:Q649 property:P1376 ?m . ?m rdf:type ontology:Q15617994 } }
Prague Moscow Madrid
action union
action filter_type
action find
entity Prague
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Moscow
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Madrid
relation capital of
type designation for an administrative territorial entity
['Prague', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Prague property:capital_of ?m } UNION { resource:Moscow property:capital_of ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q213 Q159 Q29
SYSTEM
Czech Republic, Russia, Spain
Q213 Q159 Q29
(Q1085,P1376,c(Q15617994)) (Q649,P1376,c(Q15617994)) (Q2807,P1376,c(Q15617994))
action union
action filter_type
action find
entity Q1085
relation P1376
type Q15617994
action filter_type
action find
entity Q649
relation P1376
type Q15617994
action filter_type
action find
entity Q2807
relation P1376
type Q15617994
[ANSWERS] have Prague, Moscow and Madrid as their county seat
['Q1085', 'P1376', {'concept': 'Q15617994'}] ['Q649', 'P1376', {'concept': 'Q15617994'}] ['Q2807', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:Q15617994 . resource:Q1085 property:P1376 ?m } UNION { resource:Q649 property:P1376 ?m . ?m rdf:type ontology:Q15617994 } }
Czech Republic Russia Spain
Czech Republic, Russia and Spain have Prague, Moscow and Madrid as their county seat
Czech Republic Russia Spain
action union
action filter_type
action find
entity Prague
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Moscow
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Madrid
relation capital of
type designation for an administrative territorial entity
['Prague', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Moscow', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Prague property:capital_of ?m } UNION { resource:Moscow property:capital_of ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1085
P276
Q2210277
USER
What is situated at that administrative territory ?
(c(Q2210277),P276,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P276
type Q2210277
[{'concept': 'Q2210277'}, 'P276', 'Q1085']
SELECT DISTINCT ?i WHERE { ?i property:P276 resource:Q1085 . ?i rdf:type ontology:Q2210277 }
Prague
action filter_type
action find_reverse
entity Prague
relation location
type chess tournament
[{'concept': 'chess tournament'}, 'location', 'Prague']
SELECT DISTINCT ?i WHERE { ?i property:location resource:Prague . ?i rdf:type ontology:chess_tournament }
[]
chess tournament
Clarification for simple ques.
Q1085
SYSTEM
Did you mean Prague ?
Q213 Q159 Q29
(c(Q2210277),P276,Q213) (c(Q2210277),P276,Q159) (c(Q2210277),P276,Q29)
[ANSWER]
[{'concept': 'Q2210277'}, 'P276', 'Q213'] [{'concept': 'Q2210277'}, 'P276', 'Q159'] [{'concept': 'Q2210277'}, 'P276', 'Q29']
SELECT DISTINCT ?i WHERE { ?i property:P276 resource:Q1085 . ?i rdf:type ontology:Q2210277 }
Czech Republic Russia Spain
Did you mean Prague ?
Prague
[{'concept': 'chess tournament'}, 'location', 'Czech Republic'] [{'concept': 'chess tournament'}, 'location', 'Russia'] [{'concept': 'chess tournament'}, 'location', 'Spain']
SELECT DISTINCT ?i WHERE { ?i property:location resource:Prague . ?i rdf:type ontology:chess_tournament }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2210277),P276,Q1085)
[{'concept': 'Q2210277'}, 'P276', 'Q1085']
[{'concept': 'chess tournament'}, 'location', 'Prague']
[]
Q868641
SYSTEM
Women's World Chess Championship 1931
Q868641
(c(Q2210277),P276,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P276
type Q2210277
[ANSWER] is situated at that administrative territory
[{'concept': 'Q2210277'}, 'P276', 'Q1085']
SELECT DISTINCT ?i WHERE { ?i property:P276 resource:Q1085 . ?i rdf:type ontology:Q2210277 }
Women's World Chess Championship 1931
Women's World Chess Championship 1931 is situated at that administrative territory
Women's World Chess Championship 1931
action filter_type
action find_reverse
entity Prague
relation location
type chess tournament
[{'concept': 'chess tournament'}, 'location', 'Prague']
SELECT DISTINCT ?i WHERE { ?i property:location resource:Prague . ?i rdf:type ontology:chess_tournament }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q33
P194
Q701632 Q35749 Q15617994
USER
How many administrative territories have around the same number of municipal councils and parliaments as their legislative body as Finland ?
(c(Q15617994),P194,c(Q701632)|c(Q35749))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q33
relation P194
type Q701632
type Q35749
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Q33 property:P194 ?e . { VALUES ( ?y ) { ( ontology:Q701632 ) ( ontology:Q35749 ) } . ?e rdf:type ?y } } } . FILTER ( ?z = ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?o WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:Q701632 ) ( ontology:Q35749 ) } } GROUP BY ?o } }
Finland
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Finland
relation legislative body
type municipal council
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Finland property:legislative_body ?e . { VALUES ( ?y ) { ( ontology:municipal_council ) ( ontology:parliament ) } . ?e rdf:type ?y } } } . FILTER ( ?z = ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?o WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:municipal_council ) ( ontology:parliament ) } } GROUP BY ?o } }
[]
municipal council parliament designation for an administrative territorial entity
SYSTEM
130
Q805 Q804 Q801 Q800 Q1462 Q1250 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q786 Q710 Q717 Q252320 Q187035 Q1460 Q3361 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q4628 Q779011 Q794 Q889 Q884 Q958 Q12574 Q153529 Q1965 Q12761 Q242 Q244 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q747074 Q72449 Q233 Q238 Q12661 Q20 Q1273 Q28 Q29 Q1279 Q1049 Q783 Q184 Q1458 Q228 Q227 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q17 Q902 Q191 Q697 Q298 Q114 Q754 Q750 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q1210 Q917 Q16110 Q736 Q34020 Q686 Q760 Q574 Q694594 Q79 Q77 Q1222 Q774 Q948 Q811 Q1016 Q27 Q1011 Q1243 Q1013 Q12620 Q12626 Q672 Q176 Q1952 Q869 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q35749))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q33
relation P194
type Q701632
type Q35749
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Q33 property:P194 ?e . { VALUES ( ?y ) { ( ontology:Q701632 ) ( ontology:Q35749 ) } . ?e rdf:type ?y } } } . FILTER ( ?z = ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?o WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:Q701632 ) ( ontology:Q35749 ) } } GROUP BY ?o } }
Yemen Panama Israel Costa Rica Sardinia Friuli–Venezia Giulia Peru India Argentina France Netherlands United Kingdom People's Republic of China Iceland Dominican Republic Kiribati Venezuela Pleinfeld Principality of Albania Sicily Doubs Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Faroe Islands Principality of Montenegro Iran Afghanistan South Korea South Sudan Loiret Duchy of Milan New Brunswick Seine-Saint-Denis Belize Barbados Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro comune of Italy Roccarainola Malta San Marino Nord Norway Tuscany Hungary Spain Marche Sudan Honduras Belarus Calabria Andorra Azerbaijan Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Japan Bangladesh Estonia Nauru Chile Kenya Trinidad and Tobago Bolivia Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria Lombardy Bhutan region of Italy Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Egypt Uruguay Aosta Valley Guatemala Tunisia Nicaragua Libya Ireland Cape Verde Veneto Lesotho Mayenne Meurthe-et-Moselle Tuvalu Quebec Nova Scotia Thailand Trentino-South Tyrol
130
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Finland
relation legislative body
type municipal council
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { resource:Finland property:legislative_body ?e . { VALUES ( ?y ) { ( ontology:municipal_council ) ( ontology:parliament ) } . ?e rdf:type ?y } } } . FILTER ( ?z = ?d ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) ?o WHERE { ?a rdf:type ?k . VALUES ( ?k ) { ( ontology:municipal_council ) ( ontology:parliament ) } } GROUP BY ?o } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q36
P194
Q701632 Q35749 Q15617994
USER
And what about Poland?
(c(Q15617994),P194,c(Q701632)|c(Q35749))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q36
relation P194
type Q701632
type Q35749
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:Q701632 ) ( ontology:Q35749 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { { ?f rdf:type ontology:Q701632 } UNION { ?f rdf:type ontology:Q35749 } } . resource:Q36 property:P194 ?f } } . FILTER ( ?q = ?n ) }
Poland
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Poland
relation legislative body
type municipal council
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:municipal_council ) ( ontology:parliament ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { { ?f rdf:type ontology:municipal_council } UNION { ?f rdf:type ontology:parliament } } . resource:Poland property:legislative_body ?f } } . FILTER ( ?q = ?n ) }
[]
municipal council parliament designation for an administrative territorial entity
SYSTEM
130
Q805 Q804 Q801 Q800 Q1462 Q1250 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q786 Q710 Q717 Q252320 Q187035 Q1460 Q3361 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q4628 Q779011 Q794 Q889 Q884 Q958 Q12574 Q153529 Q1965 Q12761 Q242 Q244 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q747074 Q72449 Q233 Q238 Q12661 Q20 Q1273 Q28 Q29 Q1279 Q1049 Q783 Q184 Q1458 Q228 Q227 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q17 Q902 Q191 Q697 Q298 Q114 Q754 Q750 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q1210 Q917 Q16110 Q736 Q34020 Q686 Q760 Q574 Q694594 Q79 Q77 Q1222 Q774 Q948 Q811 Q1016 Q27 Q1011 Q1243 Q1013 Q12620 Q12626 Q672 Q176 Q1952 Q869 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q35749))
action count
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q35749
action count
action filter_multi_types
action find
entity Q36
relation P194
type Q701632
type Q35749
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:Q701632 ) ( ontology:Q35749 ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { { ?f rdf:type ontology:Q701632 } UNION { ?f rdf:type ontology:Q35749 } } . resource:Q36 property:P194 ?f } } . FILTER ( ?q = ?n ) }
Yemen Panama Israel Costa Rica Sardinia Friuli–Venezia Giulia Peru India Argentina France Netherlands United Kingdom People's Republic of China Iceland Dominican Republic Kiribati Venezuela Pleinfeld Principality of Albania Sicily Doubs Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Faroe Islands Principality of Montenegro Iran Afghanistan South Korea South Sudan Loiret Duchy of Milan New Brunswick Seine-Saint-Denis Belize Barbados Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro comune of Italy Roccarainola Malta San Marino Nord Norway Tuscany Hungary Spain Marche Sudan Honduras Belarus Calabria Andorra Azerbaijan Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Japan Bangladesh Estonia Nauru Chile Kenya Trinidad and Tobago Bolivia Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria Lombardy Bhutan region of Italy Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Egypt Uruguay Aosta Valley Guatemala Tunisia Nicaragua Libya Ireland Cape Verde Veneto Lesotho Mayenne Meurthe-et-Moselle Tuvalu Quebec Nova Scotia Thailand Trentino-South Tyrol
130
action count
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
action count
action filter_multi_types
action find
entity Poland
relation legislative body
type municipal council
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?a WHERE { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:municipal_council ) ( ontology:parliament ) } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { { ?f rdf:type ontology:municipal_council } UNION { ?f rdf:type ontology:parliament } } . resource:Poland property:legislative_body ?f } } . FILTER ( ?q = ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3288232
P106
Q12737077
USER
What does Marc Mahélé Lièko Bokungu do for a living ?
(Q3288232,P106,c(Q12737077))
action filter_type
action find
entity Q3288232
relation P106
type Q12737077
['Q3288232', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q3288232 property:P106 ?e }
Marc Mahélé Lièko Bokungu
action filter_type
action find
entity Marc Mahélé Lièko Bokungu
relation occupation
type occupation
['Marc Mahélé Lièko Bokungu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Marc_Mahélé_Lièko_Bokungu property:occupation ?e }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3288232,P106,c(Q12737077))
action filter_type
action find
entity Q3288232
relation P106
type Q12737077
Marc Mahélé Lièko Bokungu does a [ANSWER] for a living
['Q3288232', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q12737077 . resource:Q3288232 property:P106 ?e }
politician
Marc Mahélé Lièko Bokungu does a politician for a living
politician
action filter_type
action find
entity Marc Mahélé Lièko Bokungu
relation occupation
type occupation
['Marc Mahélé Lièko Bokungu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:occupation . resource:Marc_Mahélé_Lièko_Bokungu property:occupation ?e }
[]