Simple Question (Direct)
Simple Question
Q6409438
P21
Q290
USER
Which sex does Kim Sung-Hwan have ?
(Q6409438,P21,c(Q290))
action filter_type
action find
entity Q6409438
relation P21
type Q290
['Q6409438', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q6409438 property:P21 ?b }
Kim Sung-Hwan
action filter_type
action find
entity Kim Sung-Hwan
relation gender
type sex
['Kim Sung-Hwan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Kim_Sung-Hwan property:gender ?b }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6409438,P21,c(Q290))
action filter_type
action find
entity Q6409438
relation P21
type Q290
Kim Sung-Hwan has a [ANSWER]
['Q6409438', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q6409438 property:P21 ?b }
male
Kim Sung-Hwan has a male
male
action filter_type
action find
entity Kim Sung-Hwan
relation gender
type sex
['Kim Sung-Hwan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:Kim_Sung-Hwan property:gender ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6409438
P54
Q1194951
USER
What is Kim Sung-Hwan a member of ?
(Q6409438,P54,c(Q1194951))
action filter_type
action find
entity Q6409438
relation P54
type Q1194951
['Q6409438', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q6409438 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Kim Sung-Hwan
action filter_type
action find
entity Kim Sung-Hwan
relation member of sports team
type national sports team
['Kim Sung-Hwan', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Kim_Sung-Hwan property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
national sports team
Q543842
SYSTEM
South Korea national football team
Q543842
(Q6409438,P54,c(Q1194951))
action filter_type
action find
entity Q6409438
relation P54
type Q1194951
Kim Sung-Hwan a member of is the [ANSWER]
['Q6409438', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q6409438 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
South Korea national football team
Kim Sung-Hwan a member of is the South Korea national football team
South Korea national football team
action filter_type
action find
entity Kim Sung-Hwan
relation member of sports team
type national sports team
['Kim Sung-Hwan', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Kim_Sung-Hwan property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5427862
Q1194951
USER
And also tell me about Fabio Ramos?
(Q5427862,P54,c(Q1194951))
action filter_type
action find
entity Q5427862
relation P54
type Q1194951
['Q5427862', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?i WHERE { resource:Q5427862 property:P54 ?i . ?i rdf:type ontology:Q1194951 }
Fabio Ramos
action filter_type
action find
entity Fabio Ramos
relation member of sports team
type national sports team
['Fabio Ramos', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?i WHERE { resource:Fabio_Ramos property:member_of_sports_team ?i . ?i rdf:type ontology:national_sports_team }
[]
national sports team
Q172020
SYSTEM
Paraguay national football team
Q172020
(Q5427862,P54,c(Q1194951))
action filter_type
action find
entity Q5427862
relation P54
type Q1194951
[ANSWER]
['Q5427862', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?i WHERE { resource:Q5427862 property:P54 ?i . ?i rdf:type ontology:Q1194951 }
Paraguay national football team
Paraguay national football team
action filter_type
action find
entity Fabio Ramos
relation member of sports team
type national sports team
['Fabio Ramos', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?i WHERE { resource:Fabio_Ramos property:member_of_sports_team ?i . ?i rdf:type ontology:national_sports_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q172020
P1344
Q15275719
USER
How many recurring events did Paraguay national football team participate in ?
(Q172020,P1344,c(Q15275719))
action count
action filter_type
action find
entity Q172020
relation P1344
type Q15275719
['Q172020', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Q172020 property:P1344 ?d . ?d rdf:type ontology:Q15275719 }
Paraguay national football team
action count
action filter_type
action find
entity Paraguay national football team
relation participant of
type recurring event
['Paraguay national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Paraguay_national_football_team property:participant_of ?d . ?d rdf:type ontology:recurring_event }
[]
recurring event
SYSTEM
8
Q176883 Q37285 Q132515 Q48432 Q47735 Q46938 Q132533 Q101730
(Q172020,P1344,c(Q15275719))
action count
action filter_type
action find
entity Q172020
relation P1344
type Q15275719
[ANSWER]
['Q172020', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Q172020 property:P1344 ?d . ?d rdf:type ontology:Q15275719 }
2010 FIFA World Cup 2006 FIFA World Cup 1950 FIFA World Cup 1930 FIFA World Cup 2002 FIFA World Cup 1986 FIFA World Cup 1958 FIFA World Cup 1998 FIFA World Cup
8
action count
action filter_type
action find
entity Paraguay national football team
relation participant of
type recurring event
['Paraguay national football team', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { resource:Paraguay_national_football_team property:participant_of ?d . ?d rdf:type ontology:recurring_event }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q503281
Q15275719
USER
And what about Wim Jansen?
(Q503281,P1344,c(Q15275719))
action count
action filter_type
action find
entity Q503281
relation P1344
type Q15275719
['Q503281', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:Q15275719 . resource:Q503281 property:P1344 ?m }
Wim Jansen
action count
action filter_type
action find
entity Wim Jansen
relation participant of
type recurring event
['Wim Jansen', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:recurring_event . resource:Wim_Jansen property:participant_of ?m }
[]
recurring event
SYSTEM
2
(Q503281,P1344,c(Q15275719))
action count
action filter_type
action find
entity Q503281
relation P1344
type Q15275719
[ANSWER]
['Q503281', 'P1344', {'concept': 'Q15275719'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:Q15275719 . resource:Q503281 property:P1344 ?m }
2
action count
action filter_type
action find
entity Wim Jansen
relation participant of
type recurring event
['Wim Jansen', 'participant of', {'concept': 'recurring event'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { ?m rdf:type ontology:recurring_event . resource:Wim_Jansen property:participant_of ?m }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13428365 Q6409438
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Kim Sung-Hwan or are Admiraliteitskade a part of ?
OR((Q6409438,P27,c(Q15617994)), (Q13428365,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6409438
relation P27
action find
entity Q13428365
relation P17
type Q15617994
{'OR': [['Q6409438', 'P27', {'concept': 'Q15617994'}], ['Q13428365', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q6409438 property:P27 ?u } UNION { resource:Q13428365 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
Admiraliteitskade Kim Sung-Hwan
action filter_type
action union
action find
entity Kim Sung-Hwan
relation country of citizenship
action find
entity Admiraliteitskade
relation country
type designation for an administrative territorial entity
{'OR': [['Kim Sung-Hwan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Admiraliteitskade', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Kim_Sung-Hwan property:country_of_citizenship ?u } UNION { resource:Admiraliteitskade property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q884 Q55
SYSTEM
South Korea, Netherlands
Q884 Q55
OR((Q6409438,P27,c(Q15617994)), (Q13428365,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6409438
relation P27
action find
entity Q13428365
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Kim Sung-Hwan or are Admiraliteitskade a part of
{'OR': [['Q6409438', 'P27', {'concept': 'Q15617994'}], ['Q13428365', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q6409438 property:P27 ?u } UNION { resource:Q13428365 property:P17 ?u } } . ?u rdf:type ontology:Q15617994 }
South Korea Netherlands
South Korea and Netherlands are the countries of citizenship of Kim Sung-Hwan or are Admiraliteitskade a part of
South Korea Netherlands
action filter_type
action union
action find
entity Kim Sung-Hwan
relation country of citizenship
action find
entity Admiraliteitskade
relation country
type designation for an administrative territorial entity
{'OR': [['Kim Sung-Hwan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Admiraliteitskade', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Kim_Sung-Hwan property:country_of_citizenship ?u } UNION { resource:Admiraliteitskade property:country ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q37
P194
Q701632 Q1752346 Q15617994
USER
Which administrative territories have approximately the same number of municipal councils and assemblies as their legislative body as Lithuania ?
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q37
relation P194
type Q701632
type Q1752346
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q37 property:P194 ?z . { { ?z rdf:type ontology:Q1752346 } UNION { ?z rdf:type ontology:Q701632 } } } } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { { ?w property:P194 ?b . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q701632 } UNION { ?w property:P194 ?b . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1752346 } } GROUP BY ?w } }
Lithuania
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Lithuania
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Lithuania property:legislative_body ?z . { { ?z rdf:type ontology:assembly } UNION { ?z rdf:type ontology:municipal_council } } } } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { { ?w property:legislative_body ?b . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:municipal_council } UNION { ?w property:legislative_body ?b . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:assembly } } GROUP BY ?w } }
[]
municipal council assembly designation for an administrative territorial entity
Q30 Q148 Q17
SYSTEM
United States of America, People's Republic of China, Japan
Q805 Q800 Q1462 Q1250 Q1948 Q148 Q189 Q786 Q710 Q252320 Q187035 Q1460 Q3361 Q1979 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q153529 Q12761 Q244 Q1974 Q32 Q31 Q30 Q37 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q2009 Q2007 Q2003 Q1458 Q1904 Q227 Q347 Q17 Q1989 Q902 Q191 Q114 Q212 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q694594 Q1222 Q774 Q948 Q1016 Q27 Q1011 Q1243 Q12620 Q12626 Q672 Q1951 Q2023 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q37
relation P194
type Q701632
type Q1752346
[ANSWERS] have approximately the same number of municipal councils and assemblies as their legislative body as Lithuania
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q37 property:P194 ?z . { { ?z rdf:type ontology:Q1752346 } UNION { ?z rdf:type ontology:Q701632 } } } } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { { ?w property:P194 ?b . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q701632 } UNION { ?w property:P194 ?b . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1752346 } } GROUP BY ?w } }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia Manitoba People's Republic of China Iceland Dominican Republic Kiribati Pleinfeld Principality of Albania Sicily Doubs Prince Edward Island Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Duchy of Milan Seine-Saint-Denis Barbados British Columbia Luxembourg Belgium United States of America Lithuania Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Yukon Northwest Territories Newfoundland and Labrador Calabria Ontario Azerbaijan Liechtenstein Japan Saskatchewan Bangladesh Estonia Kenya Ukraine Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Aosta Valley Guatemala Tunisia Libya Ireland Cape Verde Veneto Mayenne Meurthe-et-Moselle Tuvalu Alberta Nunavut Trentino-South Tyrol
United States of America, People's Republic of China and Japan have approximately the same number of municipal councils and assemblies as their legislative body as Lithuania
United States of America People's Republic of China Japan
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Lithuania
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Lithuania property:legislative_body ?z . { { ?z rdf:type ontology:assembly } UNION { ?z rdf:type ontology:municipal_council } } } } . FILTER ( ?q = ?o ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?q ) WHERE { { ?w property:legislative_body ?b . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:municipal_council } UNION { ?w property:legislative_body ?b . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:assembly } } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1989
P194
Q701632 Q1752346 Q15617994
USER
And also tell me about Saskatchewan?
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q1989
relation P194
type Q701632
type Q1752346
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { { ?f property:P194 ?b . ?f rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q701632 } UNION { ?f rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1752346 . ?f property:P194 ?b } } GROUP BY ?f } . FILTER ( ?i = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q1989 property:P194 ?m . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1752346 ) ( ontology:Q701632 ) } } } } }
Saskatchewan
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Saskatchewan
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { { ?f property:legislative_body ?b . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:municipal_council } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:assembly . ?f property:legislative_body ?b } } GROUP BY ?f } . FILTER ( ?i = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Saskatchewan property:legislative_body ?m . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:assembly ) ( ontology:municipal_council ) } } } } }
[]
municipal council assembly designation for an administrative territorial entity
Q30 Q148 Q17
SYSTEM
United States of America, People's Republic of China, Japan
Q805 Q800 Q1462 Q1250 Q1948 Q148 Q189 Q786 Q710 Q252320 Q187035 Q1460 Q3361 Q1979 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q153529 Q12761 Q244 Q1974 Q32 Q31 Q30 Q37 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q2009 Q2007 Q2003 Q1458 Q1904 Q227 Q347 Q17 Q1989 Q902 Q191 Q114 Q212 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q694594 Q1222 Q774 Q948 Q1016 Q27 Q1011 Q1243 Q12620 Q12626 Q672 Q1951 Q2023 Q1237
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action approx
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action count
action filter_multi_types
action find
entity Q1989
relation P194
type Q701632
type Q1752346
[ANSWERS]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { { ?f property:P194 ?b . ?f rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q701632 } UNION { ?f rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1752346 . ?f property:P194 ?b } } GROUP BY ?f } . FILTER ( ?i = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q1989 property:P194 ?m . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1752346 ) ( ontology:Q701632 ) } } } } }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia Manitoba People's Republic of China Iceland Dominican Republic Kiribati Pleinfeld Principality of Albania Sicily Doubs Prince Edward Island Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Duchy of Milan Seine-Saint-Denis Barbados British Columbia Luxembourg Belgium United States of America Lithuania Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Yukon Northwest Territories Newfoundland and Labrador Calabria Ontario Azerbaijan Liechtenstein Japan Saskatchewan Bangladesh Estonia Kenya Ukraine Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Aosta Valley Guatemala Tunisia Libya Ireland Cape Verde Veneto Mayenne Meurthe-et-Moselle Tuvalu Alberta Nunavut Trentino-South Tyrol
United States of America People's Republic of China Japan
action approx
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action count
action filter_multi_types
action find
entity Saskatchewan
relation legislative body
type municipal council
type assembly
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?i ) WHERE { { ?f property:legislative_body ?b . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:municipal_council } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:assembly . ?f property:legislative_body ?b } } GROUP BY ?f } . FILTER ( ?i = ?u ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Saskatchewan property:legislative_body ?m . { ?m rdf:type ?y . VALUES ( ?y ) { ( ontology:assembly ) ( ontology:municipal_council ) } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q240580 Q37
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Lithuania and do Infanta Pilar, Duchess of Badajoz belong to ?
AND((Q37,P530,c(Q15617994)), (Q240580,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q37
relation P530
action find
entity Q240580
relation P27
type Q15617994
{'AND': [['Q37', 'P530', {'concept': 'Q15617994'}], ['Q240580', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q240580 property:P27 ?l . resource:Q37 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
Infanta Pilar, Duchess of Badajoz Lithuania
action filter_type
action intersection
action find
entity Lithuania
relation diplomatic relation
action find
entity Infanta Pilar, Duchess of Badajoz
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Lithuania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Infanta Pilar, Duchess of Badajoz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Infanta_Pilar,_Duchess_of_Badajoz property:country_of_citizenship ?l . resource:Lithuania property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q37,P530,c(Q15617994)), (Q240580,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q37
relation P530
action find
entity Q240580
relation P27
type Q15617994
[ANSWER] holds diplomatic relationship with Lithuania and do Infanta Pilar, Duchess of Badajoz belong to
{'AND': [['Q37', 'P530', {'concept': 'Q15617994'}], ['Q240580', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q240580 property:P27 ?l . resource:Q37 property:P530 ?l . ?l rdf:type ontology:Q15617994 }
Italy
Italy holds diplomatic relationship with Lithuania and do Infanta Pilar, Duchess of Badajoz belong to
Italy
action filter_type
action intersection
action find
entity Lithuania
relation diplomatic relation
action find
entity Infanta Pilar, Duchess of Badajoz
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Lithuania', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Infanta Pilar, Duchess of Badajoz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Infanta_Pilar,_Duchess_of_Badajoz property:country_of_citizenship ?l . resource:Lithuania property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55
P1001
Q12737077
USER
Which occupations have jurisdiction over Netherlands ?
(c(Q12737077),P1001,Q55)
action filter_type
action find_reverse
entity Q55
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q55']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q55 . ?h rdf:type ontology:Q12737077 }
Netherlands
action filter_type
action find_reverse
entity Netherlands
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Netherlands']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Netherlands . ?h rdf:type ontology:occupation }
[]
occupation
Q3058109 Q813403 Q27516524
SYSTEM
Prime Minister of the Netherlands, King's or Queen's Commissioner, member of the Provincial Executive
Q27516524 Q13423499 Q26197292 Q2003810 Q15729702 Q15729678 Q813403 Q2588268 Q20677341 Q3058109 Q15731332 Q2425776 Q19334526 Q27210697 Q26197286 Q20740176 Q15726205 Q20007045 Q20748648 Q2430481 Q20746056 Q251747 Q13858714 Q1847103
(c(Q12737077),P1001,Q55)
action filter_type
action find_reverse
entity Q55
relation P1001
type Q12737077
[ANSWERS] have jurisdiction over Netherlands
[{'concept': 'Q12737077'}, 'P1001', 'Q55']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q55 . ?h rdf:type ontology:Q12737077 }
member of the Provincial Executive mayor Minister of Economic Affairs Secretary-General of a Dutch Ministry minister of the Interior and Kingdom Relations Minister of Education, Culture and Science King's or Queen's Commissioner Speaker of the House of Representatives Minister of Finance of the Netherlands Prime Minister of the Netherlands Minister of Transport, Public Works and Water Management extraordinary member of the House of Representatives of the Netherlands minister of the Netherlands member of the States-Provincial Minister of Infastructure and Environment Minister of Defence Minister of Public Health, Welfare and Sport Minister of Foreign Affairs municipal councillor Deputy Prime Minister of the Netherlands Minister of Security and Justice President of the Senate Minister of Housing and the Central Government Sector State Secretary
Prime Minister of the Netherlands, King's or Queen's Commissioner and member of the Provincial Executive have jurisdiction over Netherlands
Prime Minister of the Netherlands King's or Queen's Commissioner member of the Provincial Executive
action filter_type
action find_reverse
entity Netherlands
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Netherlands']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Netherlands . ?h rdf:type ontology:occupation }
[]