Simple Question (Direct)
Simple Question
Q725341
P19
Q56061
USER
Which administrative territory is the place of birth of Tiga ?
(Q725341,P19,c(Q56061))
action filter_type
action find
entity Q725341
relation P19
type Q56061
['Q725341', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q725341 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Tiga
action filter_type
action find
entity Tiga
relation place of birth
type administrative territorial entity
['Tiga', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Tiga property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340
SYSTEM
Montreal
Q340
(Q725341,P19,c(Q56061))
action filter_type
action find
entity Q725341
relation P19
type Q56061
[ANSWER] is the place of birth of Tiga
['Q725341', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q725341 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Montreal
Montreal is the place of birth of Tiga
Montreal
action filter_type
action find
entity Tiga
relation place of birth
type administrative territorial entity
['Tiga', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Tiga property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q340
P276
Q132241
USER
Which festivals are located at that administrative territory ?
(c(Q132241),P276,Q340)
action filter_type
action find_reverse
entity Q340
relation P276
type Q132241
[{'concept': 'Q132241'}, 'P276', 'Q340']
SELECT DISTINCT ?f WHERE { ?f property:P276 resource:Q340 . ?f rdf:type ontology:Q132241 }
Montreal
action filter_type
action find_reverse
entity Montreal
relation location
type festival
[{'concept': 'festival'}, 'location', 'Montreal']
SELECT DISTINCT ?f WHERE { ?f property:location resource:Montreal . ?f rdf:type ontology:festival }
[]
festival
Q3070478 Q1362509
SYSTEM
Comedia, Just for Laughs
Q3070478 Q1362509
(c(Q132241),P276,Q340)
action filter_type
action find_reverse
entity Q340
relation P276
type Q132241
[ANSWERS] are located at that administrative territory
[{'concept': 'Q132241'}, 'P276', 'Q340']
SELECT DISTINCT ?f WHERE { ?f property:P276 resource:Q340 . ?f rdf:type ontology:Q132241 }
Comedia Just for Laughs
Comedia and Just for Laughs are located at that administrative territory
Comedia Just for Laughs
action filter_type
action find_reverse
entity Montreal
relation location
type festival
[{'concept': 'festival'}, 'location', 'Montreal']
SELECT DISTINCT ?f WHERE { ?f property:location resource:Montreal . ?f rdf:type ontology:festival }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1362509
P17
Q1048835
USER
Which political territory is that festival situated in ?
(Q1362509,P17,c(Q1048835))
action filter_type
action find
entity Q1362509
relation P17
type Q1048835
['Q1362509', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1362509 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Just for Laughs
action filter_type
action find
entity Just for Laughs
relation country
type political territorial entity
['Just for Laughs', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Just_for_Laughs property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q1362509
SYSTEM
Did you mean Just for Laughs ?
Q3070478 Q1362509
(Q3070478,P17,c(Q1048835)) (Q1362509,P17,c(Q1048835))
[ANSWER]
['Q3070478', 'P17', {'concept': 'Q1048835'}] ['Q1362509', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1362509 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Comedia Just for Laughs
Did you mean Just for Laughs ?
Just for Laughs
['Comedia', 'country', {'concept': 'political territorial entity'}] ['Just for Laughs', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Just_for_Laughs property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1362509,P17,c(Q1048835))
['Q1362509', 'P17', {'concept': 'Q1048835'}]
['Just for Laughs', 'country', {'concept': 'political territorial entity'}]
[]
Q16
SYSTEM
Canada
Q16
(Q1362509,P17,c(Q1048835))
action filter_type
action find
entity Q1362509
relation P17
type Q1048835
That festival is situated in [ANSWER]
['Q1362509', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1362509 property:P17 ?w . ?w rdf:type ontology:Q1048835 }
Canada
That festival is situated in Canada
Canada
action filter_type
action find
entity Just for Laughs
relation country
type political territorial entity
['Just for Laughs', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Just_for_Laughs property:country ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16 Q4169
P840
Q15416
USER
How many television programs have their narrative set in Canada or outer space ?
(c(Q15416),P840,Q16) (c(Q15416),P840,Q4169)
action count
action union
action filter_type
action find_reverse
entity Q16
relation P840
type Q15416
action filter_type
action find_reverse
entity Q4169
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q16'] [{'concept': 'Q15416'}, 'P840', 'Q4169']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Q16 ) ( resource:Q4169 ) } . ?q property:P840 ?r }
Canada outer space
action count
action union
action filter_type
action find_reverse
entity Canada
relation narrative location
type television program
action filter_type
action find_reverse
entity outer space
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Canada'] [{'concept': 'television program'}, 'narrative location', 'outer space']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Canada ) ( resource:outer_space ) } . ?q property:narrative_location ?r }
[]
television program
SYSTEM
2
Q18152713 Q21664031
(c(Q15416),P840,Q16) (c(Q15416),P840,Q4169)
action count
action union
action filter_type
action find_reverse
entity Q16
relation P840
type Q15416
action filter_type
action find_reverse
entity Q4169
relation P840
type Q15416
[ANSWER]
[{'concept': 'Q15416'}, 'P840', 'Q16'] [{'concept': 'Q15416'}, 'P840', 'Q4169']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Q16 ) ( resource:Q4169 ) } . ?q property:P840 ?r }
Miles from Tomorrowland Teenage Mutant Ninja Turtles (2012 TV series) (season 4)
2
action count
action union
action filter_type
action find_reverse
entity Canada
relation narrative location
type television program
action filter_type
action find_reverse
entity outer space
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Canada'] [{'concept': 'television program'}, 'narrative location', 'outer space']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { VALUES ( ?r ) { ( resource:Canada ) ( resource:outer_space ) } . ?q property:narrative_location ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q340
P138
Q8502
USER
Which mountain is Montreal named after ?
(Q340,P138,c(Q8502))
action filter_type
action find
entity Q340
relation P138
type Q8502
['Q340', 'P138', {'concept': 'Q8502'}]
SELECT DISTINCT ?l WHERE { resource:Q340 property:P138 ?l . ?l rdf:type ontology:Q8502 }
Montreal
action filter_type
action find
entity Montreal
relation named after
type mountain
['Montreal', 'named after', {'concept': 'mountain'}]
SELECT DISTINCT ?l WHERE { resource:Montreal property:named_after ?l . ?l rdf:type ontology:mountain }
[]
mountain
Q1757764
SYSTEM
Mount Royal
Q1757764
(Q340,P138,c(Q8502))
action filter_type
action find
entity Q340
relation P138
type Q8502
Montreal is named for [ANSWER]
['Q340', 'P138', {'concept': 'Q8502'}]
SELECT DISTINCT ?l WHERE { resource:Q340 property:P138 ?l . ?l rdf:type ontology:Q8502 }
Mount Royal
Montreal is named for Mount Royal
Mount Royal
action filter_type
action find
entity Montreal
relation named after
type mountain
['Montreal', 'named after', {'concept': 'mountain'}]
SELECT DISTINCT ?l WHERE { resource:Montreal property:named_after ?l . ?l rdf:type ontology:mountain }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20587521
Q8502
USER
And how about Capel Seion?
(Q20587521,P138,c(Q8502))
action filter_type
action find
entity Q20587521
relation P138
type Q8502
['Q20587521', 'P138', {'concept': 'Q8502'}]
SELECT DISTINCT ?l WHERE { resource:Q20587521 property:P138 ?l . ?l rdf:type ontology:Q8502 }
Capel Seion
action filter_type
action find
entity Capel Seion
relation named after
type mountain
['Capel Seion', 'named after', {'concept': 'mountain'}]
SELECT DISTINCT ?l WHERE { resource:Capel_Seion property:named_after ?l . ?l rdf:type ontology:mountain }
[]
mountain
Q205318
SYSTEM
Zion
Q205318
(Q20587521,P138,c(Q8502))
action filter_type
action find
entity Q20587521
relation P138
type Q8502
[ANSWER]
['Q20587521', 'P138', {'concept': 'Q8502'}]
SELECT DISTINCT ?l WHERE { resource:Q20587521 property:P138 ?l . ?l rdf:type ontology:Q8502 }
Zion
Zion
action filter_type
action find
entity Capel Seion
relation named after
type mountain
['Capel Seion', 'named after', {'concept': 'mountain'}]
SELECT DISTINCT ?l WHERE { resource:Capel_Seion property:named_after ?l . ?l rdf:type ontology:mountain }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q284446 Q20587521
P17
Q15617994
USER
Which administrative territories are Capel Seion or Orroli present in ?
OR((Q20587521,P17,c(Q15617994)), (Q284446,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20587521
relation P17
action find
entity Q284446
relation P17
type Q15617994
{'OR': [['Q20587521', 'P17', {'concept': 'Q15617994'}], ['Q284446', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q20587521 property:P17 ?p } UNION { resource:Q284446 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Orroli Capel Seion
action filter_type
action union
action find
entity Capel Seion
relation country
action find
entity Orroli
relation country
type designation for an administrative territorial entity
{'OR': [['Capel Seion', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Orroli', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Capel_Seion property:country ?p } UNION { resource:Orroli property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q145
SYSTEM
Italy, United Kingdom
Q38 Q145
OR((Q20587521,P17,c(Q15617994)), (Q284446,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q20587521
relation P17
action find
entity Q284446
relation P17
type Q15617994
Capel Seion or Orroli are from [ANSWERS]
{'OR': [['Q20587521', 'P17', {'concept': 'Q15617994'}], ['Q284446', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q20587521 property:P17 ?p } UNION { resource:Q284446 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Italy United Kingdom
Capel Seion or Orroli are from Italy and United Kingdom
Italy United Kingdom
action filter_type
action union
action find
entity Capel Seion
relation country
action find
entity Orroli
relation country
type designation for an administrative territorial entity
{'OR': [['Capel Seion', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Orroli', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Capel_Seion property:country ?p } UNION { resource:Orroli property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q811979 Q49447 Q15617994
USER
How many administrative territories are a component of atleast 1 architectural structures and world views ?
(c(Q15617994),P361,c(Q811979)|c(Q49447))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q15617994
type Q811979
action find_tuple_counts
relation P361
type Q15617994
type Q49447
value 1
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q811979'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?z WHERE { { ?z property:P361 ?u . ?z rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q49447 } UNION { ?z property:P361 ?u . ?u rdf:type ontology:Q811979 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } . FILTER ( ?d >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type architectural structure
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type world view
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'architectural structure'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?z WHERE { { ?z property:part_of ?u . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:world_view } UNION { ?z property:part_of ?u . ?u rdf:type ontology:architectural_structure . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . FILTER ( ?d >= 1 ) }
[]
architectural structure world view designation for an administrative territorial entity
SYSTEM
3
Q57857 Q184864 Q3773354
(c(Q15617994),P361,c(Q811979)|c(Q49447))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q15617994
type Q811979
action find_tuple_counts
relation P361
type Q15617994
type Q49447
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P361', [{'concept': 'Q811979'}, {'concept': 'Q49447'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?z WHERE { { ?z property:P361 ?u . ?z rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q49447 } UNION { ?z property:P361 ?u . ?u rdf:type ontology:Q811979 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } . FILTER ( ?d >= 1 ) }
Zschorlau Megara Alagonia
3
action count
action atleast
action union
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type architectural structure
action find_tuple_counts
relation part of
type designation for an administrative territorial entity
type world view
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'part of', [{'concept': 'architectural structure'}, {'concept': 'world view'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) ?z WHERE { { ?z property:part_of ?u . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:world_view } UNION { ?z property:part_of ?u . ?u rdf:type ontology:architectural_structure . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . FILTER ( ?d >= 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q837
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with around the same number of administrative territories as Nepal ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q837
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q837 property:P530 ?f } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { ?b property:P530 ?z . ?b rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?b } }
Nepal
action count
action approx
action find_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 Nepal
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 ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Nepal property:diplomatic_relation ?f } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { ?b property:diplomatic_relation ?z . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q837
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q837 property:P530 ?f } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { ?b property:P530 ?z . ?b rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?b } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
action find_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 Nepal
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 ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Nepal property:diplomatic_relation ?f } } . FILTER ( ?l = ?h ) . { SELECT DISTINCT ?b ( COUNT ( ?z ) AS ?l ) WHERE { ?b property:diplomatic_relation ?z . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q958
P530
Q15617994 Q15617994
USER
And how about South Sudan?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q958
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?p ) WHERE { ?x property:P530 ?z . ?x rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q958 property:P530 ?w } } . FILTER ( ?p = ?k ) }
South Sudan
action count
action approx
action find_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 South Sudan
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 ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?p ) WHERE { ?x property:diplomatic_relation ?z . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:South_Sudan property:diplomatic_relation ?w } } . FILTER ( ?p = ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q958
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?p ) WHERE { ?x property:P530 ?z . ?x rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q958 property:P530 ?w } } . FILTER ( ?p = ?k ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia 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 Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
action count
action approx
action find_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 South Sudan
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 ( COUNT ( ?x ) AS ?u ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?z ) AS ?p ) WHERE { ?x property:diplomatic_relation ?z . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:South_Sudan property:diplomatic_relation ?w } } . FILTER ( ?p = ?k ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2136108 Q1362509
P19 P276
Q56061
USER
Which administrative territories are the place where Just for Laughs are located or were Michael Jeffrey born at ?
OR((Q1362509,P276,c(Q56061)), (Q2136108,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1362509
relation P276
action find
entity Q2136108
relation P19
type Q56061
{'OR': [['Q1362509', 'P276', {'concept': 'Q56061'}], ['Q2136108', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1362509 property:P276 ?p } UNION { resource:Q2136108 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Michael Jeffrey Just for Laughs
action filter_type
action union
action find
entity Just for Laughs
relation location
action find
entity Michael Jeffrey
relation place of birth
type administrative territorial entity
{'OR': [['Just for Laughs', 'location', {'concept': 'administrative territorial entity'}], ['Michael Jeffrey', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Just_for_Laughs property:location ?p } UNION { resource:Michael_Jeffrey property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q340 Q24826
SYSTEM
Montreal, Liverpool
Q340 Q24826
OR((Q1362509,P276,c(Q56061)), (Q2136108,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1362509
relation P276
action find
entity Q2136108
relation P19
type Q56061
[ANSWERS] are the place where Just for Laughs are located or were Michael Jeffrey born at
{'OR': [['Q1362509', 'P276', {'concept': 'Q56061'}], ['Q2136108', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1362509 property:P276 ?p } UNION { resource:Q2136108 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Montreal Liverpool
Montreal and Liverpool are the place where Just for Laughs are located or were Michael Jeffrey born at
Montreal Liverpool
action filter_type
action union
action find
entity Just for Laughs
relation location
action find
entity Michael Jeffrey
relation place of birth
type administrative territorial entity
{'OR': [['Just for Laughs', 'location', {'concept': 'administrative territorial entity'}], ['Michael Jeffrey', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Just_for_Laughs property:location ?p } UNION { resource:Michael_Jeffrey property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1757764 Q1137018
P30
Q2221906
USER
How many geographic locations are Mount Royal or COMNAP located in ?
(Q1757764,P30,c(Q2221906)) (Q1137018,P30,c(Q2221906))
action count
action union
action filter_type
action find
entity Q1757764
relation P30
type Q2221906
action filter_type
action find
entity Q1137018
relation P30
type Q2221906
['Q1757764', 'P30', {'concept': 'Q2221906'}] ['Q1137018', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { resource:Q1757764 property:P30 ?s . ?s rdf:type ontology:Q2221906 } UNION { resource:Q1137018 property:P30 ?s . ?s rdf:type ontology:Q2221906 } }
Mount Royal COMNAP
action count
action union
action filter_type
action find
entity Mount Royal
relation continent
type geographic location
action filter_type
action find
entity COMNAP
relation continent
type geographic location
['Mount Royal', 'continent', {'concept': 'geographic location'}] ['COMNAP', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { resource:Mount_Royal property:continent ?s . ?s rdf:type ontology:geographic_location } UNION { resource:COMNAP property:continent ?s . ?s rdf:type ontology:geographic_location } }
[]
geographic location
SYSTEM
2
Q51 Q828
(Q1757764,P30,c(Q2221906)) (Q1137018,P30,c(Q2221906))
action count
action union
action filter_type
action find
entity Q1757764
relation P30
type Q2221906
action filter_type
action find
entity Q1137018
relation P30
type Q2221906
[ANSWER]
['Q1757764', 'P30', {'concept': 'Q2221906'}] ['Q1137018', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { resource:Q1757764 property:P30 ?s . ?s rdf:type ontology:Q2221906 } UNION { resource:Q1137018 property:P30 ?s . ?s rdf:type ontology:Q2221906 } }
Antarctica Americas
2
action count
action union
action filter_type
action find
entity Mount Royal
relation continent
type geographic location
action filter_type
action find
entity COMNAP
relation continent
type geographic location
['Mount Royal', 'continent', {'concept': 'geographic location'}] ['COMNAP', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { { resource:Mount_Royal property:continent ?s . ?s rdf:type ontology:geographic_location } UNION { resource:COMNAP property:continent ?s . ?s rdf:type ontology:geographic_location } }
[]