Simple Question (Direct)
Simple Question
Q5224921
P19
Q515
USER
Where was Darren Forsyth born ?
(Q5224921,P19,c(Q515))
action filter_type
action find
entity Q5224921
relation P19
type Q515
['Q5224921', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q5224921 property:P19 ?r . ?r rdf:type ontology:Q515 }
Darren Forsyth
action filter_type
action find
entity Darren Forsyth
relation place of birth
type city
['Darren Forsyth', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Darren_Forsyth property:place_of_birth ?r . ?r rdf:type ontology:city }
[]
city
Q1761
SYSTEM
Dublin
Q1761
(Q5224921,P19,c(Q515))
action filter_type
action find
entity Q5224921
relation P19
type Q515
Darren Forsyth was born in [ANSWER]
['Q5224921', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q5224921 property:P19 ?r . ?r rdf:type ontology:Q515 }
Dublin
Darren Forsyth was born in Dublin
Dublin
action filter_type
action find
entity Darren Forsyth
relation place of birth
type city
['Darren Forsyth', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Darren_Forsyth property:place_of_birth ?r . ?r rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5224921
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q1761,P27,c(Q15617994))
action filter_type
action find
entity Q5224921
relation P27
type Q15617994
['Q1761', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q5224921 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Darren Forsyth
action filter_type
action find
entity Darren Forsyth
relation country of citizenship
type designation for an administrative territorial entity
['Dublin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Darren_Forsyth property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q27
SYSTEM
Ireland
Q27
(Q1761,P27,c(Q15617994))
action filter_type
action find
entity Q5224921
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q1761', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q5224921 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Ireland
Ireland is that person a civilian of
Ireland
action filter_type
action find
entity Darren Forsyth
relation country of citizenship
type designation for an administrative territorial entity
['Dublin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Darren_Forsyth property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5224921
P641
Q349
USER
Which sport was Darren Forsyth a part of ?
(Q5224921,P641,c(Q349))
action filter_type
action find
entity Q5224921
relation P641
type Q349
['Q5224921', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q349 . resource:Q5224921 property:P641 ?j }
Darren Forsyth
action filter_type
action find
entity Darren Forsyth
relation sport
type sport
['Darren Forsyth', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sport . resource:Darren_Forsyth property:sport ?j }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5224921,P641,c(Q349))
action filter_type
action find
entity Q5224921
relation P641
type Q349
Were [ANSWER] was Darren Forsyth a part of
['Q5224921', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q349 . resource:Q5224921 property:P641 ?j }
association football
Were association football was Darren Forsyth a part of
association football
action filter_type
action find
entity Darren Forsyth
relation sport
type sport
['Darren Forsyth', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:sport . resource:Darren_Forsyth property:sport ?j }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q3733945 Q5224921
P641
Q349
USER
Or Ettore Ghiglione?
OR((Q5224921,P641,c(Q349)), (Q3733945,P641,c(Q349)))
action filter_type
action union
action find
entity Q5224921
relation P641
action find
entity Q3733945
relation P641
type Q349
{'OR': [['Q5224921', 'P641', {'concept': 'Q349'}], ['Q3733945', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?u ) { ( resource:Q3733945 ) ( resource:Q5224921 ) } . ?u property:P641 ?a } . ?a rdf:type ontology:Q349 }
Ettore Ghiglione Darren Forsyth
action filter_type
action union
action find
entity Darren Forsyth
relation sport
action find
entity Ettore Ghiglione
relation sport
type sport
{'OR': [['Darren Forsyth', 'sport', {'concept': 'sport'}], ['Ettore Ghiglione', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?u ) { ( resource:Ettore_Ghiglione ) ( resource:Darren_Forsyth ) } . ?u property:sport ?a } . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
OR((Q5224921,P641,c(Q349)), (Q3733945,P641,c(Q349)))
action filter_type
action union
action find
entity Q5224921
relation P641
action find
entity Q3733945
relation P641
type Q349
[ANSWER]
{'OR': [['Q5224921', 'P641', {'concept': 'Q349'}], ['Q3733945', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?u ) { ( resource:Q3733945 ) ( resource:Q5224921 ) } . ?u property:P641 ?a } . ?a rdf:type ontology:Q349 }
association football
association football
action filter_type
action union
action find
entity Darren Forsyth
relation sport
action find
entity Ettore Ghiglione
relation sport
type sport
{'OR': [['Darren Forsyth', 'sport', {'concept': 'sport'}], ['Ettore Ghiglione', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?u ) { ( resource:Ettore_Ghiglione ) ( resource:Darren_Forsyth ) } . ?u property:sport ?a } . ?a rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q32
P36
Q20667921 Q56061 Q15617994
USER
How many administrative territories have lesser number of french administrative divisions and administrative territories as their administrative centre than Luxembourg ?
(c(Q15617994),P36,c(Q20667921)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q32
relation P36
type Q20667921
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) ?g WHERE { ?p rdf:type ?n . VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } } GROUP BY ?g } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q32 property:P36 ?i . { { ?i rdf:type ontology:Q20667921 } UNION { ?i rdf:type ontology:Q56061 } } } } }
Luxembourg
action count
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Luxembourg
relation capital
type type of french administrative division
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) ?g WHERE { ?p rdf:type ?n . VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?g } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Luxembourg property:capital ?i . { { ?i rdf:type ontology:type_of_french_administrative_division } UNION { ?i rdf:type ontology:administrative_territorial_entity } } } } }
[]
type of french administrative division administrative territorial entity designation for an administrative territorial entity
SYSTEM
125
Q2991354 Q414 Q1111401 Q504637 Q399 Q2466631 Q2527360 Q699731 Q1742192 Q4464924 Q2344966 Q739 Q733 Q736 Q16628524 Q1284 Q1443 Q843 Q2007 Q541811 Q1458 Q14551680 Q1050 Q12717 Q298 Q115 Q114 Q21296012 Q541589 Q1961264 Q696651 Q948 Q731547 Q1268811 Q702 Q709 Q833 Q2093388 Q290739 Q790 Q598193 Q796 Q794 Q889 Q884 Q1452646 Q881 Q1508919 Q541095 Q5613245 Q280312 Q3118738 Q686312 Q1037 Q1030 Q697 Q2039306 Q662056 Q30831 Q694594 Q874 Q878 Q46130 Q3044714 Q1951 Q2236821 Q4854468 Q492437 Q389004 Q492430 Q9073753 Q711 Q717 Q1090678 Q19786899 Q2348751 Q1948 Q511365 Q1270568 Q27 Q34762 Q793437 Q225 Q47261 Q347 Q580447 Q10957559 Q965 Q962 Q963 Q2344833 Q1008 Q2039314 Q72670 Q568751 Q2150573 Q474421 Q3342 Q842 Q4712 Q928 Q851 Q224 Q222 Q691265 Q313175 Q2996404 Q228 Q3462133 Q3846423 Q3207 Q176 Q212 Q211 Q218 Q161258 Q4496152 Q3514973 Q974 Q1234961 Q1222 Q1019 Q1011 Q5192588 Q672
(c(Q15617994),P36,c(Q20667921)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q32
relation P36
type Q20667921
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) ?g WHERE { ?p rdf:type ?n . VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } } GROUP BY ?g } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Q32 property:P36 ?i . { { ?i rdf:type ontology:Q20667921 } UNION { ?i rdf:type ontology:Q56061 } } } } }
Aquiles Serdán Municipality Argentina Kispest District Alta Verapaz Department Armenia Chiautla de Tapia Municipality Stura Wied King's Lynn and West Norfolk Tugulymsky District Netrokona District Colombia Paraguay Ecuador San Salvador el Verde municipality Abruzzo Molise Pakistan Northwest Territories Ems-Oriental Calabria Principality of Lippe Swaziland Bas-Rhin Chile Ethiopia Kenya Amatitlán Ems-Supérieur Tecámac Municipality Saxe-Eisenach Tunisia Lippe Dyle Federated States of Micronesia Marshall Islands Malaysia Sunamganj District Sesia Haiti Apennins Iraq Iran Afghanistan South Korea Montenotte Vietnam Marengo Rhin-et-Moselle Guadalupe Municipality Principality of Lüneburg Guanentá Province Duchy of Amalfi Rwanda Namibia Nauru Jamalpur District Cushamen Department Red Sea Governorate Bremen-Verden Turkmenistan United Arab Emirates Rhône Ouest Alberta Rhône-et-Loire Bandava Bouches-du-Weser Wallachia Bouches-de-l'Elbe San Vicente Tancuayalab municipality Mongolia Venezuela Sègre Magyaróvár District Kurigram District Manitoba Arvika Municipality Ems Ireland Principality of Bayreuth Bergantiños Bosnia and Herzegovina Duchy of Bavaria Liechtenstein Duchy of Styria Moldavia Burkina Faso Benin Botswana Kishoreganj District Côte d'Ivoire Sherpur District Batumi Oblast Mont-Tonnerre Unterelsaß Principality of Fürstenberg Côte-d'Or Oman Duchy of Burgundy Philippines Saudi Arabia Croatia Albania Mont-Terrible Saxe-Lauenburg Alushta municipality Andorra Saxe-Coburg and Gotha Viesca Municipality Aude Quebec Ukraine Latvia Romania Clipperton Island Khartsyzk Municipality Tanaro Democratic Republic of the Congo Doire Aosta Valley Madagascar Cape Verde Cuenca District, Huancavelica Tuvalu
125
action count
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Luxembourg
relation capital
type type of french administrative division
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) ?g WHERE { ?p rdf:type ?n . VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?g } . FILTER ( ?a < ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { resource:Luxembourg property:capital ?i . { { ?i rdf:type ontology:type_of_french_administrative_division } UNION { ?i rdf:type ontology:administrative_territorial_entity } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q695
P36
Q20667921 Q56061 Q15617994
USER
And what about Palau?
(c(Q15617994),P36,c(Q20667921)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q695
relation P36
type Q20667921
type Q56061
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q695 property:P36 ?e . { VALUES ( ?x ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?e rdf:type ?x } } } . FILTER ( ?o < ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?o ) WHERE { { ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q20667921 . ?u property:P36 ?d } UNION { ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 . ?u property:P36 ?d } } GROUP BY ?u } }
Palau
action count
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Palau
relation capital
type type of french administrative division
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Palau property:capital ?e . { VALUES ( ?x ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?e rdf:type ?x } } } . FILTER ( ?o < ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?o ) WHERE { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:type_of_french_administrative_division . ?u property:capital ?d } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity . ?u property:capital ?d } } GROUP BY ?u } }
[]
type of french administrative division administrative territorial entity designation for an administrative territorial entity
SYSTEM
125
Q2991354 Q414 Q1111401 Q504637 Q399 Q2466631 Q2527360 Q699731 Q1742192 Q4464924 Q2344966 Q739 Q733 Q736 Q16628524 Q1284 Q1443 Q843 Q2007 Q541811 Q1458 Q14551680 Q1050 Q12717 Q298 Q115 Q114 Q21296012 Q541589 Q1961264 Q696651 Q948 Q731547 Q1268811 Q702 Q709 Q833 Q2093388 Q290739 Q790 Q598193 Q796 Q794 Q889 Q884 Q1452646 Q881 Q1508919 Q541095 Q5613245 Q280312 Q3118738 Q686312 Q1037 Q1030 Q697 Q2039306 Q662056 Q30831 Q694594 Q874 Q878 Q46130 Q3044714 Q1951 Q2236821 Q4854468 Q492437 Q389004 Q492430 Q9073753 Q711 Q717 Q1090678 Q19786899 Q2348751 Q1948 Q511365 Q1270568 Q27 Q34762 Q793437 Q225 Q47261 Q347 Q580447 Q10957559 Q965 Q962 Q963 Q2344833 Q1008 Q2039314 Q72670 Q568751 Q2150573 Q474421 Q3342 Q842 Q4712 Q928 Q851 Q224 Q222 Q691265 Q313175 Q2996404 Q228 Q3462133 Q3846423 Q3207 Q176 Q212 Q211 Q218 Q161258 Q4496152 Q3514973 Q974 Q1234961 Q1222 Q1019 Q1011 Q5192588 Q672
(c(Q15617994),P36,c(Q20667921)|c(Q56061))
action count
action less
action union
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q695
relation P36
type Q20667921
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Q695 property:P36 ?e . { VALUES ( ?x ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?e rdf:type ?x } } } . FILTER ( ?o < ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?o ) WHERE { { ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q20667921 . ?u property:P36 ?d } UNION { ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 . ?u property:P36 ?d } } GROUP BY ?u } }
Aquiles Serdán Municipality Argentina Kispest District Alta Verapaz Department Armenia Chiautla de Tapia Municipality Stura Wied King's Lynn and West Norfolk Tugulymsky District Netrokona District Colombia Paraguay Ecuador San Salvador el Verde municipality Abruzzo Molise Pakistan Northwest Territories Ems-Oriental Calabria Principality of Lippe Swaziland Bas-Rhin Chile Ethiopia Kenya Amatitlán Ems-Supérieur Tecámac Municipality Saxe-Eisenach Tunisia Lippe Dyle Federated States of Micronesia Marshall Islands Malaysia Sunamganj District Sesia Haiti Apennins Iraq Iran Afghanistan South Korea Montenotte Vietnam Marengo Rhin-et-Moselle Guadalupe Municipality Principality of Lüneburg Guanentá Province Duchy of Amalfi Rwanda Namibia Nauru Jamalpur District Cushamen Department Red Sea Governorate Bremen-Verden Turkmenistan United Arab Emirates Rhône Ouest Alberta Rhône-et-Loire Bandava Bouches-du-Weser Wallachia Bouches-de-l'Elbe San Vicente Tancuayalab municipality Mongolia Venezuela Sègre Magyaróvár District Kurigram District Manitoba Arvika Municipality Ems Ireland Principality of Bayreuth Bergantiños Bosnia and Herzegovina Duchy of Bavaria Liechtenstein Duchy of Styria Moldavia Burkina Faso Benin Botswana Kishoreganj District Côte d'Ivoire Sherpur District Batumi Oblast Mont-Tonnerre Unterelsaß Principality of Fürstenberg Côte-d'Or Oman Duchy of Burgundy Philippines Saudi Arabia Croatia Albania Mont-Terrible Saxe-Lauenburg Alushta municipality Andorra Saxe-Coburg and Gotha Viesca Municipality Aude Quebec Ukraine Latvia Romania Clipperton Island Khartsyzk Municipality Tanaro Democratic Republic of the Congo Doire Aosta Valley Madagascar Cape Verde Cuenca District, Huancavelica Tuvalu
125
action count
action less
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Palau
relation capital
type type of french administrative division
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { resource:Palau property:capital ?e . { VALUES ( ?x ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?e rdf:type ?x } } } . FILTER ( ?o < ?b ) . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?o ) WHERE { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:type_of_french_administrative_division . ?u property:capital ?d } UNION { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity . ?u property:capital ?d } } GROUP BY ?u } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5224921
P21
Q290
USER
What is the sex of Darren Forsyth ?
(Q5224921,P21,c(Q290))
action filter_type
action find
entity Q5224921
relation P21
type Q290
['Q5224921', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q5224921 property:P21 ?a . ?a rdf:type ontology:Q290 }
Darren Forsyth
action filter_type
action find
entity Darren Forsyth
relation gender
type sex
['Darren Forsyth', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Darren_Forsyth property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5224921,P21,c(Q290))
action filter_type
action find
entity Q5224921
relation P21
type Q290
The sex of Darren Forsyth is a [ANSWER]
['Q5224921', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q5224921 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
The sex of Darren Forsyth is a male
male
action filter_type
action find
entity Darren Forsyth
relation gender
type sex
['Darren Forsyth', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Darren_Forsyth property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1151421
Q290
USER
And also tell me about Salyu?
(Q1151421,P21,c(Q290))
action filter_type
action find
entity Q1151421
relation P21
type Q290
['Q1151421', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1151421 property:P21 ?b . ?b rdf:type ontology:Q290 }
Salyu
action filter_type
action find
entity Salyu
relation gender
type sex
['Salyu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Salyu property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q1151421,P21,c(Q290))
action filter_type
action find
entity Q1151421
relation P21
type Q290
[ANSWER]
['Q1151421', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q1151421 property:P21 ?b . ?b rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Salyu
relation gender
type sex
['Salyu', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Salyu property:gender ?b . ?b rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q15449490
P21
Q502895
USER
Does Jochen Schrumpf have the gender as that sex ?
(Q15449490,P21,Q6581072)
action is_in
entity Q15449490
action find
entity Q6581072
relation P21
['Q15449490', 'P21', 'Q6581072']
ASK WHERE { resource:Q6581072 property:P21 resource:Q15449490 }
female Jochen Schrumpf
action is_in
entity Jochen Schrumpf
action find
entity female
relation gender
['Jochen Schrumpf', 'gender', 'female']
ASK WHERE { resource:female property:gender resource:Jochen_Schrumpf }
[]
common name
SYSTEM
NO
(Q15449490,P21,Q6581072)
action is_in
entity Q15449490
action find
entity Q6581072
relation P21
[ANSWER]
['Q15449490', 'P21', 'Q6581072']
ASK WHERE { resource:Q6581072 property:P21 resource:Q15449490 }
No
action is_in
entity Jochen Schrumpf
action find
entity female
relation gender
['Jochen Schrumpf', 'gender', 'female']
ASK WHERE { resource:female property:gender resource:Jochen_Schrumpf }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1733986 Q695
P127 P530
Q1048835
USER
Which political territories have a diplomatic relationship with Palau or are the owners of Karlsruhe Transport Authority ?
OR((Q695,P530,c(Q1048835)), (Q1733986,P127,c(Q1048835)))
action filter_type
action union
action find
entity Q695
relation P530
action find
entity Q1733986
relation P127
type Q1048835
{'OR': [['Q695', 'P530', {'concept': 'Q1048835'}], ['Q1733986', 'P127', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . { { resource:Q695 property:P530 ?v } UNION { resource:Q1733986 property:P127 ?v } } }
Karlsruhe Transport Authority Palau
action filter_type
action union
action find
entity Palau
relation diplomatic relation
action find
entity Karlsruhe Transport Authority
relation owned by
type political territorial entity
{'OR': [['Palau', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Karlsruhe Transport Authority', 'owned by', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . { { resource:Palau property:diplomatic_relation ?v } UNION { resource:Karlsruhe_Transport_Authority property:owned_by ?v } } }
[]
political territorial entity
Q8178 Q408 Q8551 Q8543 Q8182
SYSTEM
Karlsruhe, Australia, Südliche Weinstraße, Germersheim, Rastatt
Q8178 Q408 Q8551 Q8543 Q8182
OR((Q695,P530,c(Q1048835)), (Q1733986,P127,c(Q1048835)))
action filter_type
action union
action find
entity Q695
relation P530
action find
entity Q1733986
relation P127
type Q1048835
[ANSWERS] have a diplomatic relationship with Palau or are the owners of Karlsruhe Transport Authority
{'OR': [['Q695', 'P530', {'concept': 'Q1048835'}], ['Q1733986', 'P127', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . { { resource:Q695 property:P530 ?v } UNION { resource:Q1733986 property:P127 ?v } } }
Karlsruhe Australia Südliche Weinstraße Germersheim Rastatt
Karlsruhe, Australia, Südliche Weinstraße, Germersheim and Rastatt have a diplomatic relationship with Palau or are the owners of Karlsruhe Transport Authority
Karlsruhe Australia Südliche Weinstraße Germersheim Rastatt
action filter_type
action union
action find
entity Palau
relation diplomatic relation
action find
entity Karlsruhe Transport Authority
relation owned by
type political territorial entity
{'OR': [['Palau', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Karlsruhe Transport Authority', 'owned by', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . { { resource:Palau property:diplomatic_relation ?v } UNION { resource:Karlsruhe_Transport_Authority property:owned_by ?v } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8182
P190
Q56061
USER
Which administrative territory is sister town of that political territory ?
(c(Q56061),P190,Q8182)
action filter_type
action find
entity Q8182
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q8182']
SELECT DISTINCT ?m WHERE { resource:Q8182 property:P190 ?m . ?m rdf:type ontology:Q56061 }
Rastatt
action filter_type
action find
entity Rastatt
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rastatt']
SELECT DISTINCT ?m WHERE { resource:Rastatt property:sister_city ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q8182
SYSTEM
Did you mean Rastatt ?
Q8178 Q408 Q8551 Q8543 Q8182
(c(Q56061),P190,Q8178) (c(Q56061),P190,Q408) (c(Q56061),P190,Q8551) (c(Q56061),P190,Q8543) (c(Q56061),P190,Q8182)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q8178'] [{'concept': 'Q56061'}, 'P190', 'Q408'] [{'concept': 'Q56061'}, 'P190', 'Q8551'] [{'concept': 'Q56061'}, 'P190', 'Q8543'] [{'concept': 'Q56061'}, 'P190', 'Q8182']
SELECT DISTINCT ?m WHERE { resource:Q8182 property:P190 ?m . ?m rdf:type ontology:Q56061 }
Karlsruhe Australia Südliche Weinstraße Germersheim Rastatt
Did you mean Rastatt ?
Rastatt
[{'concept': 'administrative territorial entity'}, 'sister city', 'Karlsruhe'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Australia'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Südliche Weinstraße'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Germersheim'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Rastatt']
SELECT DISTINCT ?m WHERE { resource:Rastatt property:sister_city ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q56061),P190,Q8182)
[{'concept': 'Q56061'}, 'P190', 'Q8182']
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rastatt']
[]
Q127623
SYSTEM
Vantaa
Q127623
(c(Q56061),P190,Q8182)
action filter_type
action find
entity Q8182
relation P190
type Q56061
[ANSWER] is sister town of that political territory
[{'concept': 'Q56061'}, 'P190', 'Q8182']
SELECT DISTINCT ?m WHERE { resource:Q8182 property:P190 ?m . ?m rdf:type ontology:Q56061 }
Vantaa
Vantaa is sister town of that political territory
Vantaa
action filter_type
action find
entity Rastatt
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rastatt']
SELECT DISTINCT ?m WHERE { resource:Rastatt property:sister_city ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]