Simple Question (Direct)
Simple Question
Q1673758
P69
Q1244442
USER
Which school building is the alma mater of Nicolaas Adrianus Rupke ?
(Q1673758,P69,c(Q1244442))
action filter_type
action find
entity Q1673758
relation P69
type Q1244442
['Q1673758', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?e WHERE { resource:Q1673758 property:P69 ?e . ?e rdf:type ontology:Q1244442 }
Nicolaas Adrianus Rupke
action filter_type
action find
entity Nicolaas Adrianus Rupke
relation educated at
type school building
['Nicolaas Adrianus Rupke', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?e WHERE { resource:Nicolaas_Adrianus_Rupke property:educated_at ?e . ?e rdf:type ontology:school_building }
[]
school building
Q2007225
SYSTEM
Wolfson College
Q2007225
(Q1673758,P69,c(Q1244442))
action filter_type
action find
entity Q1673758
relation P69
type Q1244442
[ANSWER] is the alma mater of Nicolaas Adrianus Rupke
['Q1673758', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?e WHERE { resource:Q1673758 property:P69 ?e . ?e rdf:type ontology:Q1244442 }
Wolfson College
Wolfson College is the alma mater of Nicolaas Adrianus Rupke
Wolfson College
action filter_type
action find
entity Nicolaas Adrianus Rupke
relation educated at
type school building
['Nicolaas Adrianus Rupke', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?e WHERE { resource:Nicolaas_Adrianus_Rupke property:educated_at ?e . ?e rdf:type ontology:school_building }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2007225 Q34217 Q1298137
P159
Q515
USER
Does Wolfson College have the principal seat at Oxford and Sadská ?
(Q2007225,P159,Q34217) (Q2007225,P159,Q1298137)
action is_in
entity Q2007225
action intersection
action find_reverse
entity Q34217
relation P159
action find_reverse
entity Q1298137
relation P159
['Q2007225', 'P159', 'Q34217'] ['Q2007225', 'P159', 'Q1298137']
ASK WHERE { resource:Q2007225 property:P159 resource:Q34217 . resource:Q2007225 property:P159 resource:Q1298137 }
Wolfson College Oxford Sadská
action is_in
entity Wolfson College
action intersection
action find_reverse
entity Oxford
relation headquarters location
action find_reverse
entity Sadská
relation headquarters location
['Wolfson College', 'headquarters location', 'Oxford'] ['Wolfson College', 'headquarters location', 'Sadská']
ASK WHERE { resource:Wolfson_College property:headquarters_location resource:Oxford . resource:Wolfson_College property:headquarters_location resource:Sadská }
[]
city
SYSTEM
YES and NO respectively
(Q2007225,P159,Q34217) (Q2007225,P159,Q1298137)
action is_in
entity Q2007225
action intersection
action find_reverse
entity Q34217
relation P159
action find_reverse
entity Q1298137
relation P159
[ANSWER]
['Q2007225', 'P159', 'Q34217'] ['Q2007225', 'P159', 'Q1298137']
ASK WHERE { resource:Q2007225 property:P159 resource:Q34217 . resource:Q2007225 property:P159 resource:Q1298137 }
YES and NO respectively
action is_in
entity Wolfson College
action intersection
action find_reverse
entity Oxford
relation headquarters location
action find_reverse
entity Sadská
relation headquarters location
['Wolfson College', 'headquarters location', 'Oxford'] ['Wolfson College', 'headquarters location', 'Sadská']
ASK WHERE { resource:Wolfson_College property:headquarters_location resource:Oxford . resource:Wolfson_College property:headquarters_location resource:Sadská }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1673758 Q3033
P937
Q56061
USER
Is Göttingen the location where Nicolaas Adrianus Rupke worked ?
(Q1673758,P937,Q3033)
action is_in
entity Q3033
action find
entity Q1673758
relation P937
['Q1673758', 'P937', 'Q3033']
ASK WHERE { resource:Q1673758 property:P937 resource:Q3033 }
Nicolaas Adrianus Rupke Göttingen
action is_in
entity Göttingen
action find
entity Nicolaas Adrianus Rupke
relation work location
['Nicolaas Adrianus Rupke', 'work location', 'Göttingen']
ASK WHERE { resource:Nicolaas_Adrianus_Rupke property:work_location resource:Göttingen }
[]
administrative territorial entity
SYSTEM
YES
(Q1673758,P937,Q3033)
action is_in
entity Q3033
action find
entity Q1673758
relation P937
[ANSWER]
['Q1673758', 'P937', 'Q3033']
ASK WHERE { resource:Q1673758 property:P937 resource:Q3033 }
Yes
action is_in
entity Göttingen
action find
entity Nicolaas Adrianus Rupke
relation work location
['Nicolaas Adrianus Rupke', 'work location', 'Göttingen']
ASK WHERE { resource:Nicolaas_Adrianus_Rupke property:work_location resource:Göttingen }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q723627 Q1673758
P69 P108
Q163740
USER
Which nonprofit organizations were Nicolaas Adrianus Rupke educated or employ Marston Morse ?
OR((Q1673758,P69,c(Q163740)), (Q723627,P108,c(Q163740)))
action filter_type
action union
action find
entity Q1673758
relation P69
action find
entity Q723627
relation P108
type Q163740
{'OR': [['Q1673758', 'P69', {'concept': 'Q163740'}], ['Q723627', 'P108', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1673758 property:P69 ?j } UNION { resource:Q723627 property:P108 ?j } } . ?j rdf:type ontology:Q163740 }
Marston Morse Nicolaas Adrianus Rupke
action filter_type
action union
action find
entity Nicolaas Adrianus Rupke
relation educated at
action find
entity Marston Morse
relation employer
type nonprofit organization
{'OR': [['Nicolaas Adrianus Rupke', 'educated at', {'concept': 'nonprofit organization'}], ['Marston Morse', 'employer', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Nicolaas_Adrianus_Rupke property:educated_at ?j } UNION { resource:Marston_Morse property:employer ?j } } . ?j rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49115 Q21578 Q13371
SYSTEM
Cornell University, Princeton University, Harvard University
Q49115 Q21578 Q13371
OR((Q1673758,P69,c(Q163740)), (Q723627,P108,c(Q163740)))
action filter_type
action union
action find
entity Q1673758
relation P69
action find
entity Q723627
relation P108
type Q163740
Nicolaas Adrianus Rupke were employ ees [ANSWERS]
{'OR': [['Q1673758', 'P69', {'concept': 'Q163740'}], ['Q723627', 'P108', {'concept': 'Q163740'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1673758 property:P69 ?j } UNION { resource:Q723627 property:P108 ?j } } . ?j rdf:type ontology:Q163740 }
Cornell University Princeton University Harvard University
Nicolaas Adrianus Rupke were employ ees Cornell University, Princeton University and Harvard University
Cornell University Princeton University Harvard University
action filter_type
action union
action find
entity Nicolaas Adrianus Rupke
relation educated at
action find
entity Marston Morse
relation employer
type nonprofit organization
{'OR': [['Nicolaas Adrianus Rupke', 'educated at', {'concept': 'nonprofit organization'}], ['Marston Morse', 'employer', {'concept': 'nonprofit organization'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Nicolaas_Adrianus_Rupke property:educated_at ?j } UNION { resource:Marston_Morse property:employer ?j } } . ?j rdf:type ontology:nonprofit_organization }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q22906733
P108
Q502895
USER
Are Chetty Bhanumurthy working for those nonprofit organizations ?
(Q22906733,P108,Q49115) (Q22906733,P108,Q21578) (Q22906733,P108,Q13371)
action is_in
entity prev_answer
action find
entity Q22906733
relation P108
['Q22906733', 'P108', 'Q49115'] ['Q22906733', 'P108', 'Q21578'] ['Q22906733', 'P108', 'Q13371']
ASK WHERE { VALUES ( ?k ) { ( resource:Q49115 ) ( resource:Q21578 ) ( resource:Q13371 ) } . resource:Q22906733 property:P108 ?k }
Chetty Bhanumurthy
action is_in
entity prev_answer
action find
entity Chetty Bhanumurthy
relation employer
['Chetty Bhanumurthy', 'employer', 'Cornell University'] ['Chetty Bhanumurthy', 'employer', 'Princeton University'] ['Chetty Bhanumurthy', 'employer', 'Harvard University']
ASK WHERE { VALUES ( ?k ) { ( resource:Cornell_University ) ( resource:Princeton_University ) ( resource:Harvard_University ) } . resource:Chetty_Bhanumurthy property:employer ?k }
[]
common name
SYSTEM
NO
(Q22906733,P108,Q49115) (Q22906733,P108,Q21578) (Q22906733,P108,Q13371)
action is_in
entity prev_answer
action find
entity Q22906733
relation P108
[ANSWER]
['Q22906733', 'P108', 'Q49115'] ['Q22906733', 'P108', 'Q21578'] ['Q22906733', 'P108', 'Q13371']
ASK WHERE { VALUES ( ?k ) { ( resource:Q49115 ) ( resource:Q21578 ) ( resource:Q13371 ) } . resource:Q22906733 property:P108 ?k }
No
action is_in
entity prev_answer
action find
entity Chetty Bhanumurthy
relation employer
['Chetty Bhanumurthy', 'employer', 'Cornell University'] ['Chetty Bhanumurthy', 'employer', 'Princeton University'] ['Chetty Bhanumurthy', 'employer', 'Harvard University']
ASK WHERE { VALUES ( ?k ) { ( resource:Cornell_University ) ( resource:Princeton_University ) ( resource:Harvard_University ) } . resource:Chetty_Bhanumurthy property:employer ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2007225
P1435
Q41176
USER
Which building is the heritage status of Wolfson College ?
(Q2007225,P1435,c(Q41176))
action filter_type
action find
entity Q2007225
relation P1435
type Q41176
['Q2007225', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q41176 . resource:Q2007225 property:P1435 ?w }
Wolfson College
action filter_type
action find
entity Wolfson College
relation heritage status
type building
['Wolfson College', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:building . resource:Wolfson_College property:heritage_status ?w }
[]
building
Q15700834
SYSTEM
Grade II listed building
Q15700834
(Q2007225,P1435,c(Q41176))
action filter_type
action find
entity Q2007225
relation P1435
type Q41176
The [ANSWER] is the heritage status of Wolfson College
['Q2007225', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q41176 . resource:Q2007225 property:P1435 ?w }
Grade II listed building
The Grade II listed building is the heritage status of Wolfson College
Grade II listed building
action filter_type
action find
entity Wolfson College
relation heritage status
type building
['Wolfson College', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:building . resource:Wolfson_College property:heritage_status ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2007225
P17
Q15617994
USER
Which administrative territory is that school building present in ?
(Q15700834,P17,c(Q15617994))
action filter_type
action find
entity Q2007225
relation P17
type Q15617994
['Q15700834', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q2007225 property:P17 ?a }
Wolfson College
action filter_type
action find
entity Wolfson College
relation country
type designation for an administrative territorial entity
['Grade II listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wolfson_College property:country ?a }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q15700834,P17,c(Q15617994))
action filter_type
action find
entity Q2007225
relation P17
type Q15617994
That school building is the [ANSWER]
['Q15700834', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q2007225 property:P17 ?a }
United Kingdom
That school building is the United Kingdom
United Kingdom
action filter_type
action find
entity Wolfson College
relation country
type designation for an administrative territorial entity
['Grade II listed building', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Wolfson_College property:country ?a }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q2088357
USER
Which administrative territories are the countries of origin of lesser number of television programs and musical ensembles than that administrative territory ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q15416
type Q2088357
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?w WHERE { { ?x property:P495 ?w . ?x rdf:type ontology:Q2088357 . ?w rdf:type ontology:Q15617994 } UNION { ?x property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:P495 resource:Q145 . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } } } } . FILTER ( ?r < ?e ) }
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?w WHERE { { ?x property:country_of_origin ?w . ?x rdf:type ontology:musical_ensemble . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:country_of_origin resource:United_Kingdom . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } } } } . FILTER ( ?r < ?e ) }
[]
designation for an administrative territorial entity television program musical ensemble
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q15416
type Q2088357
[ANSWERS] are the countries of origin of lesser number of television programs and musical ensembles than that administrative territory
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?w WHERE { { ?x property:P495 ?w . ?x rdf:type ontology:Q2088357 . ?w rdf:type ontology:Q15617994 } UNION { ?x property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:P495 resource:Q145 . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15416 ) ( ontology:Q2088357 ) } } } } . FILTER ( ?r < ?e ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of lesser number of television programs and musical ensembles than that administrative territory
Italy Brazil Georgia
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type television program
type musical ensemble
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?w WHERE { { ?x property:country_of_origin ?w . ?x rdf:type ontology:musical_ensemble . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:country_of_origin resource:United_Kingdom . { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:television_program ) ( ontology:musical_ensemble ) } } } } . FILTER ( ?r < ?e ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P793
Q1190554 Q9332 Q41176
USER
Which buildings are max number of events and behaviors a significant event of ?
(c(Q41176),P793,c(Q1190554)|c(Q9332))
action argmax
action union
action find_tuple_counts
relation P793
type Q41176
type Q1190554
action find_tuple_counts
relation P793
type Q41176
type Q9332
[{'concept': 'Q41176'}, 'P793', [{'concept': 'Q1190554'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1190554 ) ( ontology:Q9332 ) } } GROUP BY ?i } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?m ) WHERE { { ?w property:P793 ?j . ?w rdf:type ontology:Q41176 . ?j rdf:type ontology:Q1190554 } UNION { ?w property:P793 ?j . ?w rdf:type ontology:Q41176 . ?j rdf:type ontology:Q9332 } } GROUP BY ?w } }
action argmax
action union
action find_tuple_counts
relation significant event
type building
type event
action find_tuple_counts
relation significant event
type building
type behavior
[{'concept': 'building'}, 'significant event', [{'concept': 'event'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:event ) ( ontology:behavior ) } } GROUP BY ?i } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?m ) WHERE { { ?w property:significant_event ?j . ?w rdf:type ontology:building . ?j rdf:type ontology:event } UNION { ?w property:significant_event ?j . ?w rdf:type ontology:building . ?j rdf:type ontology:behavior } } GROUP BY ?w } }
[]
event behavior building
Q1642585 Q20974169
SYSTEM
Kreuzbauten, 133 avenue des Champs-Élysées
Q1642585 Q20974169
(c(Q41176),P793,c(Q1190554)|c(Q9332))
action argmax
action union
action find_tuple_counts
relation P793
type Q41176
type Q1190554
action find_tuple_counts
relation P793
type Q41176
type Q9332
[ANSWERS] are max number of events and behaviors a significant event of
[{'concept': 'Q41176'}, 'P793', [{'concept': 'Q1190554'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1190554 ) ( ontology:Q9332 ) } } GROUP BY ?i } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?m ) WHERE { { ?w property:P793 ?j . ?w rdf:type ontology:Q41176 . ?j rdf:type ontology:Q1190554 } UNION { ?w property:P793 ?j . ?w rdf:type ontology:Q41176 . ?j rdf:type ontology:Q9332 } } GROUP BY ?w } }
Kreuzbauten 133 avenue des Champs-Élysées
Kreuzbauten and 133 avenue des Champs-Élysées are max number of events and behaviors a significant event of
Kreuzbauten 133 avenue des Champs-Élysées
action argmax
action union
action find_tuple_counts
relation significant event
type building
type event
action find_tuple_counts
relation significant event
type building
type behavior
[{'concept': 'building'}, 'significant event', [{'concept': 'event'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ?g . VALUES ( ?g ) { ( ontology:event ) ( ontology:behavior ) } } GROUP BY ?i } } . FILTER ( ?m = ?b ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?m ) WHERE { { ?w property:significant_event ?j . ?w rdf:type ontology:building . ?j rdf:type ontology:event } UNION { ?w property:significant_event ?j . ?w rdf:type ontology:building . ?j rdf:type ontology:behavior } } GROUP BY ?w } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P740
Q2558684 Q1269299
USER
How many world days and business organizations originated at United Kingdom ?
(c(Q2558684),P740,Q145) (c(Q1269299),P740,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P740
type Q2558684
action filter_type
action find_reverse
entity Q145
relation P740
type Q1269299
[{'concept': 'Q2558684'}, 'P740', 'Q145'] [{'concept': 'Q1269299'}, 'P740', 'Q145']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1269299 ) ( ontology:Q2558684 ) } }
United Kingdom
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation location of formation
type world day
action filter_type
action find_reverse
entity United Kingdom
relation location of formation
type type of business entity
[{'concept': 'world day'}, 'location of formation', 'United Kingdom'] [{'concept': 'type of business entity'}, 'location of formation', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:type_of_business_entity ) ( ontology:world_day ) } }
[]
world day type of business entity
SYSTEM
1 world days and 1 business organizations
Q739416 Q1656887
(c(Q2558684),P740,Q145) (c(Q1269299),P740,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P740
type Q2558684
action filter_type
action find_reverse
entity Q145
relation P740
type Q1269299
[ANSWER]
[{'concept': 'Q2558684'}, 'P740', 'Q145'] [{'concept': 'Q1269299'}, 'P740', 'Q145']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1269299 ) ( ontology:Q2558684 ) } }
BAE Systems International No Diet Day
1 world days and 1 business organizations
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation location of formation
type world day
action filter_type
action find_reverse
entity United Kingdom
relation location of formation
type type of business entity
[{'concept': 'world day'}, 'location of formation', 'United Kingdom'] [{'concept': 'type of business entity'}, 'location of formation', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) WHERE { ?a rdf:type ?e . VALUES ( ?e ) { ( ontology:type_of_business_entity ) ( ontology:world_day ) } }
[]