Simple Question (Direct)
Simple Question
Q7652805
P27
Q15617994
USER
Which administrative territory is Svyataslaw Bokhan an inhabitant of ?
(Q7652805,P27,c(Q15617994))
action filter_type
action find
entity Q7652805
relation P27
type Q15617994
['Q7652805', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q7652805 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Svyataslaw Bokhan
action filter_type
action find
entity Svyataslaw Bokhan
relation country of citizenship
type designation for an administrative territorial entity
['Svyataslaw Bokhan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Svyataslaw_Bokhan property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184
SYSTEM
Belarus
Q184
(Q7652805,P27,c(Q15617994))
action filter_type
action find
entity Q7652805
relation P27
type Q15617994
[ANSWER] is Svyataslaw Bokhan an inhabitant of
['Q7652805', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q7652805 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Belarus
Belarus is Svyataslaw Bokhan an inhabitant of
Belarus
action filter_type
action find
entity Svyataslaw Bokhan
relation country of citizenship
type designation for an administrative territorial entity
['Svyataslaw Bokhan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Svyataslaw_Bokhan property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7652805
P106
Q12737077
USER
What does that person do for a living ?
(Q184,P106,c(Q12737077))
action filter_type
action find
entity Q7652805
relation P106
type Q12737077
['Q184', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q7652805 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Svyataslaw Bokhan
action filter_type
action find
entity Svyataslaw Bokhan
relation occupation
type occupation
['Belarus', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Svyataslaw_Bokhan property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q184,P106,c(Q12737077))
action filter_type
action find
entity Q7652805
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q184', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q7652805 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Svyataslaw Bokhan
relation occupation
type occupation
['Belarus', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Svyataslaw_Bokhan property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1509041 Q7652805
P39 P106
Q12737077
USER
Which occupations have Svyataslaw Bokhan as his/her as a career or were the positions held by Georges Mouton ?
OR((Q7652805,P106,c(Q12737077)), (Q1509041,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q7652805
relation P106
action find
entity Q1509041
relation P39
type Q12737077
{'OR': [['Q7652805', 'P106', {'concept': 'Q12737077'}], ['Q1509041', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q7652805 property:P106 ?n } UNION { resource:Q1509041 property:P39 ?n } } . ?n rdf:type ontology:Q12737077 }
Georges Mouton Svyataslaw Bokhan
action filter_type
action union
action find
entity Svyataslaw Bokhan
relation occupation
action find
entity Georges Mouton
relation position held
type occupation
{'OR': [['Svyataslaw Bokhan', 'occupation', {'concept': 'occupation'}], ['Georges Mouton', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Svyataslaw_Bokhan property:occupation ?n } UNION { resource:Georges_Mouton property:position_held ?n } } . ?n rdf:type ontology:occupation }
[]
occupation
Q21034738 Q3044918 Q937857
SYSTEM
Peer of France, member of the French National Assembly, association football player
Q21034738 Q3044918 Q937857
OR((Q7652805,P106,c(Q12737077)), (Q1509041,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q7652805
relation P106
action find
entity Q1509041
relation P39
type Q12737077
[ANSWERS]
{'OR': [['Q7652805', 'P106', {'concept': 'Q12737077'}], ['Q1509041', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q7652805 property:P106 ?n } UNION { resource:Q1509041 property:P39 ?n } } . ?n rdf:type ontology:Q12737077 }
Peer of France member of the French National Assembly association football player
Peer of France, member of the French National Assembly and association football player have Svyataslaw Bokhan as his/her as a career or were the positions held by Georges Mouton
Peer of France member of the French National Assembly association football player
action filter_type
action union
action find
entity Svyataslaw Bokhan
relation occupation
action find
entity Georges Mouton
relation position held
type occupation
{'OR': [['Svyataslaw Bokhan', 'occupation', {'concept': 'occupation'}], ['Georges Mouton', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Svyataslaw_Bokhan property:occupation ?n } UNION { resource:Georges_Mouton property:position_held ?n } } . ?n rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184
P530
Q15617994
USER
Who have diplomatic relationships with Belarus ?
(Q184,P530,c(Q15617994))
action filter_type
action find
entity Q184
relation P530
type Q15617994
['Q184', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q184 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
Belarus
action filter_type
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Belarus property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q843 Q241 Q668 Q414 Q227 Q224 Q55 Q262 Q148 Q233 Q33 Q874 Q30 Q37 Q36 Q34 Q39 Q38 Q902 Q833 Q1016 Q298 Q403 Q159 Q142 Q212 Q213 Q211 Q230 Q217 Q214 Q215 Q155 Q41 Q794 Q27
(Q184,P530,c(Q15617994))
action filter_type
action find
entity Q184
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with Belarus
['Q184', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q184 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
Israel Pakistan Cuba India Argentina Azerbaijan Croatia Netherlands Algeria People's Republic of China Malta Finland Turkmenistan United States of America Lithuania Poland Sweden Switzerland Italy Bangladesh Malaysia Libya Chile Serbia Russia France Ukraine Czech Republic Latvia Georgia Republic of Moldova Slovakia Slovenia Brazil Greece Iran Ireland
Italy, Brazil and United States of America have diplomatic relationships with Belarus
Italy Brazil United States of America
action filter_type
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
['Belarus', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Belarus property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q184
Q1048835
USER
And which political territory?
(Q184,P530,c(Q1048835))
action filter_type
action find
entity Q184
relation P530
type Q1048835
['Q184', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q184 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
Belarus
action filter_type
action find
entity Belarus
relation diplomatic relation
type political territorial entity
['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Belarus property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
(Q184,P530,c(Q1048835))
action filter_type
action find
entity Q184
relation P530
type Q1048835
[ANSWERS]
['Q184', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q184 property:P530 ?i . ?i rdf:type ontology:Q1048835 }
Germany Denmark
Germany Denmark
action filter_type
action find
entity Belarus
relation diplomatic relation
type political territorial entity
['Belarus', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Belarus property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q961279 Q7652805
P641
Q349
USER
Which sports were Svyataslaw Bokhan or Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle a part of ?
OR((Q7652805,P641,c(Q349)), (Q961279,P641,c(Q349)))
action filter_type
action union
action find
entity Q7652805
relation P641
action find
entity Q961279
relation P641
type Q349
{'OR': [['Q7652805', 'P641', {'concept': 'Q349'}], ['Q961279', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q961279 property:P641 ?m } UNION { resource:Q7652805 property:P641 ?m } } . ?m rdf:type ontology:Q349 }
Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle Svyataslaw Bokhan
action filter_type
action union
action find
entity Svyataslaw Bokhan
relation sport
action find
entity Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle
relation sport
type sport
{'OR': [['Svyataslaw Bokhan', 'sport', {'concept': 'sport'}], ["Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle", 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Swimming_at_the_2009_World_Aquatics_Championships_–_Men's_50_metre_freestyle property:sport ?m } UNION { resource:Svyataslaw_Bokhan property:sport ?m } } . ?m rdf:type ontology:sport }
[]
sport
Q31920 Q2736
SYSTEM
swimming, association football
Q31920 Q2736
OR((Q7652805,P641,c(Q349)), (Q961279,P641,c(Q349)))
action filter_type
action union
action find
entity Q7652805
relation P641
action find
entity Q961279
relation P641
type Q349
[ANSWERS] were Svyataslaw Bokhan or Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle a part of
{'OR': [['Q7652805', 'P641', {'concept': 'Q349'}], ['Q961279', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q961279 property:P641 ?m } UNION { resource:Q7652805 property:P641 ?m } } . ?m rdf:type ontology:Q349 }
swimming association football
Swimming and association football were Svyataslaw Bokhan or Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle a part of
swimming association football
action filter_type
action union
action find
entity Svyataslaw Bokhan
relation sport
action find
entity Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle
relation sport
type sport
{'OR': [['Svyataslaw Bokhan', 'sport', {'concept': 'sport'}], ["Swimming at the 2009 World Aquatics Championships – Men's 50 metre freestyle", 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Swimming_at_the_2009_World_Aquatics_Championships_–_Men's_50_metre_freestyle property:sport ?m } UNION { resource:Svyataslaw_Bokhan property:sport ?m } } . ?m rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q187035
P17
Q15617994 Q13220204 Q3947
USER
How many administrative territories are more number of administrative country subdivisions or houses situated in than Principality of Albania ?
(c(Q13220204)|c(Q3947),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action count
action filter_multi_types
action find_reverse
entity Q187035
relation P17
type Q13220204
type Q3947
[[{'concept': 'Q13220204'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P17 ?n . ?h rdf:type ontology:Q13220204 . ?n rdf:type ontology:Q15617994 } UNION { ?h property:P17 ?n . ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q3947 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P17 resource:Q187035 . { { ?l rdf:type ontology:Q13220204 } UNION { ?l rdf:type ontology:Q3947 } } } } . FILTER ( ?j > ?r ) }
Principality of Albania
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action count
action filter_multi_types
action find_reverse
entity Principality of Albania
relation country
type second-level administrative country subdivision
type house
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'house'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:country ?n . ?h rdf:type ontology:second-level_administrative_country_subdivision . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:house } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:country resource:Principality_of_Albania . { { ?l rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?l rdf:type ontology:house } } } } . FILTER ( ?j > ?r ) }
[]
designation for an administrative territorial entity second-level administrative country subdivision house
SYSTEM
98
Q702 Q801 Q419 Q668 Q142 Q55 Q145 Q262 Q148 Q214 Q712 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q954 Q881 Q822 Q736 Q153136 Q33 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q983 Q733 Q29999 Q854 Q424 Q730 Q1282 Q230 Q233 Q238 Q20 Q1044 Q27 Q28 Q1025 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q836 Q786 Q32 Q225 Q224 Q222 Q17 Q10957559 Q1036 Q974 Q1032 Q1033 Q965 Q967 Q962 Q963 Q298 Q750 Q212 Q213 Q211 Q217 Q215 Q218 Q37 Q916 Q1006 Q1005 Q1008 Q29 Q874 Q858 Q813 Q1014 Q1016 Q678 Q863 Q1049 Q869 Q953
(c(Q13220204)|c(Q3947),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action count
action filter_multi_types
action find_reverse
entity Q187035
relation P17
type Q13220204
type Q3947
[ANSWER]
[[{'concept': 'Q13220204'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:P17 ?n . ?h rdf:type ontology:Q13220204 . ?n rdf:type ontology:Q15617994 } UNION { ?h property:P17 ?n . ?n rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q3947 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P17 resource:Q187035 . { { ?l rdf:type ontology:Q13220204 } UNION { ?l rdf:type ontology:Q3947 } } } } . FILTER ( ?j > ?r ) }
Federated States of Micronesia Israel Peru India France Netherlands United Kingdom Algeria People's Republic of China Slovakia Fiji Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Zimbabwe Vietnam Lebanon Ecuador Habsburg Empire Finland Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Cambodia Suriname Lazio Georgia Malta San Marino Norway Sierra Leone Ireland Hungary Mauritania Malawi Iceland Pakistan Belarus Mozambique Morocco Myanmar Dominican Republic Luxembourg Bosnia and Herzegovina Croatia Albania Japan Moldavia Uganda Democratic Republic of the Congo Niger Nigeria Burkina Faso Burundi Benin Botswana Chile Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovenia Romania Lithuania Angola Guinea Gambia Côte d'Ivoire Spain Turkmenistan Syria Kyrgyzstan Liberia Libya Tonga Tajikistan Sudan Thailand Zambia
98
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action count
action filter_multi_types
action find_reverse
entity Principality of Albania
relation country
type second-level administrative country subdivision
type house
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'house'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?j ) WHERE { { ?h property:country ?n . ?h rdf:type ontology:second-level_administrative_country_subdivision . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:house } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:country resource:Principality_of_Albania . { { ?l rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?l rdf:type ontology:house } } } } . FILTER ( ?j > ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q736
P17
Q15617994 Q13220204 Q3947
USER
And what about Ecuador?
(c(Q13220204)|c(Q3947),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action count
action filter_multi_types
action find_reverse
entity Q736
relation P17
type Q13220204
type Q3947
[[{'concept': 'Q13220204'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { VALUES ( ?c ) { ( ontology:Q13220204 ) ( ontology:Q3947 ) } . ?s rdf:type ?c } . ?s property:P17 resource:Q736 } } . FILTER ( ?z > ?l ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?n WHERE { VALUES ( ?q ) { ( ontology:Q13220204 ) ( ontology:Q3947 ) } . ?i rdf:type ?q } GROUP BY ?n } }
Ecuador
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action count
action filter_multi_types
action find_reverse
entity Ecuador
relation country
type second-level administrative country subdivision
type house
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'house'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { VALUES ( ?c ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:house ) } . ?s rdf:type ?c } . ?s property:country resource:Ecuador } } . FILTER ( ?z > ?l ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?n WHERE { VALUES ( ?q ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:house ) } . ?i rdf:type ?q } GROUP BY ?n } }
[]
designation for an administrative territorial entity second-level administrative country subdivision house
SYSTEM
14
Q668 Q142 Q55 Q145 Q262 Q711 Q792 Q30 Q36 Q39 Q739 Q20 Q211 Q869
(c(Q13220204)|c(Q3947),P17,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q13220204
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action count
action filter_multi_types
action find_reverse
entity Q736
relation P17
type Q13220204
type Q3947
[ANSWER]
[[{'concept': 'Q13220204'}, {'concept': 'Q3947'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { VALUES ( ?c ) { ( ontology:Q13220204 ) ( ontology:Q3947 ) } . ?s rdf:type ?c } . ?s property:P17 resource:Q736 } } . FILTER ( ?z > ?l ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?n WHERE { VALUES ( ?q ) { ( ontology:Q13220204 ) ( ontology:Q3947 ) } . ?i rdf:type ?q } GROUP BY ?n } }
India France Netherlands United Kingdom Algeria Mongolia El Salvador United States of America Poland Switzerland Colombia Norway Latvia Thailand
14
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action count
action filter_multi_types
action find_reverse
entity Ecuador
relation country
type second-level administrative country subdivision
type house
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'house'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { VALUES ( ?c ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:house ) } . ?s rdf:type ?c } . ?s property:country resource:Ecuador } } . FILTER ( ?z > ?l ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) ?n WHERE { VALUES ( ?q ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:house ) } . ?i rdf:type ?q } GROUP BY ?n } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184
P194
Q1752346
USER
Which assembly is the legislative body for Belarus ?
(Q184,P194,c(Q1752346))
action filter_type
action find
entity Q184
relation P194
type Q1752346
['Q184', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { resource:Q184 property:P194 ?e . ?e rdf:type ontology:Q1752346 }
Belarus
action filter_type
action find
entity Belarus
relation legislative body
type assembly
['Belarus', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { resource:Belarus property:legislative_body ?e . ?e rdf:type ontology:assembly }
[]
assembly
Q1798607
SYSTEM
National Assembly of Belarus
Q1798607
(Q184,P194,c(Q1752346))
action filter_type
action find
entity Q184
relation P194
type Q1752346
The [ANSWER] is the legislative body for Belarus
['Q184', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { resource:Q184 property:P194 ?e . ?e rdf:type ontology:Q1752346 }
National Assembly of Belarus
The National Assembly of Belarus is the legislative body for Belarus
National Assembly of Belarus
action filter_type
action find
entity Belarus
relation legislative body
type assembly
['Belarus', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { resource:Belarus property:legislative_body ?e . ?e rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q811
Q1752346
USER
And what about Nicaragua?
(Q811,P194,c(Q1752346))
action filter_type
action find
entity Q811
relation P194
type Q1752346
['Q811', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?q WHERE { resource:Q811 property:P194 ?q . ?q rdf:type ontology:Q1752346 }
Nicaragua
action filter_type
action find
entity Nicaragua
relation legislative body
type assembly
['Nicaragua', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?q WHERE { resource:Nicaragua property:legislative_body ?q . ?q rdf:type ontology:assembly }
[]
assembly
Q1969591
SYSTEM
National Assembly
Q1969591
(Q811,P194,c(Q1752346))
action filter_type
action find
entity Q811
relation P194
type Q1752346
[ANSWER]
['Q811', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?q WHERE { resource:Q811 property:P194 ?q . ?q rdf:type ontology:Q1752346 }
National Assembly
National Assembly
action filter_type
action find
entity Nicaragua
relation legislative body
type assembly
['Nicaragua', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?q WHERE { resource:Nicaragua property:legislative_body ?q . ?q rdf:type ontology:assembly }
[]