Simple Question (Direct)
Simple Question
Q211856
P69
Q1055028
USER
Which college of the University of Cambridge is the alma mater of Philip Noel-Baker, Baron Noel-Baker ?
(Q211856,P69,c(Q1055028))
action filter_type
action find
entity Q211856
relation P69
type Q1055028
['Q211856', 'P69', {'concept': 'Q1055028'}]
SELECT DISTINCT ?a WHERE { resource:Q211856 property:P69 ?a . ?a rdf:type ontology:Q1055028 }
Philip Noel-Baker, Baron Noel-Baker
action filter_type
action find
entity Philip Noel-Baker, Baron Noel-Baker
relation educated at
type college of the University of Cambridge
['Philip Noel-Baker, Baron Noel-Baker', 'educated at', {'concept': 'college of the University of Cambridge'}]
SELECT DISTINCT ?a WHERE { resource:Philip_Noel-Baker,_Baron_Noel-Baker property:educated_at ?a . ?a rdf:type ontology:college_of_the_University_of_Cambridge }
[]
college of the University of Cambridge
Q924289
SYSTEM
King's College
Q924289
(Q211856,P69,c(Q1055028))
action filter_type
action find
entity Q211856
relation P69
type Q1055028
[ANSWER] is the alma mater of Philip Noel-Baker, Baron Noel-Baker
['Q211856', 'P69', {'concept': 'Q1055028'}]
SELECT DISTINCT ?a WHERE { resource:Q211856 property:P69 ?a . ?a rdf:type ontology:Q1055028 }
King's College
King's College is the alma mater of Philip Noel-Baker, Baron Noel-Baker
King's College
action filter_type
action find
entity Philip Noel-Baker, Baron Noel-Baker
relation educated at
type college of the University of Cambridge
['Philip Noel-Baker, Baron Noel-Baker', 'educated at', {'concept': 'college of the University of Cambridge'}]
SELECT DISTINCT ?a WHERE { resource:Philip_Noel-Baker,_Baron_Noel-Baker property:educated_at ?a . ?a rdf:type ontology:college_of_the_University_of_Cambridge }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q924289
P1435
Q41176
USER
Which building heritage status does that college of the University of Cambridge have ?
(Q924289,P1435,c(Q41176))
action filter_type
action find
entity Q924289
relation P1435
type Q41176
['Q924289', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?l WHERE { resource:Q924289 property:P1435 ?l . ?l rdf:type ontology:Q41176 }
King's College
action filter_type
action find
entity King's College
relation heritage status
type building
["King's College", 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?l WHERE { resource:King's_College property:heritage_status ?l . ?l rdf:type ontology:building }
[]
building
Q15700818
SYSTEM
Grade I listed building
Q15700818
(Q924289,P1435,c(Q41176))
action filter_type
action find
entity Q924289
relation P1435
type Q41176
[ANSWER] that college of the University of Cambridge has
['Q924289', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?l WHERE { resource:Q924289 property:P1435 ?l . ?l rdf:type ontology:Q41176 }
Grade I listed building
Grade I listed building that college of the University of Cambridge has
Grade I listed building
action filter_type
action find
entity King's College
relation heritage status
type building
["King's College", 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?l WHERE { resource:King's_College property:heritage_status ?l . ?l rdf:type ontology:building }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5285345 Q211856
P27
Q15617994
USER
Which administrative territories are Philip Noel-Baker, Baron Noel-Baker or Djilali Mehri an inhabitant of ?
OR((Q211856,P27,c(Q15617994)), (Q5285345,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q211856
relation P27
action find
entity Q5285345
relation P27
type Q15617994
{'OR': [['Q211856', 'P27', {'concept': 'Q15617994'}], ['Q5285345', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q211856 property:P27 ?y } UNION { resource:Q5285345 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Djilali Mehri Philip Noel-Baker, Baron Noel-Baker
action filter_type
action union
action find
entity Philip Noel-Baker, Baron Noel-Baker
relation country of citizenship
action find
entity Djilali Mehri
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Philip Noel-Baker, Baron Noel-Baker', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Djilali Mehri', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Philip_Noel-Baker,_Baron_Noel-Baker property:country_of_citizenship ?y } UNION { resource:Djilali_Mehri property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262 Q145
SYSTEM
Algeria, United Kingdom
Q262 Q145
OR((Q211856,P27,c(Q15617994)), (Q5285345,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q211856
relation P27
action find
entity Q5285345
relation P27
type Q15617994
[ANSWERS] are Philip Noel-Baker, Baron Noel-Baker or Djilali Mehri an inhabitant of
{'OR': [['Q211856', 'P27', {'concept': 'Q15617994'}], ['Q5285345', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q211856 property:P27 ?y } UNION { resource:Q5285345 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Algeria United Kingdom
Algeria and United Kingdom are Philip Noel-Baker, Baron Noel-Baker or Djilali Mehri an inhabitant of
Algeria United Kingdom
action filter_type
action union
action find
entity Philip Noel-Baker, Baron Noel-Baker
relation country of citizenship
action find
entity Djilali Mehri
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Philip Noel-Baker, Baron Noel-Baker', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Djilali Mehri', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Philip_Noel-Baker,_Baron_Noel-Baker property:country_of_citizenship ?y } UNION { resource:Djilali_Mehri property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1009
P37
Q5962346 Q34770 Q15617994
USER
How many administrative territories are lesser number of classification schemes and languages the official language of than Cameroon ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q1009
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?i WHERE { { ?i property:P37 ?d . ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q5962346 } UNION { ?i property:P37 ?d . ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q34770 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { { ?l rdf:type ontology:Q5962346 } UNION { ?l rdf:type ontology:Q34770 } } . resource:Q1009 property:P37 ?l } } . FILTER ( ?f < ?c ) }
Cameroon
action count
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Cameroon
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?i WHERE { { ?i property:official_language ?d . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:classification_scheme } UNION { ?i property:official_language ?d . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:language } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { { ?l rdf:type ontology:classification_scheme } UNION { ?l rdf:type ontology:language } } . resource:Cameroon property:official_language ?l } } . FILTER ( ?f < ?c ) }
[]
classification scheme language designation for an administrative territorial entity
SYSTEM
130
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q1009
relation P37
type Q5962346
type Q34770
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?i WHERE { { ?i property:P37 ?d . ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q5962346 } UNION { ?i property:P37 ?d . ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q34770 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { { ?l rdf:type ontology:Q5962346 } UNION { ?l rdf:type ontology:Q34770 } } . resource:Q1009 property:P37 ?l } } . FILTER ( ?f < ?c ) }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
130
action count
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Cameroon
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?i WHERE { { ?i property:official_language ?d . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:classification_scheme } UNION { ?i property:official_language ?d . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:language } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { { { ?l rdf:type ontology:classification_scheme } UNION { ?l rdf:type ontology:language } } . resource:Cameroon property:official_language ?l } } . FILTER ( ?f < ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1030
P37
Q5962346 Q34770 Q15617994
USER
And what about Namibia?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q1030
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?l WHERE { VALUES ( ?e ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?d rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Q1030 property:P37 ?c . { { ?c rdf:type ontology:Q5962346 } UNION { ?c rdf:type ontology:Q34770 } } } } . FILTER ( ?f < ?p ) }
Namibia
action count
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Namibia
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?l WHERE { VALUES ( ?e ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?d rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Namibia property:official_language ?c . { { ?c rdf:type ontology:classification_scheme } UNION { ?c rdf:type ontology:language } } } } . FILTER ( ?f < ?p ) }
[]
classification scheme language designation for an administrative territorial entity
SYSTEM
130
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q1030
relation P37
type Q5962346
type Q34770
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?l WHERE { VALUES ( ?e ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?d rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Q1030 property:P37 ?c . { { ?c rdf:type ontology:Q5962346 } UNION { ?c rdf:type ontology:Q34770 } } } } . FILTER ( ?f < ?p ) }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
130
action count
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Namibia
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) ?l WHERE { VALUES ( ?e ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?d rdf:type ?e } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Namibia property:official_language ?c . { { ?c rdf:type ontology:classification_scheme } UNION { ?c rdf:type ontology:language } } } } . FILTER ( ?f < ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18575424
P1435
Q41176 Q2221906 Q27686
USER
How many buildings are the heritage status of around the same number of geographic locations and hotels as Grade B listed structure ?
(c(Q2221906)|c(Q27686),P1435,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q2221906
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q27686
action count
action filter_multi_types
action find_reverse
entity Q18575424
relation P1435
type Q2221906
type Q27686
[[{'concept': 'Q2221906'}, {'concept': 'Q27686'}], 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:P1435 resource:Q18575424 . { { ?a rdf:type ontology:Q2221906 } UNION { ?a rdf:type ontology:Q27686 } } } } . FILTER ( ?p = ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:P1435 ?q . ?k rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q41176 } UNION { ?q rdf:type ontology:Q41176 . ?k rdf:type ontology:Q27686 . ?k property:P1435 ?q } } GROUP BY ?q } }
Grade B listed structure
action count
action approx
action union
action find_reverse_tuple_counts
relation heritage status
type building
type geographic location
action find_reverse_tuple_counts
relation heritage status
type building
type hotel
action count
action filter_multi_types
action find_reverse
entity Grade B listed structure
relation heritage status
type geographic location
type hotel
[[{'concept': 'geographic location'}, {'concept': 'hotel'}], 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:heritage_status resource:Grade_B_listed_structure . { { ?a rdf:type ontology:geographic_location } UNION { ?a rdf:type ontology:hotel } } } } . FILTER ( ?p = ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:heritage_status ?q . ?k rdf:type ontology:geographic_location . ?q rdf:type ontology:building } UNION { ?q rdf:type ontology:building . ?k rdf:type ontology:hotel . ?k property:heritage_status ?q } } GROUP BY ?q } }
[]
building geographic location hotel
SYSTEM
7
Q16983914 Q10729142 Q10729125 Q15700831 Q18575424 Q15700818 Q10729054
(c(Q2221906)|c(Q27686),P1435,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q2221906
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q27686
action count
action filter_multi_types
action find_reverse
entity Q18575424
relation P1435
type Q2221906
type Q27686
[ANSWER]
[[{'concept': 'Q2221906'}, {'concept': 'Q27686'}], 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:P1435 resource:Q18575424 . { { ?a rdf:type ontology:Q2221906 } UNION { ?a rdf:type ontology:Q27686 } } } } . FILTER ( ?p = ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:P1435 ?q . ?k rdf:type ontology:Q2221906 . ?q rdf:type ontology:Q41176 } UNION { ?q rdf:type ontology:Q41176 . ?k rdf:type ontology:Q27686 . ?k property:P1435 ?q } } GROUP BY ?q } }
Heritage at Risk category C listed building category B listed building Grade II* listed building Grade B listed structure Grade I listed building category A listed building
7
action count
action approx
action union
action find_reverse_tuple_counts
relation heritage status
type building
type geographic location
action find_reverse_tuple_counts
relation heritage status
type building
type hotel
action count
action filter_multi_types
action find_reverse
entity Grade B listed structure
relation heritage status
type geographic location
type hotel
[[{'concept': 'geographic location'}, {'concept': 'hotel'}], 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { ?a property:heritage_status resource:Grade_B_listed_structure . { { ?a rdf:type ontology:geographic_location } UNION { ?a rdf:type ontology:hotel } } } } . FILTER ( ?p = ?g ) . { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?p ) WHERE { { ?k property:heritage_status ?q . ?k rdf:type ontology:geographic_location . ?q rdf:type ontology:building } UNION { ?q rdf:type ontology:building . ?k rdf:type ontology:hotel . ?k property:heritage_status ?q } } GROUP BY ?q } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q16983914
P1435
Q41176 Q2221906 Q27686
USER
And how about Heritage at Risk?
(c(Q2221906)|c(Q27686),P1435,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q2221906
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q27686
action count
action filter_multi_types
action find_reverse
entity Q16983914
relation P1435
type Q2221906
type Q27686
[[{'concept': 'Q2221906'}, {'concept': 'Q27686'}], 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?t WHERE { { ?c property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?c rdf:type ontology:Q2221906 } UNION { ?c property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?c rdf:type ontology:Q27686 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2221906 ) ( ontology:Q27686 ) } } . ?n property:P1435 resource:Q16983914 } } . FILTER ( ?d = ?j ) }
Heritage at Risk
action count
action approx
action union
action find_reverse_tuple_counts
relation heritage status
type building
type geographic location
action find_reverse_tuple_counts
relation heritage status
type building
type hotel
action count
action filter_multi_types
action find_reverse
entity Heritage at Risk
relation heritage status
type geographic location
type hotel
[[{'concept': 'geographic location'}, {'concept': 'hotel'}], 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?t WHERE { { ?c property:heritage_status ?t . ?t rdf:type ontology:building . ?c rdf:type ontology:geographic_location } UNION { ?c property:heritage_status ?t . ?t rdf:type ontology:building . ?c rdf:type ontology:hotel } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:geographic_location ) ( ontology:hotel ) } } . ?n property:heritage_status resource:Heritage_at_Risk } } . FILTER ( ?d = ?j ) }
[]
building geographic location hotel
SYSTEM
7
Q16983914 Q10729142 Q10729125 Q15700831 Q18575424 Q15700818 Q10729054
(c(Q2221906)|c(Q27686),P1435,c(Q41176))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q2221906
action find_reverse_tuple_counts
relation P1435
type Q41176
type Q27686
action count
action filter_multi_types
action find_reverse
entity Q16983914
relation P1435
type Q2221906
type Q27686
[ANSWER]
[[{'concept': 'Q2221906'}, {'concept': 'Q27686'}], 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?t WHERE { { ?c property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?c rdf:type ontology:Q2221906 } UNION { ?c property:P1435 ?t . ?t rdf:type ontology:Q41176 . ?c rdf:type ontology:Q27686 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2221906 ) ( ontology:Q27686 ) } } . ?n property:P1435 resource:Q16983914 } } . FILTER ( ?d = ?j ) }
Heritage at Risk category C listed building category B listed building Grade II* listed building Grade B listed structure Grade I listed building category A listed building
7
action count
action approx
action union
action find_reverse_tuple_counts
relation heritage status
type building
type geographic location
action find_reverse_tuple_counts
relation heritage status
type building
type hotel
action count
action filter_multi_types
action find_reverse
entity Heritage at Risk
relation heritage status
type geographic location
type hotel
[[{'concept': 'geographic location'}, {'concept': 'hotel'}], 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?t WHERE { { ?c property:heritage_status ?t . ?t rdf:type ontology:building . ?c rdf:type ontology:geographic_location } UNION { ?c property:heritage_status ?t . ?t rdf:type ontology:building . ?c rdf:type ontology:hotel } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { { ?n rdf:type ?b . VALUES ( ?b ) { ( ontology:geographic_location ) ( ontology:hotel ) } } . ?n property:heritage_status resource:Heritage_at_Risk } } . FILTER ( ?d = ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15700818
P17
Q15617994
USER
Which administrative territory is Grade I listed building located in ?
(Q15700818,P17,c(Q15617994))
action filter_type
action find
entity Q15700818
relation P17
type Q15617994
['Q15700818', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q15700818 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Grade I listed building
action filter_type
action find
entity Grade I listed building
relation country
type designation for an administrative territorial entity
['Grade I listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Grade_I_listed_building property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q15700818,P17,c(Q15617994))
action filter_type
action find
entity Q15700818
relation P17
type Q15617994
Grade I listed building is located in [ANSWER]
['Q15700818', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q15700818 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
Grade I listed building is located in United Kingdom
United Kingdom
action filter_type
action find
entity Grade I listed building
relation country
type designation for an administrative territorial entity
['Grade I listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Grade_I_listed_building property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q211856
P1412
Q34770
USER
Which language can Philip Noel-Baker, Baron Noel-Baker understand ?
(Q211856,P1412,c(Q34770))
action filter_type
action find
entity Q211856
relation P1412
type Q34770
['Q211856', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q34770 . resource:Q211856 property:P1412 ?c }
Philip Noel-Baker, Baron Noel-Baker
action filter_type
action find
entity Philip Noel-Baker, Baron Noel-Baker
relation languages spoken, written or signed
type language
['Philip Noel-Baker, Baron Noel-Baker', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:language . resource:Philip_Noel-Baker,_Baron_Noel-Baker property:languages_spoken,_written_or_signed ?c }
[]
language
Q1860
SYSTEM
English
Q1860
(Q211856,P1412,c(Q34770))
action filter_type
action find
entity Q211856
relation P1412
type Q34770
Philip Noel-Baker , Baron Noel-Baker can understand [ANSWER]
['Q211856', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q34770 . resource:Q211856 property:P1412 ?c }
English
Philip Noel-Baker , Baron Noel-Baker can understand English
English
action filter_type
action find
entity Philip Noel-Baker, Baron Noel-Baker
relation languages spoken, written or signed
type language
['Philip Noel-Baker, Baron Noel-Baker', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:language . resource:Philip_Noel-Baker,_Baron_Noel-Baker property:languages_spoken,_written_or_signed ?c }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P282
Q8192 Q34770
USER
Which languages have writing system as approximately the same number of writing systems as that language ?
(c(Q34770),P282,c(Q8192))
action approx
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_type
action find
entity Q1860
relation P282
type Q34770
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q1860 property:P282 ?n . ?n rdf:type ontology:Q34770 } } . FILTER ( ?w = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:Q8192 . ?s rdf:type ontology:Q34770 . ?s property:P282 ?e } GROUP BY ?s } }
action approx
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_type
action find
entity English
relation writing system
type language
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:English property:writing_system ?n . ?n rdf:type ontology:language } } . FILTER ( ?w = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:writing_system . ?s rdf:type ontology:language . ?s property:writing_system ?e } GROUP BY ?s } }
[]
writing system language
Q29572 Q1860 Q447117
SYSTEM
Avestan, English, Old Egyptian
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q8192))
action approx
action find_tuple_counts
relation P282
type Q34770
type Q8192
action count
action filter_type
action find
entity Q1860
relation P282
type Q34770
[ANSWERS] have writing system as approximately the same number of writing systems as that language
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q1860 property:P282 ?n . ?n rdf:type ontology:Q34770 } } . FILTER ( ?w = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:Q8192 . ?s rdf:type ontology:Q34770 . ?s property:P282 ?e } GROUP BY ?s } }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Ruthenian Polabian Old Church Slavonic Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
Avestan, English and Old Egyptian have writing system as approximately the same number of writing systems as that language
Avestan English Old Egyptian
action approx
action find_tuple_counts
relation writing system
type language
type writing system
action count
action filter_type
action find
entity English
relation writing system
type language
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:English property:writing_system ?n . ?n rdf:type ontology:language } } . FILTER ( ?w = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?w ) WHERE { ?e rdf:type ontology:writing_system . ?s rdf:type ontology:language . ?s property:writing_system ?e } GROUP BY ?s } }
[]