Simple Question (Direct)
Simple Question
Q3768915
P611
Q1530022
USER
What religion is Girolamo Dandini affiliated to ?
(Q3768915,P611,c(Q1530022))
action filter_type
action find
entity Q3768915
relation P611
type Q1530022
['Q3768915', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1530022 . resource:Q3768915 property:P611 ?u }
Girolamo Dandini
action filter_type
action find
entity Girolamo Dandini
relation religious order
type religious organization
['Girolamo Dandini', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:religious_organization . resource:Girolamo_Dandini property:religious_order ?u }
[]
religious organization
Q36380
SYSTEM
Society of Jesus
Q36380
(Q3768915,P611,c(Q1530022))
action filter_type
action find
entity Q3768915
relation P611
type Q1530022
Girolamo Dandini is affiliated to [ANSWER]
['Q3768915', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1530022 . resource:Q3768915 property:P611 ?u }
Society of Jesus
Girolamo Dandini is affiliated to Society of Jesus
Society of Jesus
action filter_type
action find
entity Girolamo Dandini
relation religious order
type religious organization
['Girolamo Dandini', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:religious_organization . resource:Girolamo_Dandini property:religious_order ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3768915
P21
Q290
USER
Which sex does Girolamo Dandini belong to ?
(Q3768915,P21,c(Q290))
action filter_type
action find
entity Q3768915
relation P21
type Q290
['Q3768915', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3768915 property:P21 ?e . ?e rdf:type ontology:Q290 }
Girolamo Dandini
action filter_type
action find
entity Girolamo Dandini
relation gender
type sex
['Girolamo Dandini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Girolamo_Dandini property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3768915,P21,c(Q290))
action filter_type
action find
entity Q3768915
relation P21
type Q290
Girolamo Dandini belongs to [ANSWER]
['Q3768915', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q3768915 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
Girolamo Dandini belongs to male
male
action filter_type
action find
entity Girolamo Dandini
relation gender
type sex
['Girolamo Dandini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Girolamo_Dandini property:gender ?e . ?e rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
Which sexes do around the same number of people have as that sex ?
(c(Q502895),P21,c(Q290))
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P21 ?j . ?j rdf:type ontology:Q290 . ?t rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q6581097 property:P21 ?h . ?h rdf:type ontology:Q290 } } . FILTER ( ?m = ?e ) }
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:gender ?j . ?j rdf:type ontology:sex . ?t rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:male property:gender ?h . ?h rdf:type ontology:sex } } . FILTER ( ?m = ?e ) }
[]
sex common name
Q6581097
SYSTEM
male
Q6581097
(c(Q502895),P21,c(Q290))
action approx
action find_reverse_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER] around the same number of people have as that sex
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P21 ?j . ?j rdf:type ontology:Q290 . ?t rdf:type ontology:Q502895 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:Q6581097 property:P21 ?h . ?h rdf:type ontology:Q290 } } . FILTER ( ?m = ?e ) }
male
Male around the same number of people have as that sex
male
action approx
action find_reverse_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:gender ?j . ?j rdf:type ontology:sex . ?t rdf:type ontology:common_name } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { resource:male property:gender ?h . ?h rdf:type ontology:sex } } . FILTER ( ?m = ?e ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1135234 Q3768915
P19
Q15617994
USER
Which administrative territories were Girolamo Dandini or Corrado Hérin born in ?
OR((Q3768915,P19,c(Q15617994)), (Q1135234,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3768915
relation P19
action find
entity Q1135234
relation P19
type Q15617994
{'OR': [['Q3768915', 'P19', {'concept': 'Q15617994'}], ['Q1135234', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?m ) { ( resource:Q3768915 ) ( resource:Q1135234 ) } . ?m property:P19 ?e } . ?e rdf:type ontology:Q15617994 }
Corrado Hérin Girolamo Dandini
action filter_type
action union
action find
entity Girolamo Dandini
relation place of birth
action find
entity Corrado Hérin
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Girolamo Dandini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Corrado Hérin', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?m ) { ( resource:Girolamo_Dandini ) ( resource:Corrado_Hérin ) } . ?m property:place_of_birth ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q6662 Q3367
SYSTEM
Cesena, Aosta
Q6662 Q3367
OR((Q3768915,P19,c(Q15617994)), (Q1135234,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q3768915
relation P19
action find
entity Q1135234
relation P19
type Q15617994
Girolamo Dandini or Corrado Hérin were born in [ANSWERS]
{'OR': [['Q3768915', 'P19', {'concept': 'Q15617994'}], ['Q1135234', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?m ) { ( resource:Q3768915 ) ( resource:Q1135234 ) } . ?m property:P19 ?e } . ?e rdf:type ontology:Q15617994 }
Cesena Aosta
Girolamo Dandini or Corrado Hérin were born in Cesena and Aosta
Cesena Aosta
action filter_type
action union
action find
entity Girolamo Dandini
relation place of birth
action find
entity Corrado Hérin
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Girolamo Dandini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Corrado Hérin', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?m ) { ( resource:Girolamo_Dandini ) ( resource:Corrado_Hérin ) } . ?m property:place_of_birth ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q3367
P190
Q56061 Q515
USER
How many administrative territories or cities are partner town of Aosta ?
(c(Q56061),P190,Q3367) (c(Q515),P190,Q3367)
action count
action union
action filter_type
action find_reverse
entity Q3367
relation P190
type Q56061
action filter_type
action find_reverse
entity Q3367
relation P190
type Q515
[{'concept': 'Q56061'}, 'P190', 'Q3367'] [{'concept': 'Q515'}, 'P190', 'Q3367']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { ?h property:P190 resource:Q3367 . ?h rdf:type ontology:Q515 } UNION { ?h property:P190 resource:Q3367 . ?h rdf:type ontology:Q56061 } }
Aosta
action count
action union
action filter_type
action find_reverse
entity Aosta
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Aosta
relation sister city
type city
[{'concept': 'administrative territorial entity'}, 'sister city', 'Aosta'] [{'concept': 'city'}, 'sister city', 'Aosta']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { ?h property:sister_city resource:Aosta . ?h rdf:type ontology:city } UNION { ?h property:sister_city resource:Aosta . ?h rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity city
SYSTEM
3
Q6555 Q213296 Q847677
(c(Q56061),P190,Q3367) (c(Q515),P190,Q3367)
action count
action union
action filter_type
action find_reverse
entity Q3367
relation P190
type Q56061
action filter_type
action find_reverse
entity Q3367
relation P190
type Q515
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q3367'] [{'concept': 'Q515'}, 'P190', 'Q3367']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { ?h property:P190 resource:Q3367 . ?h rdf:type ontology:Q515 } UNION { ?h property:P190 resource:Q3367 . ?h rdf:type ontology:Q56061 } }
Narbonne Sinaia Kaolack
3
action count
action union
action filter_type
action find_reverse
entity Aosta
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Aosta
relation sister city
type city
[{'concept': 'administrative territorial entity'}, 'sister city', 'Aosta'] [{'concept': 'city'}, 'sister city', 'Aosta']
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { ?h property:sister_city resource:Aosta . ?h rdf:type ontology:city } UNION { ?h property:sister_city resource:Aosta . ?h rdf:type ontology:administrative_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q902
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with less number of administrative territories than Bangladesh ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?h < ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q902 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } }
Bangladesh
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bangladesh
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?h < ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Bangladesh property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with less number of administrative territories than Bangladesh
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?h < ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q902 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania, Norway and Tunisia have diplomatic relationships with less number of administrative territories than Bangladesh
Romania Norway Tunisia
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Bangladesh
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?h < ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Bangladesh property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q15617994
USER
Which administrative territories have around 4 people or holidays as their patron saint ?
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 4
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = 4 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?g WHERE { { ?g property:P417 ?n . ?n rdf:type ontology:Q502895 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P417 ?n . ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1445650 } } GROUP BY ?g } }
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = 4 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?g WHERE { { ?g property:patron_saint ?n . ?n rdf:type ontology:common_name . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:patron_saint ?n . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:holiday } } GROUP BY ?g } }
[]
common name holiday designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P417,c(Q502895)|c(Q1445650))
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
value 4
[ANSWER] have around 4 people or holidays as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = 4 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?g WHERE { { ?g property:P417 ?n . ?n rdf:type ontology:Q502895 . ?g rdf:type ontology:Q15617994 } UNION { ?g property:P417 ?n . ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1445650 } } GROUP BY ?g } }
Poland
Poland have around 4 people or holidays as their patron saint
Poland
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
value 4
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?g WHERE { FILTER ( ?q = 4 ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) ?g WHERE { { ?g property:patron_saint ?n . ?n rdf:type ontology:common_name . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:patron_saint ?n . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:holiday } } GROUP BY ?g } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36
P127
Q12280
USER
Which bridge is owned by that administrative territory ?
(c(Q12280),P127,Q36)
action filter_type
action find_reverse
entity Q36
relation P127
type Q12280
[{'concept': 'Q12280'}, 'P127', 'Q36']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q36 . ?z rdf:type ontology:Q12280 }
Poland
action filter_type
action find_reverse
entity Poland
relation owned by
type bridge
[{'concept': 'bridge'}, 'owned by', 'Poland']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Poland . ?z rdf:type ontology:bridge }
[]
bridge
Q888749
SYSTEM
Bolesławiec rail viaduct
Q888749
(c(Q12280),P127,Q36)
action filter_type
action find_reverse
entity Q36
relation P127
type Q12280
[ANSWER] is owned by that administrative territory
[{'concept': 'Q12280'}, 'P127', 'Q36']
SELECT DISTINCT ?z WHERE { ?z property:P127 resource:Q36 . ?z rdf:type ontology:Q12280 }
Bolesławiec rail viaduct
Bolesławiec rail viaduct is owned by that administrative territory
Bolesławiec rail viaduct
action filter_type
action find_reverse
entity Poland
relation owned by
type bridge
[{'concept': 'bridge'}, 'owned by', 'Poland']
SELECT DISTINCT ?z WHERE { ?z property:owned_by resource:Poland . ?z rdf:type ontology:bridge }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q36
P740
Q2088357 Q215380
USER
How many musical ensembles or bands were formed at Poland ?
(c(Q2088357),P740,Q36) (c(Q215380),P740,Q36)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P740
type Q2088357
action filter_type
action find_reverse
entity Q36
relation P740
type Q215380
[{'concept': 'Q2088357'}, 'P740', 'Q36'] [{'concept': 'Q215380'}, 'P740', 'Q36']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P740 resource:Q36 . ?f rdf:type ontology:Q215380 } UNION { ?f property:P740 resource:Q36 . ?f rdf:type ontology:Q2088357 } }
Poland
action count
action union
action filter_type
action find_reverse
entity Poland
relation location of formation
type musical ensemble
action filter_type
action find_reverse
entity Poland
relation location of formation
type band
[{'concept': 'musical ensemble'}, 'location of formation', 'Poland'] [{'concept': 'band'}, 'location of formation', 'Poland']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:location_of_formation resource:Poland . ?f rdf:type ontology:band } UNION { ?f property:location_of_formation resource:Poland . ?f rdf:type ontology:musical_ensemble } }
[]
musical ensemble band
SYSTEM
10
Q804514 Q4412851 Q26209505 Q7248549 Q11729412 Q11764258 Q115283 Q9395132 Q4383579 Q18590854
(c(Q2088357),P740,Q36) (c(Q215380),P740,Q36)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P740
type Q2088357
action filter_type
action find_reverse
entity Q36
relation P740
type Q215380
[ANSWER]
[{'concept': 'Q2088357'}, 'P740', 'Q36'] [{'concept': 'Q215380'}, 'P740', 'Q36']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:P740 resource:Q36 . ?f rdf:type ontology:Q215380 } UNION { ?f property:P740 resource:Q36 . ?f rdf:type ontology:Q2088357 } }
Blog 27 Queens Cold Therapy Pyorrhoea June Lunatic Soul Black River Łąki Łan The Car Is on Fire Trzynasta w Samo Południe
10
action count
action union
action filter_type
action find_reverse
entity Poland
relation location of formation
type musical ensemble
action filter_type
action find_reverse
entity Poland
relation location of formation
type band
[{'concept': 'musical ensemble'}, 'location of formation', 'Poland'] [{'concept': 'band'}, 'location of formation', 'Poland']
SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) WHERE { { ?f property:location_of_formation resource:Poland . ?f rdf:type ontology:band } UNION { ?f property:location_of_formation resource:Poland . ?f rdf:type ontology:musical_ensemble } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q774
P85
Q484692 Q7725634 Q15617994
USER
How many administrative territories have more number of hymns and literary works as their anthem than Guatemala ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q774
relation P85
type Q484692
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?q ) WHERE { { ?x property:P85 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q484692 } UNION { ?x property:P85 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q7725634 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q774 property:P85 ?k . { VALUES ( ?u ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?k rdf:type ?u } } } . FILTER ( ?q > ?y ) }
Guatemala
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find
entity Guatemala
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?q ) WHERE { { ?x property:anthem ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:hymn } UNION { ?x property:anthem ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:literary_work } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Guatemala property:anthem ?k . { VALUES ( ?u ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?k rdf:type ?u } } } . FILTER ( ?q > ?y ) }
[]
hymn literary work designation for an administrative territorial entity
SYSTEM
3
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q774
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?q ) WHERE { { ?x property:P85 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q484692 } UNION { ?x property:P85 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q7725634 } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Q774 property:P85 ?k . { VALUES ( ?u ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?k rdf:type ?u } } } . FILTER ( ?q > ?y ) }
Russia Belize Somalia
3
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find
entity Guatemala
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?q ) WHERE { { ?x property:anthem ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:hymn } UNION { ?x property:anthem ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:literary_work } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { resource:Guatemala property:anthem ?k . { VALUES ( ?u ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?k rdf:type ?u } } } . FILTER ( ?q > ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q796
P85
Q484692 Q7725634 Q15617994
USER
And how about Iraq?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q796
relation P85
type Q484692
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { { ?p property:P85 ?k . ?k rdf:type ontology:Q484692 . ?p rdf:type ontology:Q15617994 } UNION { ?p property:P85 ?k . ?k rdf:type ontology:Q7725634 . ?p rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Q796 property:P85 ?t . { ?t rdf:type ?h . VALUES ( ?h ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?y > ?a ) }
Iraq
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find
entity Iraq
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { { ?p property:anthem ?k . ?k rdf:type ontology:hymn . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?p property:anthem ?k . ?k rdf:type ontology:literary_work . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Iraq property:anthem ?t . { ?t rdf:type ?h . VALUES ( ?h ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?y > ?a ) }
[]
hymn literary work designation for an administrative territorial entity
SYSTEM
3
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action count
action filter_multi_types
action find
entity Q796
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { { ?p property:P85 ?k . ?k rdf:type ontology:Q484692 . ?p rdf:type ontology:Q15617994 } UNION { ?p property:P85 ?k . ?k rdf:type ontology:Q7725634 . ?p rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Q796 property:P85 ?t . { ?t rdf:type ?h . VALUES ( ?h ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?y > ?a ) }
Russia Belize Somalia
3
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find
entity Iraq
relation anthem
type hymn
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?k ) AS ?y ) WHERE { { ?p property:anthem ?k . ?k rdf:type ontology:hymn . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?p property:anthem ?k . ?k rdf:type ontology:literary_work . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Iraq property:anthem ?t . { ?t rdf:type ?h . VALUES ( ?h ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?y > ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q15617994 Q502895
USER
How many administrative territories are atmost 1 administrative territories and people named after ?
(c(Q15617994)|c(Q502895),P138,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
value 1
[[{'concept': 'Q15617994'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?v ) WHERE { { ?q property:P138 ?g . ?g rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } UNION { ?q property:P138 ?g . ?g rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q502895 } } GROUP BY ?g } . FILTER ( ?v <= 1 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
value 1
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'common name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?v ) WHERE { { ?q property:named_after ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:named_after ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?g } . FILTER ( ?v <= 1 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity common name
SYSTEM
383
Q804 Q572949 Q801 Q800 Q103408 Q419 Q81077 Q414 Q1799797 Q55 Q2871 Q490521 Q786 Q40806 Q157598 Q224139 Q3898 Q159 Q155 Q12689 Q52240 Q3476 Q17686 Q46490 Q3372 Q243474 Q7281814 Q549449 Q13376 Q13373 Q42803 Q82670 Q636991 Q739 Q100125 Q730 Q733 Q6681 Q736 Q12798 Q586072 Q1280 Q1282 Q17827 Q1273 Q913434 Q1279 Q186538 Q640473 Q189 Q184 Q1028 Q1458 Q570120 Q18421666 Q167215 Q42777 Q159856 Q6274 Q279028 Q2396564 Q53127 Q298 Q115 Q114 Q41158 Q626792 Q549749 Q40871 Q43055 Q42509 Q629830 Q1427674 Q53334 Q3922 Q42839 Q7603016 Q42835 Q505191 Q279373 Q3697039 Q58457 Q3326 Q214929 Q627935 Q2719360 Q948 Q42942 Q1243 Q519157 Q3266 Q3105 Q269476 Q33788 Q6122 Q42931 Q700831 Q80599 Q705 Q539059 Q668 Q185619 Q5084 Q6231 Q660185 Q6237 Q5642 Q99950 Q45 Q792 Q790 Q796 Q21200959 Q794 Q889 Q884 Q12788 Q26727498 Q632209 Q241 Q11340 Q11343 Q585248 Q155622 Q3798 Q12515 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q39 Q38 Q1023890 Q101226 Q42906 Q40516 Q1987554 Q159626 Q236 Q232 Q129003 Q81729 Q1101 Q1206596 Q391167 Q3038 Q52981 Q3139 Q514208 Q3468865 Q36784 Q622505 Q555328 Q1037 Q1033 Q1030 Q53873 Q18040 Q3926245 Q697 Q186115 Q39985 Q750 Q50156 Q42749 Q570035 Q540441 Q13137 Q1630 Q2009 Q39912 Q498534 Q40866 Q40862 Q191 Q1435624 Q79 Q769621 Q77 Q46130 Q512943 Q305352 Q192917 Q94979 Q39395 Q176 Q487929 Q674852 Q478142 Q1951 Q1952 Q536647 Q116706 Q1256 Q40641 Q634084 Q40131 Q102634 Q100368 Q3278 Q19207 Q522459 Q144711 Q712 Q717 Q42993 Q488513 Q243311 Q503160 Q2993085 Q42996 Q954 Q690417 Q826 Q822 Q1142326 Q244095 Q223459 Q42419 Q502434 Q13645 Q155019 Q6986 Q258974 Q1527970 Q107426 Q14943702 Q681329 Q12661 Q20 Q5274 Q28 Q29 Q111460 Q50932 Q20489 Q390125 Q205050 Q581067 Q894049 Q40611 Q161825 Q359324 Q34607 Q223 Q222 Q221 Q229 Q228 Q580447 Q10957559 Q23178 Q968 Q965 Q2152015 Q333389 Q627223 Q2938 Q1210 Q1216 Q503757 Q917 Q916 Q1005 Q573523 Q40497 Q2742 Q1438 Q81740 Q837 Q17669 Q810 Q811 Q813 Q255361 Q819 Q654138 Q81261 Q493437 Q863 Q574429 Q869 Q111543 Q102736 Q269174 Q278221 Q12434 Q20077 Q31872 Q95067 Q95066 Q142 Q53246 Q1948 Q262 Q148 Q157266 Q3319482 Q264620 Q39971 Q73532 Q42626 Q42628 Q499045 Q490167 Q20103 Q10312 Q2009898 Q774 Q42245 Q4431 Q770 Q131633 Q2596432 Q928 Q19306 Q759201 Q424 Q675616 Q854 Q9574 Q2790 Q566435 Q496885 Q42984 Q552822 Q6998 Q155144 Q645814 Q2139159 Q1041 Q216977 Q489929 Q629664 Q1904 Q393594 Q41003 Q347 Q43046 Q81138 Q17 Q15059063 Q42668 Q3940173 Q4066675 Q138823 Q697787 Q47578 Q11337 Q211 Q159605 Q215 Q1837 Q501626 Q554187 Q23247 Q974 Q971 Q496978 Q23238 Q11119 Q566795 Q631654 Q42192 Q645340 Q9187 Q42926 Q775 Q14870 Q100041 Q1019 Q772 Q1014 Q1016 Q16104 Q243337 Q42441 Q182248 Q20458 Q20517
(c(Q15617994)|c(Q502895),P138,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q502895
value 1
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q502895'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?v ) WHERE { { ?q property:P138 ?g . ?g rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } UNION { ?q property:P138 ?g . ?g rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q502895 } } GROUP BY ?g } . FILTER ( ?v <= 1 ) }
Panama Solnhofen Israel Costa Rica Adro Peru Montecorvino Rovella Argentina Wolfskehlen Netherlands Hagen Strausberg Dominican Republic Pedavena Kulmbach Frasso Sabino Castrop-Rauxel Russia Brazil Pas-de-Calais Pontremoli L'Aquila Tortona Arcole Eure Rees Radyr Prince of Orange Pistoia Lucca Olginate Fiesole Jacobsdorf Colombia Calcio, Lombardy Suriname Paraguay Crotone Ecuador Vendée Chorin Umbria Lazio Moncalvo Tuscany Les Halles Marche Arzachena Hohenstein Iceland Belarus Morocco Calabria Hollenstedt Loguivy-de-la-Mer Cernusco Lombardone Abbiategrasso Duchy of Brabant Sondrio Simmering Mallee Farra d'Isonzo Chile Ethiopia Kenya Cortina d'Ampezzo Fehrbellin Heinsen Livigno Gorgonzola Bussero Meerfeld Wernborn Remanzacco Detmold Brivio Mitino Calco Leuna Rovereto Crescenzago Caiazzo Corrèze Pitigliano Berkenbrück Duchy of Luxembourg Tunisia Lierna Veneto Templin Charente Vosges Perinaldo New Caledonia Asti Merate Sögel Auletta Zeeland Kelbra India Cernusco sul Naviglio hamlet Cremona Huangpu District Lecco Brilon Predappio Portugal El Salvador Haiti Iraq Keroland Iran Afghanistan South Korea Val-de-Marne Mirafiori Basedow Cuba Sprockhövel Wetter (Ruhr) Glienicke/Nordbahn Bernkastel-Kues Flensburg Gard Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Switzerland Italy Huangpu District Mapello Cologno Monzese Bormio Nieder-Roden Württemberg Montenegro Kazakhstan French Southern and Antarctic Lands Radeberg North Brabant Deux-Nèthes Ozieri Helgoland Faenza Alpes-Maritimes Jettenbach Tõravere region of France Rauen Urmitz Rwanda Nigeria Namibia Diamante Candelo QT8 Nauru Montmartre Brugherio Bolivia Secinaro Paderno d'Adda Hillesheim Tautenburg Teramo Altona Yukon Usmate Velate Diepholz Giussano Saronno Estonia Yasnaya Polyana Egypt Sanshui District Uruguay Rhône Sailauf Aban Erice Pianoro Sovico Quebec Milazzo Dätgen Schierstein Alberta Nova Scotia Dassow Ceccano Liguria Macherio Trebur Chiavenna Monsummano Terme Cisano Bergamasco Charente-Maritime Canosio Bad Harzburg Ettringen Fiji Venezuela Gessate Anklam Sacrofano Wolfratshausen Levashovo, Saint Petersburg Pero Zimbabwe Währing Maldives Lebanon Seine Bellagio Borbona Vimodrone Sangerhausen Tempio Pausania Duchy of Lorraine Gotha Bitburg Ober-Roden Anjou Sprendlingen Dümmer Nord Norway Balve Hungary Spain Pontevico Helpt Savigliano Linz am Rhein Geilenkirchen Britz Borodino (village), Mozhaysky District, Moscow Oblast Casteggio Daun Admont Este Greenland Albania Republic of Macedonia Cyprus Andorra Duchy of Styria Moldavia Bisceglie Warburg Burkina Faso Riedelbach Palau Briesen Leverkusen Lombardy Piedmont Oberammergau Bhutan Angola Gambia Flechtingen Carnate Münster Campania Lauta Nepal Serravalle Scrivia Jordan Nicaragua Kyrgyzstan Werfen Laos Rhede, Lower Saxony Rudersberg Arneburg Tajikistan Seeheim-Jugenheim Thailand Provaglio d'Iseo San Marcello Pistoiese Worpswede Berchtesgaden Bad Honnef Werdau Moosburg an der Isar Ambivere Alzano Lombardo France Codroipo Manitoba Algeria People's Republic of China Sternberg Molegbe Garching bei München Gela Ruhpolding Vercurago Robbiate Sinagra, Sicily Pielenhofen Assisi Tavagnasco Oberhöchstadt Guatemala Robecco d'Oglio Bad Köstritz Friesland Hallstatt Euvelgunne Philippines Altamura Auerbach Cambodia Langenzersdorf Sri Lanka Pino Torinese Udine Erpel Isnello Turbigo Mecklenburg-Güstrow Freising Alsace-Lorraine Kröpelin Reichenbach Senegal Coreglia Antelminelli Avola Arbesbach Ontario Agia Paraskevi Palestro Liechtenstein Olgiate Molgora Nocera Inferiore Japan Kellaways Pudost Rogoredo Annino Farnese, Lazio Duchy of Limburg Vittorio Veneto Herdecke Latvia Tivoli Slovenia Wohldorf-Ohlstedt Wildeshausen Lunden Belgirate Democratic Republic of the Congo Republic of the Congo Roccapalumba Baveno Warstein Schalkenmehren Selent San Donato Milanese Brenk Carmagnola Calolziocorte Gelderland Siegburg Carpi Madagascar Drenthe Liberia Libya Ahrensburg Issum Cassina de' Pecchi Nordwalde Gubbio Treiso
383
action count
action atmost
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type common name
value 1
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'common name'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?v ) WHERE { { ?q property:named_after ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:named_after ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?g } . FILTER ( ?v <= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P710
Q1190554
USER
What event were Poland a participant of ?
(c(Q1190554),P710,Q36)
action filter_type
action find_reverse
entity Q36
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q36']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1190554 . ?y property:P710 resource:Q36 }
Poland
action filter_type
action find_reverse
entity Poland
relation participant
type event
[{'concept': 'event'}, 'participant', 'Poland']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:event . ?y property:participant resource:Poland }
[]
event
Q716479 Q2237268 Q16470
SYSTEM
Battle of Świecino, Battle of Umm Qasr, Normandy landings
Q716479 Q2237268 Q16470
(c(Q1190554),P710,Q36)
action filter_type
action find_reverse
entity Q36
relation P710
type Q1190554
Poland were the [ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q36']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1190554 . ?y property:P710 resource:Q36 }
Battle of Świecino Battle of Umm Qasr Normandy landings
Poland were the Battle of Świecino, Battle of Umm Qasr and Normandy landings
Battle of Świecino Battle of Umm Qasr Normandy landings
action filter_type
action find_reverse
entity Poland
relation participant
type event
[{'concept': 'event'}, 'participant', 'Poland']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:event . ?y property:participant resource:Poland }
[]
Clarification
Simple Question|Single Entity|Indirect
Q716479
P361
Q1190554
USER
Which event is that one a component of ?
(Q716479,P361,c(Q1190554))
action filter_type
action find
entity Q716479
relation P361
type Q1190554
['Q716479', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q716479 property:P361 ?u . ?u rdf:type ontology:Q1190554 }
Battle of Świecino
action filter_type
action find
entity Battle of Świecino
relation part of
type event
['Battle of Świecino', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:Battle_of_Świecino property:part_of ?u . ?u rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q716479
SYSTEM
Did you mean Battle of Świecino ?
Q716479 Q2237268 Q16470
(Q716479,P361,c(Q1190554)) (Q2237268,P361,c(Q1190554)) (Q16470,P361,c(Q1190554))
[ANSWER]
['Q716479', 'P361', {'concept': 'Q1190554'}] ['Q2237268', 'P361', {'concept': 'Q1190554'}] ['Q16470', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q716479 property:P361 ?u . ?u rdf:type ontology:Q1190554 }
Battle of Świecino Battle of Umm Qasr Normandy landings
Did you mean Battle of Świecino ?
Battle of Świecino
['Battle of Świecino', 'part of', {'concept': 'event'}] ['Battle of Umm Qasr', 'part of', {'concept': 'event'}] ['Normandy landings', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:Battle_of_Świecino property:part_of ?u . ?u rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(Q716479,P361,c(Q1190554))
['Q716479', 'P361', {'concept': 'Q1190554'}]
['Battle of Świecino', 'part of', {'concept': 'event'}]
[]
Q315921
SYSTEM
Thirteen Years' War
Q315921
(Q716479,P361,c(Q1190554))
action filter_type
action find
entity Q716479
relation P361
type Q1190554
Which event is that one a component of
['Q716479', 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q716479 property:P361 ?u . ?u rdf:type ontology:Q1190554 }
Thirteen Years' War
Which event is that one a component of
Thirteen Years' War
action filter_type
action find
entity Battle of Świecino
relation part of
type event
['Battle of Świecino', 'part of', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:Battle_of_Świecino property:part_of ?u . ?u rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P172
Q502895
USER
Who have Norway as his/her race ?
(c(Q502895),P172,Q20)
action filter_type
action find_reverse
entity Q20
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q20']
SELECT DISTINCT ?q WHERE { ?q property:P172 resource:Q20 . ?q rdf:type ontology:Q502895 }
Norway
action filter_type
action find_reverse
entity Norway
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Norway']
SELECT DISTINCT ?q WHERE { ?q property:ethnic_group resource:Norway . ?q rdf:type ontology:common_name }
[]
common name
Q2419983 Q1333369
SYSTEM
Iselin Steiro, Karyn Marshall
Q2419983 Q1333369
(c(Q502895),P172,Q20)
action filter_type
action find_reverse
entity Q20
relation P172
type Q502895
[ANSWERS] have Norway as his/her race
[{'concept': 'Q502895'}, 'P172', 'Q20']
SELECT DISTINCT ?q WHERE { ?q property:P172 resource:Q20 . ?q rdf:type ontology:Q502895 }
Iselin Steiro Karyn Marshall
Iselin Steiro and Karyn Marshall have Norway as his/her race
Iselin Steiro Karyn Marshall
action filter_type
action find_reverse
entity Norway
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Norway']
SELECT DISTINCT ?q WHERE { ?q property:ethnic_group resource:Norway . ?q rdf:type ontology:common_name }
[]