Simple Question (Direct)
Simple Question
Q1055788
P161
Q502895
USER
Which people starred in Superfantozzi ?
(Q1055788,P161,c(Q502895))
action filter_type
action find
entity Q1055788
relation P161
type Q502895
['Q1055788', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1055788 property:P161 ?i . ?i rdf:type ontology:Q502895 }
Superfantozzi
action filter_type
action find
entity Superfantozzi
relation cast member
type common name
['Superfantozzi', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Superfantozzi property:cast_member ?i . ?i rdf:type ontology:common_name }
[]
common name
Q471328 Q973621 Q1109046
SYSTEM
Paolo Villaggio, Riccardo Garrone, Luc Merenda
Q3725911 Q1109046 Q3906708 Q471328 Q1343356 Q3735123 Q1054917 Q3808446 Q3835694 Q973621
(Q1055788,P161,c(Q502895))
action filter_type
action find
entity Q1055788
relation P161
type Q502895
[ANSWERS] starred in Superfantozzi
['Q1055788', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q1055788 property:P161 ?i . ?i rdf:type ontology:Q502895 }
Enrico Mentana Luc Merenda Plinio Fernando Paolo Villaggio Ennio Antonelli Eva-Lena Lundgren Gigi Reder Jimmy il Fenomeno Liù Bosisio Riccardo Garrone
Paolo Villaggio, Riccardo Garrone and Luc Merenda starred in Superfantozzi
Paolo Villaggio Riccardo Garrone Luc Merenda
action filter_type
action find
entity Superfantozzi
relation cast member
type common name
['Superfantozzi', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Superfantozzi property:cast_member ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1055788
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q471328,P136,c(Q1792379)) (Q973621,P136,c(Q1792379)) (Q1109046,P136,c(Q1792379))
action filter_type
action find
entity Q1055788
relation P136
type Q1792379
['Q471328', 'P136', {'concept': 'Q1792379'}] ['Q973621', 'P136', {'concept': 'Q1792379'}] ['Q1109046', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { resource:Q1055788 property:P136 ?x . ?x rdf:type ontology:Q1792379 }
Superfantozzi
action filter_type
action find
entity Superfantozzi
relation genre
type art genre
['Paolo Villaggio', 'genre', {'concept': 'art genre'}] ['Riccardo Garrone', 'genre', {'concept': 'art genre'}] ['Luc Merenda', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { resource:Superfantozzi property:genre ?x . ?x rdf:type ontology:art_genre }
[]
art genre
Q157443
SYSTEM
comedy film
Q157443
(Q471328,P136,c(Q1792379)) (Q973621,P136,c(Q1792379)) (Q1109046,P136,c(Q1792379))
action filter_type
action find
entity Q1055788
relation P136
type Q1792379
The [ANSWER] can be considered as category for that work of art
['Q471328', 'P136', {'concept': 'Q1792379'}] ['Q973621', 'P136', {'concept': 'Q1792379'}] ['Q1109046', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { resource:Q1055788 property:P136 ?x . ?x rdf:type ontology:Q1792379 }
comedy film
The comedy film can be considered as category for that work of art
comedy film
action filter_type
action find
entity Superfantozzi
relation genre
type art genre
['Paolo Villaggio', 'genre', {'concept': 'art genre'}] ['Riccardo Garrone', 'genre', {'concept': 'art genre'}] ['Luc Merenda', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { resource:Superfantozzi property:genre ?x . ?x rdf:type ontology:art_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q157443 Q19363982
P136
Q838948
USER
Does While Satan Sleeps have that one as genre ?
(Q19363982,P136,Q157443)
action is_in
entity Q19363982
action find
entity Q157443
relation P136
['Q19363982', 'P136', 'Q157443']
ASK WHERE { resource:Q157443 property:P136 resource:Q19363982 }
comedy film While Satan Sleeps
action is_in
entity While Satan Sleeps
action find
entity comedy film
relation genre
['While Satan Sleeps', 'genre', 'comedy film']
ASK WHERE { resource:comedy_film property:genre resource:While_Satan_Sleeps }
[]
work of art
SYSTEM
NO
(Q19363982,P136,Q157443)
action is_in
entity Q19363982
action find
entity Q157443
relation P136
[ANSWER]
['Q19363982', 'P136', 'Q157443']
ASK WHERE { resource:Q157443 property:P136 resource:Q19363982 }
No
action is_in
entity While Satan Sleeps
action find
entity comedy film
relation genre
['While Satan Sleeps', 'genre', 'comedy film']
ASK WHERE { resource:comedy_film property:genre resource:While_Satan_Sleeps }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3459687 Q19363982
P495 P17
Q15617994
USER
Which administrative territories did While Satan Sleeps originate or are SK Lombeek a part of ?
OR((Q19363982,P495,c(Q15617994)), (Q3459687,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q19363982
relation P495
action find
entity Q3459687
relation P17
type Q15617994
{'OR': [['Q19363982', 'P495', {'concept': 'Q15617994'}], ['Q3459687', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q19363982 property:P495 ?t } UNION { resource:Q3459687 property:P17 ?t } } }
SK Lombeek While Satan Sleeps
action filter_type
action union
action find
entity While Satan Sleeps
relation country of origin
action find
entity SK Lombeek
relation country
type designation for an administrative territorial entity
{'OR': [['While Satan Sleeps', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['SK Lombeek', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:While_Satan_Sleeps property:country_of_origin ?t } UNION { resource:SK_Lombeek property:country ?t } } }
[]
designation for an administrative territorial entity
Q31 Q30
SYSTEM
Belgium, United States of America
Q31 Q30
OR((Q19363982,P495,c(Q15617994)), (Q3459687,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q19363982
relation P495
action find
entity Q3459687
relation P17
type Q15617994
Or are SK Lombeek a part of the [ANSWERS] While Satan slept
{'OR': [['Q19363982', 'P495', {'concept': 'Q15617994'}], ['Q3459687', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q19363982 property:P495 ?t } UNION { resource:Q3459687 property:P17 ?t } } }
Belgium United States of America
Or are SK Lombeek a part of the Belgium and United States of America While Satan slept
Belgium United States of America
action filter_type
action union
action find
entity While Satan Sleeps
relation country of origin
action find
entity SK Lombeek
relation country
type designation for an administrative territorial entity
{'OR': [['While Satan Sleeps', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['SK Lombeek', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:While_Satan_Sleeps property:country_of_origin ?t } UNION { resource:SK_Lombeek property:country ?t } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q31
P194
Q11204
USER
Which legislature is the representative body for that administrative territory ?
(Q31,P194,c(Q11204))
action filter_type
action find
entity Q31
relation P194
type Q11204
['Q31', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?e WHERE { resource:Q31 property:P194 ?e . ?e rdf:type ontology:Q11204 }
Belgium
action filter_type
action find
entity Belgium
relation legislative body
type legislature
['Belgium', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?e WHERE { resource:Belgium property:legislative_body ?e . ?e rdf:type ontology:legislature }
[]
legislature
Clarification for simple ques.
Q31
SYSTEM
Did you mean Belgium ?
Q31 Q30
(Q31,P194,c(Q11204)) (Q30,P194,c(Q11204))
[ANSWER]
['Q31', 'P194', {'concept': 'Q11204'}] ['Q30', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?e WHERE { resource:Q31 property:P194 ?e . ?e rdf:type ontology:Q11204 }
Belgium United States of America
Did you mean Belgium ?
Belgium
['Belgium', 'legislative body', {'concept': 'legislature'}] ['United States of America', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?e WHERE { resource:Belgium property:legislative_body ?e . ?e rdf:type ontology:legislature }
[]
Simple Question (Coreferenced)
USER
Yes
(Q31,P194,c(Q11204))
['Q31', 'P194', {'concept': 'Q11204'}]
['Belgium', 'legislative body', {'concept': 'legislature'}]
[]
Q1137059
SYSTEM
Belgian Federal Parliament
Q1137059
(Q31,P194,c(Q11204))
action filter_type
action find
entity Q31
relation P194
type Q11204
[ANSWER] is the representative body for that administrative territory
['Q31', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?e WHERE { resource:Q31 property:P194 ?e . ?e rdf:type ontology:Q11204 }
Belgian Federal Parliament
Belgian Federal Parliament is the representative body for that administrative territory
Belgian Federal Parliament
action filter_type
action find
entity Belgium
relation legislative body
type legislature
['Belgium', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?e WHERE { resource:Belgium property:legislative_body ?e . ?e rdf:type ontology:legislature }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q786
P17
Q15617994 Q15700808 Q13220204
USER
How many administrative territories are lesser number of urban unit definitions and administrative country subdivisions located in than Dominican Republic ?
(c(Q15700808)|c(Q13220204),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15700808
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q786
relation P17
type Q15700808
type Q13220204
[[{'concept': 'Q15700808'}, {'concept': 'Q13220204'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:P17 resource:Q786 . { { ?g rdf:type ontology:Q13220204 } UNION { ?g rdf:type ontology:Q15700808 } } } } . FILTER ( ?o < ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15700808 ) ( ontology:Q13220204 ) } } GROUP BY ?u } }
Dominican Republic
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type urban unit definition
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Dominican Republic
relation country
type urban unit definition
type second-level administrative country subdivision
[[{'concept': 'urban unit definition'}, {'concept': 'second-level administrative country subdivision'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:country resource:Dominican_Republic . { { ?g rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?g rdf:type ontology:urban_unit_definition } } } } . FILTER ( ?o < ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:urban_unit_definition ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?u } }
[]
designation for an administrative territorial entity urban unit definition second-level administrative country subdivision
SYSTEM
203
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q270508 Q684030 Q2172530 Q414 Q12536 Q148 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q657 Q258 Q159 Q43 Q155 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q153136 Q1210 Q33 Q921 Q31 Q924 Q928 Q155019 Q38 Q983 Q851 Q29999 Q854 Q734 Q819 Q107426 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q1028 Q836 Q34762 Q1458 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q213 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q37 Q1483510 Q912 Q2662372 Q917 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q426025 Q953
(c(Q15700808)|c(Q13220204),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15700808
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q786
relation P17
type Q15700808
type Q13220204
[ANSWER]
[[{'concept': 'Q15700808'}, {'concept': 'Q13220204'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:P17 resource:Q786 . { { ?g rdf:type ontology:Q13220204 } UNION { ?g rdf:type ontology:Q15700808 } } } } . FILTER ( ?o < ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15700808 ) ( ontology:Q13220204 ) } } GROUP BY ?u } }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Argentina Abbasid caliphate People's Republic of China Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Chad South Africa Russia Turkey Brazil Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Philippines Duchy of Lorraine Italy Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Morocco Myanmar Principality of Bayreuth Calabria Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Czech Republic Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Lithuania Principality of Wales Mali Principality of Minsk Bhutan Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Duchy of Savoy Zambia
203
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type urban unit definition
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Dominican Republic
relation country
type urban unit definition
type second-level administrative country subdivision
[[{'concept': 'urban unit definition'}, {'concept': 'second-level administrative country subdivision'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:country resource:Dominican_Republic . { { ?g rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?g rdf:type ontology:urban_unit_definition } } } } . FILTER ( ?o < ?x ) . { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?o ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:urban_unit_definition ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?u } }
[]