Simple Question (Direct)
Simple Question
Q5569143
P27
Q15617994
USER
Which administrative territory does Glenn Thomas Trewartha belong to ?
(Q5569143,P27,c(Q15617994))
action filter_type
action find
entity Q5569143
relation P27
type Q15617994
['Q5569143', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q5569143 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Glenn Thomas Trewartha
action filter_type
action find
entity Glenn Thomas Trewartha
relation country of citizenship
type designation for an administrative territorial entity
['Glenn Thomas Trewartha', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Glenn_Thomas_Trewartha property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5569143,P27,c(Q15617994))
action filter_type
action find
entity Q5569143
relation P27
type Q15617994
Glenn Thomas Trewartha belongs to [ANSWER]
['Q5569143', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q5569143 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United States of America
Glenn Thomas Trewartha belongs to United States of America
United States of America
action filter_type
action find
entity Glenn Thomas Trewartha
relation country of citizenship
type designation for an administrative territorial entity
['Glenn Thomas Trewartha', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Glenn_Thomas_Trewartha property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P38
Q8142
USER
What is considered to be the currency of that administrative territory ?
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?r WHERE { resource:Q30 property:P38 ?r . ?r rdf:type ontology:Q8142 }
United States of America
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?r WHERE { resource:United_States_of_America property:currency ?r . ?r rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
[ANSWER] is considered to be the currency of that administrative territory
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?r WHERE { resource:Q30 property:P38 ?r . ?r rdf:type ontology:Q8142 }
United States dollar
United States dollar is considered to be the currency of that administrative territory
United States dollar
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?r WHERE { resource:United_States_of_America property:currency ?r . ?r rdf:type ontology:currency }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4917
P127
Q1076486
USER
Which sports venue is owned by that currency ?
(c(Q1076486),P127,Q4917)
action filter_type
action find_reverse
entity Q4917
relation P127
type Q1076486
[{'concept': 'Q1076486'}, 'P127', 'Q4917']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1076486 . ?a property:P127 resource:Q4917 }
United States dollar
action filter_type
action find_reverse
entity United States dollar
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'United States dollar']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sports_venue . ?a property:owned_by resource:United_States_dollar }
[]
sports venue
Q544553
SYSTEM
Arrowhead Stadium
Q544553
(c(Q1076486),P127,Q4917)
action filter_type
action find_reverse
entity Q4917
relation P127
type Q1076486
Stadium [ANSWER] is owned by that currency
[{'concept': 'Q1076486'}, 'P127', 'Q4917']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1076486 . ?a property:P127 resource:Q4917 }
Arrowhead Stadium
Stadium Arrowhead Stadium is owned by that currency
Arrowhead Stadium
action filter_type
action find_reverse
entity United States dollar
relation owned by
type sports venue
[{'concept': 'sports venue'}, 'owned by', 'United States dollar']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:sports_venue . ?a property:owned_by resource:United_States_dollar }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q813
P17
Q15617994 Q159334 Q4830453
USER
How many administrative territories are greater number of secondary schools or business enterprises situated in than Kyrgyzstan ?
(c(Q159334)|c(Q4830453),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q813
relation P17
type Q159334
type Q4830453
[[{'concept': 'Q159334'}, {'concept': 'Q4830453'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:Q159334 ) ( ontology:Q4830453 ) } . ?p rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P17 resource:Q813 . { { ?w rdf:type ontology:Q159334 } UNION { ?w rdf:type ontology:Q4830453 } } } } . FILTER ( ?n > ?i ) }
Kyrgyzstan
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Kyrgyzstan
relation country
type secondary school
type business enterprise
[[{'concept': 'secondary school'}, {'concept': 'business enterprise'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:secondary_school ) ( ontology:business_enterprise ) } . ?p rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:country resource:Kyrgyzstan . { { ?w rdf:type ontology:secondary_school } UNION { ?w rdf:type ontology:business_enterprise } } } } . FILTER ( ?n > ?i ) }
[]
designation for an administrative territorial entity secondary school business enterprise
SYSTEM
92
Q702 Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q214 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q326029 Q884 Q881 Q219 Q4628 Q822 Q241 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q29999 Q854 Q236 Q230 Q232 Q233 Q20 Q1044 Q27 Q28 Q1025 Q1027 Q189 Q843 Q184 Q1029 Q1028 Q836 Q32 Q228 Q225 Q224 Q222 Q96 Q229 Q17 Q902 Q1033 Q191 Q298 Q114 Q117 Q754 Q212 Q213 Q211 Q215 Q218 Q37 Q833 Q1008 Q29 Q858 Q878 Q948 Q817 Q1014 Q869
(c(Q159334)|c(Q4830453),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q813
relation P17
type Q159334
type Q4830453
[ANSWER]
[[{'concept': 'Q159334'}, {'concept': 'Q4830453'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:Q159334 ) ( ontology:Q4830453 ) } . ?p rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P17 resource:Q813 . { { ?w rdf:type ontology:Q159334 } UNION { ?w rdf:type ontology:Q4830453 } } } } . FILTER ( ?n > ?i ) }
Federated States of Micronesia Israel Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Slovakia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan Duchy of Brunswick South Korea Vietnam Bulgaria Faroe Islands Lebanon Cuba Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Kingdom of the Netherlands Sri Lanka Montenegro Georgia Kazakhstan Malta Norway Sierra Leone Ireland Hungary Mauritania Mauritius Iceland Pakistan Belarus Mozambique Morocco Myanmar Luxembourg Andorra Bosnia and Herzegovina Croatia Albania Mexico Cyprus Japan Bangladesh Nigeria Estonia Chile Kenya Ghana Trinidad and Tobago Ukraine Czech Republic Latvia Slovenia Romania Lithuania Malaysia Côte d'Ivoire Spain Syria United Arab Emirates Tunisia Kuwait Liberia Thailand
92
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Kyrgyzstan
relation country
type secondary school
type business enterprise
[[{'concept': 'secondary school'}, {'concept': 'business enterprise'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:secondary_school ) ( ontology:business_enterprise ) } . ?p rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:country resource:Kyrgyzstan . { { ?w rdf:type ontology:secondary_school } UNION { ?w rdf:type ontology:business_enterprise } } } } . FILTER ( ?n > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2662372
P17
Q15617994 Q159334 Q4830453
USER
And what about Principality of Minsk?
(c(Q159334)|c(Q4830453),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q2662372
relation P17
type Q159334
type Q4830453
[[{'concept': 'Q159334'}, {'concept': 'Q4830453'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?e WHERE { VALUES ( ?f ) { ( ontology:Q159334 ) ( ontology:Q4830453 ) } . ?y rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P17 resource:Q2662372 . { { ?d rdf:type ontology:Q159334 } UNION { ?d rdf:type ontology:Q4830453 } } } } . FILTER ( ?z > ?j ) }
Principality of Minsk
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Principality of Minsk
relation country
type secondary school
type business enterprise
[[{'concept': 'secondary school'}, {'concept': 'business enterprise'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?e WHERE { VALUES ( ?f ) { ( ontology:secondary_school ) ( ontology:business_enterprise ) } . ?y rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:country resource:Principality_of_Minsk . { { ?d rdf:type ontology:secondary_school } UNION { ?d rdf:type ontology:business_enterprise } } } } . FILTER ( ?z > ?j ) }
[]
designation for an administrative territorial entity secondary school business enterprise
SYSTEM
92
Q702 Q801 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q214 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q326029 Q884 Q881 Q219 Q4628 Q822 Q241 Q33 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q29999 Q854 Q236 Q230 Q232 Q233 Q20 Q1044 Q27 Q28 Q1025 Q1027 Q189 Q843 Q184 Q1029 Q1028 Q836 Q32 Q228 Q225 Q224 Q222 Q96 Q229 Q17 Q902 Q1033 Q191 Q298 Q114 Q117 Q754 Q212 Q213 Q211 Q215 Q218 Q37 Q833 Q1008 Q29 Q858 Q878 Q948 Q817 Q1014 Q869
(c(Q159334)|c(Q4830453),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q159334
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q4830453
action count
action filter_multi_types
action find_reverse
entity Q2662372
relation P17
type Q159334
type Q4830453
[ANSWER]
[[{'concept': 'Q159334'}, {'concept': 'Q4830453'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?e WHERE { VALUES ( ?f ) { ( ontology:Q159334 ) ( ontology:Q4830453 ) } . ?y rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P17 resource:Q2662372 . { { ?d rdf:type ontology:Q159334 } UNION { ?d rdf:type ontology:Q4830453 } } } } . FILTER ( ?z > ?j ) }
Federated States of Micronesia Israel Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Slovakia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan Duchy of Brunswick South Korea Vietnam Bulgaria Faroe Islands Lebanon Cuba Finland Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Kingdom of the Netherlands Sri Lanka Montenegro Georgia Kazakhstan Malta Norway Sierra Leone Ireland Hungary Mauritania Mauritius Iceland Pakistan Belarus Mozambique Morocco Myanmar Luxembourg Andorra Bosnia and Herzegovina Croatia Albania Mexico Cyprus Japan Bangladesh Nigeria Estonia Chile Kenya Ghana Trinidad and Tobago Ukraine Czech Republic Latvia Slovenia Romania Lithuania Malaysia Côte d'Ivoire Spain Syria United Arab Emirates Tunisia Kuwait Liberia Thailand
92
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type secondary school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type business enterprise
action count
action filter_multi_types
action find_reverse
entity Principality of Minsk
relation country
type secondary school
type business enterprise
[[{'concept': 'secondary school'}, {'concept': 'business enterprise'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?e WHERE { VALUES ( ?f ) { ( ontology:secondary_school ) ( ontology:business_enterprise ) } . ?y rdf:type ?f } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:country resource:Principality_of_Minsk . { { ?d rdf:type ontology:secondary_school } UNION { ?d rdf:type ontology:business_enterprise } } } } . FILTER ( ?z > ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P669
Q79007 Q1076486
USER
Which streets can approximately 1 sports venue be located ?
(c(Q1076486),P669,c(Q79007))
action approx
action find_reverse_tuple_counts
relation P669
type Q79007
type Q1076486
value 1
[{'concept': 'Q1076486'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P669 ?q . ?o rdf:type ontology:Q1076486 . ?q rdf:type ontology:Q79007 } GROUP BY ?q } . FILTER ( ?e = 1 ) }
action approx
action find_reverse_tuple_counts
relation located on street
type street
type sports venue
value 1
[{'concept': 'sports venue'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:located_on_street ?q . ?o rdf:type ontology:sports_venue . ?q rdf:type ontology:street } GROUP BY ?q } . FILTER ( ?e = 1 ) }
[]
street sports venue
Q2874160 Q2391303 Q2921965
SYSTEM
avenue du Général-Sarrail, avenue de la Porte-Molitor, boulevard d'Auteuil
Q2874160 Q2391303 Q2921965
(c(Q1076486),P669,c(Q79007))
action approx
action find_reverse_tuple_counts
relation P669
type Q79007
type Q1076486
value 1
[ANSWERS] can approximately 1 sports venue be located
[{'concept': 'Q1076486'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P669 ?q . ?o rdf:type ontology:Q1076486 . ?q rdf:type ontology:Q79007 } GROUP BY ?q } . FILTER ( ?e = 1 ) }
avenue du Général-Sarrail avenue de la Porte-Molitor boulevard d'Auteuil
Avenue du Général-Sarrail, avenue de la Porte-Molitor and boulevard d'Auteuil can approximately 1 sports venue be located
avenue du Général-Sarrail avenue de la Porte-Molitor boulevard d'Auteuil
action approx
action find_reverse_tuple_counts
relation located on street
type street
type sports venue
value 1
[{'concept': 'sports venue'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:located_on_street ?q . ?o rdf:type ontology:sports_venue . ?q rdf:type ontology:street } GROUP BY ?q } . FILTER ( ?e = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P559
Q12280 Q79007
USER
Which bridges are the terminus for max number of streets ?
(c(Q79007),P559,Q4348749)
action argmax
action find_reverse_tuple_counts
relation P559
type Q12280
type Q79007
[{'concept': 'Q79007'}, 'P559', 'Q4348749']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:P559 ?t . ?x rdf:type ontology:Q79007 . ?t rdf:type ontology:Q12280 } GROUP BY ?t } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P559 ?u . ?k rdf:type ontology:Q79007 . ?u rdf:type ontology:Q12280 } GROUP BY ?u } } }
action argmax
action find_reverse_tuple_counts
relation terminus
type bridge
type street
[{'concept': 'street'}, 'terminus', 'Lidingöbron']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:terminus ?t . ?x rdf:type ontology:street . ?t rdf:type ontology:bridge } GROUP BY ?t } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:terminus ?u . ?k rdf:type ontology:street . ?u rdf:type ontology:bridge } GROUP BY ?u } } }
[]
bridge street
Q944453
SYSTEM
Langebro
Q944453
(c(Q79007),P559,Q4348749)
action argmax
action find_reverse_tuple_counts
relation P559
type Q12280
type Q79007
[ANSWER] is the terminus for max number of streets
[{'concept': 'Q79007'}, 'P559', 'Q4348749']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:P559 ?t . ?x rdf:type ontology:Q79007 . ?t rdf:type ontology:Q12280 } GROUP BY ?t } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:P559 ?u . ?k rdf:type ontology:Q79007 . ?u rdf:type ontology:Q12280 } GROUP BY ?u } } }
Langebro
Langebro is the terminus for max number of streets
Langebro
action argmax
action find_reverse_tuple_counts
relation terminus
type bridge
type street
[{'concept': 'street'}, 'terminus', 'Lidingöbron']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:terminus ?t . ?x rdf:type ontology:street . ?t rdf:type ontology:bridge } GROUP BY ?t } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ( MAX ( ?i ) AS ?f ) { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { ?k property:terminus ?u . ?k rdf:type ontology:street . ?u rdf:type ontology:bridge } GROUP BY ?u } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P180
Q12280 Q11060274 Q3305213
USER
How many bridges are expressed in less number of prints or paintings than that bridge ?
(c(Q11060274)|c(Q3305213),P180,c(Q12280))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12280
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12280
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q944453
relation P180
type Q11060274
type Q3305213
[[{'concept': 'Q11060274'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12280'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } . ?x rdf:type ?j } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P180 resource:Q944453 . { VALUES ( ?s ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } . ?w rdf:type ?s } } } . FILTER ( ?k < ?z ) }
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type bridge
type print
action find_reverse_tuple_counts
relation depicts
type bridge
type painting
action count
action filter_multi_types
action find_reverse
entity Langebro
relation depicts
type print
type painting
[[{'concept': 'print'}, {'concept': 'painting'}], 'depicts', {'concept': 'bridge'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:print ) ( ontology:painting ) } . ?x rdf:type ?j } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:depicts resource:Langebro . { VALUES ( ?s ) { ( ontology:print ) ( ontology:painting ) } . ?w rdf:type ?s } } } . FILTER ( ?k < ?z ) }
[]
bridge print painting
SYSTEM
0
(c(Q11060274)|c(Q3305213),P180,c(Q12280))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12280
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12280
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q944453
relation P180
type Q11060274
type Q3305213
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12280'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } . ?x rdf:type ?j } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:P180 resource:Q944453 . { VALUES ( ?s ) { ( ontology:Q11060274 ) ( ontology:Q3305213 ) } . ?w rdf:type ?s } } } . FILTER ( ?k < ?z ) }
0
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type bridge
type print
action find_reverse_tuple_counts
relation depicts
type bridge
type painting
action count
action filter_multi_types
action find_reverse
entity Langebro
relation depicts
type print
type painting
[[{'concept': 'print'}, {'concept': 'painting'}], 'depicts', {'concept': 'bridge'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:print ) ( ontology:painting ) } . ?x rdf:type ?j } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { ?w property:depicts resource:Langebro . { VALUES ( ?s ) { ( ontology:print ) ( ontology:painting ) } . ?w rdf:type ?s } } } . FILTER ( ?k < ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P559
Q79007 Q79007 Q34442
USER
How many streets are the endpoints for atleast 2 streets and roads ?
(c(Q79007)|c(Q34442),P559,c(Q79007))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P559
type Q79007
type Q79007
action find_reverse_tuple_counts
relation P559
type Q79007
type Q34442
value 2
[[{'concept': 'Q79007'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?d property:P559 ?p . ?p rdf:type ontology:Q79007 . ?d rdf:type ontology:Q34442 } UNION { ?d property:P559 ?p . ?p rdf:type ontology:Q79007 . ?d rdf:type ontology:Q79007 } } GROUP BY ?p } . FILTER ( ?g >= 2 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation terminus
type street
type street
action find_reverse_tuple_counts
relation terminus
type street
type road
value 2
[[{'concept': 'street'}, {'concept': 'road'}], 'terminus', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?d property:terminus ?p . ?p rdf:type ontology:street . ?d rdf:type ontology:road } UNION { ?d property:terminus ?p . ?p rdf:type ontology:street . ?d rdf:type ontology:street } } GROUP BY ?p } . FILTER ( ?g >= 2 ) }
[]
street street road
SYSTEM
13
Q7984694 Q12337421 Q10949995 Q5328067 Q10941389 Q5510955 Q12011442 Q7911587 Q2136395 Q10881627 Q10543765 Q7849103 Q4887944
(c(Q79007)|c(Q34442),P559,c(Q79007))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P559
type Q79007
type Q79007
action find_reverse_tuple_counts
relation P559
type Q79007
type Q34442
value 2
[ANSWER]
[[{'concept': 'Q79007'}, {'concept': 'Q34442'}], 'P559', {'concept': 'Q79007'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?d property:P559 ?p . ?p rdf:type ontology:Q79007 . ?d rdf:type ontology:Q34442 } UNION { ?d property:P559 ?p . ?p rdf:type ontology:Q79007 . ?d rdf:type ontology:Q79007 } } GROUP BY ?p } . FILTER ( ?g >= 2 ) }
West Chang'an Avenue Strandboulevarden Xuanwumen Inner Street East Chang'an Avenue Taipingqiao Street Fuxingmen Inner Street Åboulevard Valhallavägen H. C. Andersens Boulevard May 4th Street Karlavägen Trädgårdsgatan Norra Benickebrinken
13
action count
action atleast
action union
action find_reverse_tuple_counts
relation terminus
type street
type street
action find_reverse_tuple_counts
relation terminus
type street
type road
value 2
[[{'concept': 'street'}, {'concept': 'road'}], 'terminus', {'concept': 'street'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?g ) ?p WHERE { { ?d property:terminus ?p . ?p rdf:type ontology:street . ?d rdf:type ontology:road } UNION { ?d property:terminus ?p . ?p rdf:type ontology:street . ?d rdf:type ontology:street } } GROUP BY ?p } . FILTER ( ?g >= 2 ) }
[]