Simple Question (Direct)
Simple Question
Q7174372
P21
Q290
USER
Which sex does Peter Gregory have ?
(Q7174372,P21,c(Q290))
action filter_type
action find
entity Q7174372
relation P21
type Q290
['Q7174372', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q7174372 property:P21 ?l . ?l rdf:type ontology:Q290 }
Peter Gregory
action filter_type
action find
entity Peter Gregory
relation gender
type sex
['Peter Gregory', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Peter_Gregory property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7174372,P21,c(Q290))
action filter_type
action find
entity Q7174372
relation P21
type Q290
Peter Gregory has a [ANSWER]
['Q7174372', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q7174372 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Peter Gregory has a male
male
action filter_type
action find
entity Peter Gregory
relation gender
type sex
['Peter Gregory', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Peter_Gregory property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7174372
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q7174372
relation P19
type Q56061
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q7174372 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Peter Gregory
action filter_type
action find
entity Peter Gregory
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Peter_Gregory property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q208262
SYSTEM
Eastbourne
Q208262
(Q6581097,P19,c(Q56061))
action filter_type
action find
entity Q7174372
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q6581097', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q7174372 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Eastbourne
Eastbourne is the place of birth of that person
Eastbourne
action filter_type
action find
entity Peter Gregory
relation place of birth
type administrative territorial entity
['male', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Peter_Gregory property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q208262 Q145
P17
Q15617994
USER
Is that administrative territory a part of United Kingdom ?
(Q208262,P17,Q145)
action is_in
entity Q145
action find
entity Q208262
relation P17
['Q208262', 'P17', 'Q145']
ASK WHERE { resource:Q208262 property:P17 resource:Q145 }
Eastbourne United Kingdom
action is_in
entity United Kingdom
action find
entity Eastbourne
relation country
['Eastbourne', 'country', 'United Kingdom']
ASK WHERE { resource:Eastbourne property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q208262,P17,Q145)
action is_in
entity Q145
action find
entity Q208262
relation P17
[ANSWER]
['Q208262', 'P17', 'Q145']
ASK WHERE { resource:Q208262 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Eastbourne
relation country
['Eastbourne', 'country', 'United Kingdom']
ASK WHERE { resource:Eastbourne property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7174372 Q145
P27
Q15617994
USER
Is that person an inhabitant of United Kingdom ?
(Q7174372,P27,Q145)
action is_in
entity Q145
action find
entity Q7174372
relation P27
['Q7174372', 'P27', 'Q145']
ASK WHERE { resource:Q7174372 property:P27 resource:Q145 }
Peter Gregory United Kingdom
action is_in
entity United Kingdom
action find
entity Peter Gregory
relation country of citizenship
['Peter Gregory', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Peter_Gregory property:country_of_citizenship resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7174372,P27,Q145)
action is_in
entity Q145
action find
entity Q7174372
relation P27
[ANSWER]
['Q7174372', 'P27', 'Q145']
ASK WHERE { resource:Q7174372 property:P27 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Peter Gregory
relation country of citizenship
['Peter Gregory', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Peter_Gregory property:country_of_citizenship resource:United_Kingdom }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q284040 Q7174372
P47 P27
Q15617994
USER
Which administrative territories are Peter Gregory a civilian of or share border with Guasila ?
OR((Q7174372,P27,c(Q15617994)), (Q284040,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7174372
relation P27
action find
entity Q284040
relation P47
type Q15617994
{'OR': [['Q7174372', 'P27', {'concept': 'Q15617994'}], ['Q284040', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7174372 property:P27 ?e } UNION { resource:Q284040 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Guasila Peter Gregory
action filter_type
action union
action find
entity Peter Gregory
relation country of citizenship
action find
entity Guasila
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Peter Gregory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Guasila', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Peter_Gregory property:country_of_citizenship ?e } UNION { resource:Guasila property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q288273 Q283985 Q284481 Q284466 Q288455 Q288502 Q284023 Q288178 Q284802 Q145
SYSTEM
Some of them are Serrenti, Gesico, Pimentel, Ortacesus, Villamar, Villanovafranca, Guamaggiore, Segariu, Samatzai, United Kingdom
Q288178 Q145 Q284802 Q284481 Q288273 Q287490 Q284023 Q288455 Q288502 Q284466 Q283985
OR((Q7174372,P27,c(Q15617994)), (Q284040,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7174372
relation P27
action find
entity Q284040
relation P47
type Q15617994
[ANSWERS] are Peter Gregory a civilian of or share border with Guasila
{'OR': [['Q7174372', 'P27', {'concept': 'Q15617994'}], ['Q284040', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7174372 property:P27 ?e } UNION { resource:Q284040 property:P47 ?e } } . ?e rdf:type ontology:Q15617994 }
Segariu United Kingdom Samatzai Pimentel Serrenti Furtei Guamaggiore Villamar Villanovafranca Ortacesus Gesico
Serrenti, Gesico, Pimentel, Ortacesus, Villamar, Villanovafranca, Guamaggiore, Segariu, Samatzai and United Kingdom are Peter Gregory a civilian of or share border with Guasila
Serrenti Gesico Pimentel Ortacesus Villamar Villanovafranca Guamaggiore Segariu Samatzai United Kingdom
action filter_type
action union
action find
entity Peter Gregory
relation country of citizenship
action find
entity Guasila
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Peter Gregory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Guasila', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Peter_Gregory property:country_of_citizenship ?e } UNION { resource:Guasila property:shares_border_with ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10833590 Q7174372
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Peter Gregory or are Vĩnh Kim present in ?
OR((Q7174372,P27,c(Q15617994)), (Q10833590,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7174372
relation P27
action find
entity Q10833590
relation P17
type Q15617994
{'OR': [['Q7174372', 'P27', {'concept': 'Q15617994'}], ['Q10833590', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7174372 property:P27 ?e } UNION { resource:Q10833590 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Vĩnh Kim Peter Gregory
action filter_type
action union
action find
entity Peter Gregory
relation country of citizenship
action find
entity Vĩnh Kim
relation country
type designation for an administrative territorial entity
{'OR': [['Peter Gregory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vĩnh Kim', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Peter_Gregory property:country_of_citizenship ?e } UNION { resource:Vĩnh_Kim property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q881 Q145
SYSTEM
Vietnam, United Kingdom
Q881 Q145
OR((Q7174372,P27,c(Q15617994)), (Q10833590,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7174372
relation P27
action find
entity Q10833590
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Peter Gregory or are Vĩnh Kim present in
{'OR': [['Q7174372', 'P27', {'concept': 'Q15617994'}], ['Q10833590', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q7174372 property:P27 ?e } UNION { resource:Q10833590 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Vietnam United Kingdom
Vietnam and United Kingdom are the countries of citizenship of Peter Gregory or are Vĩnh Kim present in
Vietnam United Kingdom
action filter_type
action union
action find
entity Peter Gregory
relation country of citizenship
action find
entity Vĩnh Kim
relation country
type designation for an administrative territorial entity
{'OR': [['Peter Gregory', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vĩnh Kim', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Peter_Gregory property:country_of_citizenship ?e } UNION { resource:Vĩnh_Kim property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with atmost 69 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 69
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?b ) WHERE { ?u rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?u } GROUP BY ?u } . FILTER ( ?b <= 69 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 69
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?b ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?u } GROUP BY ?u } . FILTER ( ?b <= 69 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
165
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 69
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?b ) WHERE { ?u rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?u } GROUP BY ?u } . FILTER ( ?b <= 69 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
165
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 69
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?b ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?u } GROUP BY ?u } . FILTER ( ?b <= 69 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P137
Q3084961
USER
Which product linings can be described as service operator of United Kingdom ?
(c(Q3084961),P137,Q145)
action filter_type
action find_reverse
entity Q145
relation P137
type Q3084961
[{'concept': 'Q3084961'}, 'P137', 'Q145']
SELECT DISTINCT ?t WHERE { ?t property:P137 resource:Q145 . ?t rdf:type ontology:Q3084961 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'United Kingdom']
SELECT DISTINCT ?t WHERE { ?t property:operator resource:United_Kingdom . ?t rdf:type ontology:product_lining }
[]
product lining
Q933767 Q313740 Q151384
SYSTEM
Hawk 75, Alpha Jet, Typhoon
Q151384 Q313740 Q4937129 Q933767
(c(Q3084961),P137,Q145)
action filter_type
action find_reverse
entity Q145
relation P137
type Q3084961
[ANSWERS] can be described as service operator of United Kingdom
[{'concept': 'Q3084961'}, 'P137', 'Q145']
SELECT DISTINCT ?t WHERE { ?t property:P137 resource:Q145 . ?t rdf:type ontology:Q3084961 }
Typhoon Alpha Jet Chinook Hawk 75
Hawk 75, Alpha Jet and Typhoon can be described as service operator of United Kingdom
Hawk 75 Alpha Jet Typhoon
action filter_type
action find_reverse
entity United Kingdom
relation operator
type product lining
[{'concept': 'product lining'}, 'operator', 'United Kingdom']
SELECT DISTINCT ?t WHERE { ?t property:operator resource:United_Kingdom . ?t rdf:type ontology:product_lining }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q933767 Q313740 Q151384
P137
Q15617994
USER
Which administrative territories operate Hawk 75, Alpha Jet and Typhoon ?
(Q933767,P137,c(Q15617994)) (Q313740,P137,c(Q15617994)) (Q151384,P137,c(Q15617994))
action union
action filter_type
action find
entity Q933767
relation P137
type Q15617994
action filter_type
action find
entity Q313740
relation P137
type Q15617994
action filter_type
action find
entity Q151384
relation P137
type Q15617994
['Q933767', 'P137', {'concept': 'Q15617994'}] ['Q313740', 'P137', {'concept': 'Q15617994'}] ['Q151384', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?e ) { ( resource:Q933767 ) ( resource:Q313740 ) } . ?e property:P137 ?o }
Hawk 75 Alpha Jet Typhoon
action union
action filter_type
action find
entity Hawk 75
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Alpha Jet
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Typhoon
relation operator
type designation for an administrative territorial entity
['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Alpha Jet', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Typhoon', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?e ) { ( resource:Hawk_75 ) ( resource:Alpha_Jet ) } . ?e property:operator ?o }
[]
designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q142 Q20 Q45 Q55 Q145 Q155 Q794 Q33 Q419 Q30 Q668 Q869 Q414 Q1008 Q1033 Q145 Q1028 Q945 Q145 Q842 Q851 Q29 Q38
(Q933767,P137,c(Q15617994)) (Q313740,P137,c(Q15617994)) (Q151384,P137,c(Q15617994))
action union
action filter_type
action find
entity Q933767
relation P137
type Q15617994
action filter_type
action find
entity Q313740
relation P137
type Q15617994
action filter_type
action find
entity Q151384
relation P137
type Q15617994
[ANSWERS] operate Hawk 75, Alpha Jet and Typhoon
['Q933767', 'P137', {'concept': 'Q15617994'}] ['Q313740', 'P137', {'concept': 'Q15617994'}] ['Q151384', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?e ) { ( resource:Q933767 ) ( resource:Q313740 ) } . ?e property:P137 ?o }
France Norway Portugal Netherlands United Kingdom Brazil Iran Finland Peru United States of America India Thailand Argentina Côte d'Ivoire Nigeria United Kingdom Morocco Togo United Kingdom Oman Saudi Arabia Spain Italy
Italy, Brazil and United States of America operate Hawk 75, Alpha Jet and Typhoon
Italy Brazil United States of America
action union
action filter_type
action find
entity Hawk 75
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Alpha Jet
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Typhoon
relation operator
type designation for an administrative territorial entity
['Hawk 75', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Alpha Jet', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Typhoon', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { VALUES ( ?e ) { ( resource:Hawk_75 ) ( resource:Alpha_Jet ) } . ?e property:operator ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P421
Q317623
USER
What is the timezone where United Kingdom is located in ?
(Q145,P421,c(Q317623))
action filter_type
action find
entity Q145
relation P421
type Q317623
['Q145', 'P421', {'concept': 'Q317623'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q317623 . resource:Q145 property:P421 ?f }
United Kingdom
action filter_type
action find
entity United Kingdom
relation located in time zone
type technical standard
['United Kingdom', 'located in time zone', {'concept': 'technical standard'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:technical_standard . resource:United_Kingdom property:located_in_time_zone ?f }
[]
technical standard
Q30192
SYSTEM
Greenwich Mean Time
Q30192
(Q145,P421,c(Q317623))
action filter_type
action find
entity Q145
relation P421
type Q317623
The timezone United Kingdom is located in is in [ANSWER]
['Q145', 'P421', {'concept': 'Q317623'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q317623 . resource:Q145 property:P421 ?f }
Greenwich Mean Time
The timezone United Kingdom is located in is in Greenwich Mean Time
Greenwich Mean Time
action filter_type
action find
entity United Kingdom
relation located in time zone
type technical standard
['United Kingdom', 'located in time zone', {'concept': 'technical standard'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:technical_standard . resource:United_Kingdom property:located_in_time_zone ?f }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2082914
Q317623
USER
And what about Kaolack?
(Q2082914,P421,c(Q317623))
action filter_type
action find
entity Q2082914
relation P421
type Q317623
['Q2082914', 'P421', {'concept': 'Q317623'}]
SELECT DISTINCT ?j WHERE { resource:Q2082914 property:P421 ?j . ?j rdf:type ontology:Q317623 }
Kaolack
action filter_type
action find
entity Kaolack
relation located in time zone
type technical standard
['Kaolack', 'located in time zone', {'concept': 'technical standard'}]
SELECT DISTINCT ?j WHERE { resource:Kaolack property:located_in_time_zone ?j . ?j rdf:type ontology:technical_standard }
[]
technical standard
Q30192
SYSTEM
Greenwich Mean Time
Q30192
(Q2082914,P421,c(Q317623))
action filter_type
action find
entity Q2082914
relation P421
type Q317623
[ANSWER]
['Q2082914', 'P421', {'concept': 'Q317623'}]
SELECT DISTINCT ?j WHERE { resource:Q2082914 property:P421 ?j . ?j rdf:type ontology:Q317623 }
Greenwich Mean Time
Greenwich Mean Time
action filter_type
action find
entity Kaolack
relation located in time zone
type technical standard
['Kaolack', 'located in time zone', {'concept': 'technical standard'}]
SELECT DISTINCT ?j WHERE { resource:Kaolack property:located_in_time_zone ?j . ?j rdf:type ontology:technical_standard }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q218 Q145
P27
Q502895
USER
Which people are a citizen of United Kingdom and Romania ?
AND((c(Q502895),P27,Q145), (c(Q502895),P27,Q218))
action filter_type
action intersection
action find_reverse
entity Q145
relation P27
action find_reverse
entity Q218
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q145'], [{'concept': 'Q502895'}, 'P27', 'Q218']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q145 . ?o property:P27 resource:Q218 . ?o rdf:type ontology:Q502895 }
Romania United Kingdom
action filter_type
action intersection
action find_reverse
entity United Kingdom
relation country of citizenship
action find_reverse
entity Romania
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'United Kingdom'], [{'concept': 'common name'}, 'country of citizenship', 'Romania']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:United_Kingdom . ?o property:country_of_citizenship resource:Romania . ?o rdf:type ontology:common_name }
[]
common name
Q2916629 Q315734 Q2337891 Q1819005 Q215151
SYSTEM
Constantin Silvestri, John Houseman, Stefan Weinstock, Leonard Kirschen, Marcel Hellman
Q2916629 Q315734 Q2337891 Q1819005 Q215151
AND((c(Q502895),P27,Q145), (c(Q502895),P27,Q218))
action filter_type
action intersection
action find_reverse
entity Q145
relation P27
action find_reverse
entity Q218
relation P27
type Q502895
[ANSWERS] are a citizen of United Kingdom and Romania
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q145'], [{'concept': 'Q502895'}, 'P27', 'Q218']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q145 . ?o property:P27 resource:Q218 . ?o rdf:type ontology:Q502895 }
Constantin Silvestri John Houseman Stefan Weinstock Leonard Kirschen Marcel Hellman
Constantin Silvestri, John Houseman, Stefan Weinstock, Leonard Kirschen and Marcel Hellman are a citizen of United Kingdom and Romania
Constantin Silvestri John Houseman Stefan Weinstock Leonard Kirschen Marcel Hellman
action filter_type
action intersection
action find_reverse
entity United Kingdom
relation country of citizenship
action find_reverse
entity Romania
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'United Kingdom'], [{'concept': 'common name'}, 'country of citizenship', 'Romania']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:United_Kingdom . ?o property:country_of_citizenship resource:Romania . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do min number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?b rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?b } GROUP BY ?b } } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?b rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?b } GROUP BY ?b } } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Min number of people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?b rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?b } GROUP BY ?b } } }
spoon cajón wind instrument
Min number of people know about spoon, cajón and wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?v ) AS ?u ) WHERE { ?v property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?u = ?l ) . { SELECT DISTINCT ( MIN ( ?c ) AS ?l ) { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?c ) WHERE { ?b rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?b } GROUP BY ?b } } }
[]