Simple Question (Direct)
Simple Question
Q2158950
P39
Q12737077
USER
Which occupations were the positions occupied by Robert T. Van Horn ?
(Q2158950,P39,c(Q12737077))
action filter_type
action find
entity Q2158950
relation P39
type Q12737077
['Q2158950', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q2158950 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Robert T. Van Horn
action filter_type
action find
entity Robert T. Van Horn
relation position held
type occupation
['Robert T. Van Horn', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Robert_T._Van_Horn property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18196421 Q21364537
SYSTEM
United States representative, Mayor of Kansas City, member of the State Senate of Missouri
Q13218630 Q18196421 Q21364537
(Q2158950,P39,c(Q12737077))
action filter_type
action find
entity Q2158950
relation P39
type Q12737077
[ANSWERS]
['Q2158950', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q2158950 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
United States representative Mayor of Kansas City member of the State Senate of Missouri
United States representative Mayor of Kansas City member of the State Senate of Missouri
action filter_type
action find
entity Robert T. Van Horn
relation position held
type occupation
['Robert T. Van Horn', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Robert_T._Van_Horn property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2158950
P20
Q56061
USER
Where did the demise of that person occur ?
(Q13218630,P20,c(Q56061)) (Q18196421,P20,c(Q56061)) (Q21364537,P20,c(Q56061))
action filter_type
action find
entity Q2158950
relation P20
type Q56061
['Q13218630', 'P20', {'concept': 'Q56061'}] ['Q18196421', 'P20', {'concept': 'Q56061'}] ['Q21364537', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q2158950 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Robert T. Van Horn
action filter_type
action find
entity Robert T. Van Horn
relation place of death
type administrative territorial entity
['United States representative', 'place of death', {'concept': 'administrative territorial entity'}] ['Mayor of Kansas City', 'place of death', {'concept': 'administrative territorial entity'}] ['member of the State Senate of Missouri', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Robert_T._Van_Horn property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q41819
SYSTEM
Kansas City
Q41819
(Q13218630,P20,c(Q56061)) (Q18196421,P20,c(Q56061)) (Q21364537,P20,c(Q56061))
action filter_type
action find
entity Q2158950
relation P20
type Q56061
The demise of that person occurred in [ANSWER]
['Q13218630', 'P20', {'concept': 'Q56061'}] ['Q18196421', 'P20', {'concept': 'Q56061'}] ['Q21364537', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q2158950 property:P20 ?f . ?f rdf:type ontology:Q56061 }
Kansas City
The demise of that person occurred in Kansas City
Kansas City
action filter_type
action find
entity Robert T. Van Horn
relation place of death
type administrative territorial entity
['United States representative', 'place of death', {'concept': 'administrative territorial entity'}] ['Mayor of Kansas City', 'place of death', {'concept': 'administrative territorial entity'}] ['member of the State Senate of Missouri', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Robert_T._Van_Horn property:place_of_death ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q41819 Q247835
P17
Q15617994
USER
Is that administrative territory situated in Montagnareale ?
(Q41819,P17,Q247835)
action is_in
entity Q247835
action find
entity Q41819
relation P17
['Q41819', 'P17', 'Q247835']
ASK WHERE { resource:Q41819 property:P17 resource:Q247835 }
Kansas City Montagnareale
action is_in
entity Montagnareale
action find
entity Kansas City
relation country
['Kansas City', 'country', 'Montagnareale']
ASK WHERE { resource:Kansas_City property:country resource:Montagnareale }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q41819,P17,Q247835)
action is_in
entity Q247835
action find
entity Q41819
relation P17
[ANSWER]
['Q41819', 'P17', 'Q247835']
ASK WHERE { resource:Q41819 property:P17 resource:Q247835 }
No
action is_in
entity Montagnareale
action find
entity Kansas City
relation country
['Kansas City', 'country', 'Montagnareale']
ASK WHERE { resource:Kansas_City property:country resource:Montagnareale }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2158950 Q30 Q5900701
P27
Q15617994
USER
Is Robert T. Van Horn a native of United States of America and Hopkins Public Schools ?
(Q2158950,P27,Q30) (Q2158950,P27,Q5900701)
action is_in
entity Q2158950
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q5900701
relation P27
['Q2158950', 'P27', 'Q30'] ['Q2158950', 'P27', 'Q5900701']
ASK WHERE { resource:Q2158950 property:P27 resource:Q30 . resource:Q2158950 property:P27 resource:Q5900701 }
Robert T. Van Horn United States of America Hopkins Public Schools
action is_in
entity Robert T. Van Horn
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Hopkins Public Schools
relation country of citizenship
['Robert T. Van Horn', 'country of citizenship', 'United States of America'] ['Robert T. Van Horn', 'country of citizenship', 'Hopkins Public Schools']
ASK WHERE { resource:Robert_T._Van_Horn property:country_of_citizenship resource:United_States_of_America . resource:Robert_T._Van_Horn property:country_of_citizenship resource:Hopkins_Public_Schools }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q2158950,P27,Q30) (Q2158950,P27,Q5900701)
action is_in
entity Q2158950
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q5900701
relation P27
[ANSWER]
['Q2158950', 'P27', 'Q30'] ['Q2158950', 'P27', 'Q5900701']
ASK WHERE { resource:Q2158950 property:P27 resource:Q30 . resource:Q2158950 property:P27 resource:Q5900701 }
YES and NO respectively
action is_in
entity Robert T. Van Horn
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Hopkins Public Schools
relation country of citizenship
['Robert T. Van Horn', 'country of citizenship', 'United States of America'] ['Robert T. Van Horn', 'country of citizenship', 'Hopkins Public Schools']
ASK WHERE { resource:Robert_T._Van_Horn property:country_of_citizenship resource:United_States_of_America . resource:Robert_T._Van_Horn property:country_of_citizenship resource:Hopkins_Public_Schools }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2158950
P106
Q28640
USER
What does that person do for a living ?
action filter_type
action find
entity Q2158950
relation P106
type Q28640
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q28640 . resource:Q2158950 property:P106 ?m }
Robert T. Van Horn
action filter_type
action find
entity Robert T. Van Horn
relation occupation
type profession
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:profession . resource:Robert_T._Van_Horn property:occupation ?m }
[]
profession
Q40348
SYSTEM
lawyer
Q40348
action filter_type
action find
entity Q2158950
relation P106
type Q28640
That person does a [ANSWER] for a living
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q28640 . resource:Q2158950 property:P106 ?m }
lawyer
That person does a lawyer for a living
lawyer
action filter_type
action find
entity Robert T. Van Horn
relation occupation
type profession
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:profession . resource:Robert_T._Van_Horn property:occupation ?m }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q40348 Q358325
P417
Q502895
USER
Is Ivo of Kermartin the name of the patron saint of that profession ?
(Q40348,P417,Q358325)
action is_in
entity Q358325
action find
entity Q40348
relation P417
['Q40348', 'P417', 'Q358325']
ASK WHERE { resource:Q40348 property:P417 resource:Q358325 }
lawyer Ivo of Kermartin
action is_in
entity Ivo of Kermartin
action find
entity lawyer
relation patron saint
['lawyer', 'patron saint', 'Ivo of Kermartin']
ASK WHERE { resource:lawyer property:patron_saint resource:Ivo_of_Kermartin }
[]
common name
SYSTEM
YES
(Q40348,P417,Q358325)
action is_in
entity Q358325
action find
entity Q40348
relation P417
[ANSWER]
['Q40348', 'P417', 'Q358325']
ASK WHERE { resource:Q40348 property:P417 resource:Q358325 }
Yes
action is_in
entity Ivo of Kermartin
action find
entity lawyer
relation patron saint
['lawyer', 'patron saint', 'Ivo of Kermartin']
ASK WHERE { resource:lawyer property:patron_saint resource:Ivo_of_Kermartin }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q41819
P190
Q56061
USER
Which administrative territories are twin cities of Kansas City ?
(Q41819,P190,c(Q56061))
action filter_type
action find
entity Q41819
relation P190
type Q56061
['Q41819', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q41819 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Kansas City
action filter_type
action find
entity Kansas City
relation sister city
type administrative territorial entity
['Kansas City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Kansas_City property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1715 Q8717 Q3780
SYSTEM
Hanover, Seville, Freetown
Q221447 Q3780 Q8717 Q4301 Q1715
(Q41819,P190,c(Q56061))
action filter_type
action find
entity Q41819
relation P190
type Q56061
[ANSWERS] are twin cities of Kansas City
['Q41819', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q41819 property:P190 ?v . ?v rdf:type ontology:Q56061 }
Ramla Freetown Seville Arusha Hanover
Hanover, Seville and Freetown are twin cities of Kansas City
Hanover Seville Freetown
action filter_type
action find
entity Kansas City
relation sister city
type administrative territorial entity
['Kansas City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Kansas_City property:sister_city ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1715 Q8717 Q3780
P17
Q15617994
USER
Which administrative territories are Hanover, Seville and Freetown located in ?
(Q1715,P17,c(Q15617994)) (Q8717,P17,c(Q15617994)) (Q3780,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1715
relation P17
type Q15617994
action filter_type
action find
entity Q8717
relation P17
type Q15617994
action filter_type
action find
entity Q3780
relation P17
type Q15617994
['Q1715', 'P17', {'concept': 'Q15617994'}] ['Q8717', 'P17', {'concept': 'Q15617994'}] ['Q3780', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?m property:P17 ?t . VALUES ( ?m ) { ( resource:Q8717 ) ( resource:Q1715 ) } }
Hanover Seville Freetown
action union
action filter_type
action find
entity Hanover
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Seville
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Freetown
relation country
type designation for an administrative territorial entity
['Hanover', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Seville', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Freetown', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?m property:country ?t . VALUES ( ?m ) { ( resource:Seville ) ( resource:Hanover ) } }
[]
designation for an administrative territorial entity
Q565812 Q29 Q1044
SYSTEM
Principality of Calenberg, Spain, Sierra Leone
Q565812 Q29 Q1044
(Q1715,P17,c(Q15617994)) (Q8717,P17,c(Q15617994)) (Q3780,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1715
relation P17
type Q15617994
action filter_type
action find
entity Q8717
relation P17
type Q15617994
action filter_type
action find
entity Q3780
relation P17
type Q15617994
Hanover , Seville and Freetown are located in [ANSWERS]
['Q1715', 'P17', {'concept': 'Q15617994'}] ['Q8717', 'P17', {'concept': 'Q15617994'}] ['Q3780', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?m property:P17 ?t . VALUES ( ?m ) { ( resource:Q8717 ) ( resource:Q1715 ) } }
Principality of Calenberg Spain Sierra Leone
Hanover , Seville and Freetown are located in Principality of Calenberg, Spain and Sierra Leone
Principality of Calenberg Spain Sierra Leone
action union
action filter_type
action find
entity Hanover
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Seville
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Freetown
relation country
type designation for an administrative territorial entity
['Hanover', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Seville', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Freetown', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?m property:country ?t . VALUES ( ?m ) { ( resource:Seville ) ( resource:Hanover ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q565812
P1376
Q56061
USER
Which administrative territory is the county seat for that administrative territory ?
(c(Q56061),P1376,Q565812)
action filter_type
action find_reverse
entity Q565812
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q565812']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q565812 . ?u rdf:type ontology:Q56061 }
Principality of Calenberg
action filter_type
action find_reverse
entity Principality of Calenberg
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Principality of Calenberg']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Principality_of_Calenberg . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q29
SYSTEM
Did you mean Spain ?
Q565812 Q29 Q1044
(c(Q56061),P1376,Q565812) (c(Q56061),P1376,Q29) (c(Q56061),P1376,Q1044)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q565812'] [{'concept': 'Q56061'}, 'P1376', 'Q29'] [{'concept': 'Q56061'}, 'P1376', 'Q1044']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q565812 . ?u rdf:type ontology:Q56061 }
Principality of Calenberg Spain Sierra Leone
Did you mean Spain ?
Spain
[{'concept': 'administrative territorial entity'}, 'capital of', 'Principality of Calenberg'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Spain'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Sierra Leone']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Principality_of_Calenberg . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Principality of Calenberg. Could you tell me the answer for that?
(c(Q56061),P1376,Q565812)
Q565812
[{'concept': 'Q56061'}, 'P1376', 'Q565812']
[{'concept': 'administrative territorial entity'}, 'capital of', 'Principality of Calenberg']
[]
Q1715
SYSTEM
Hanover
Q1715
(c(Q56061),P1376,Q565812)
action filter_type
action find_reverse
entity Q565812
relation P1376
type Q56061
[ANSWER] is the county seat for that administrative territory
[{'concept': 'Q56061'}, 'P1376', 'Q565812']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q565812 . ?u rdf:type ontology:Q56061 }
Hanover
Hanover is the county seat for that administrative territory
Hanover
action filter_type
action find_reverse
entity Principality of Calenberg
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Principality of Calenberg']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:Principality_of_Calenberg . ?u rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1019
P495
Q15617994 Q201658 Q2342494
USER
How many administrative territories are the origins of less number of film genres or collectables than Madagascar ?
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1019
relation P495
type Q201658
type Q2342494
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?l WHERE { ?v rdf:type ?t . VALUES ( ?t ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P495 resource:Q1019 . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q201658 ) } } } } . FILTER ( ?r < ?d ) }
Madagascar
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Madagascar
relation country of origin
type film genre
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?l WHERE { ?v rdf:type ?t . VALUES ( ?t ) { ( ontology:film_genre ) ( ontology:collectable ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:country_of_origin resource:Madagascar . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:film_genre ) } } } } . FILTER ( ?r < ?d ) }
[]
designation for an administrative territorial entity film genre collectable
SYSTEM
63
Q805 Q804 Q1462 Q265 Q36678 Q712 Q711 Q1460 Q398 Q657 Q889 Q958 Q986 Q826 Q244 Q811 Q153136 Q924 Q423 Q29999 Q819 Q424 Q730 Q159626 Q236 Q238 Q921 Q1025 Q1020 Q184 Q786 Q223 Q221 Q229 Q347 Q1037 Q1030 Q967 Q962 Q963 Q750 Q211 Q217 Q917 Q916 Q1007 Q1005 Q1009 Q971 Q239502 Q686 Q836 Q574 Q874 Q858 Q817 Q810 Q813 Q1016 Q945 Q672 Q176 Q863
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1019
relation P495
type Q201658
type Q2342494
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?l WHERE { ?v rdf:type ?t . VALUES ( ?t ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P495 resource:Q1019 . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q2342494 ) ( ontology:Q201658 ) } } } } . FILTER ( ?r < ?d ) }
Yemen Panama Sardinia Uzbekistan West Bank Fiji Mongolia Sicily Bahrain Chad Afghanistan South Sudan Eritrea Maldives Barbados Nicaragua Habsburg Empire Tanzania North Korea Kingdom of the Netherlands Laos Cambodia Suriname Württemberg Montenegro San Marino Brunei Mauritania Malawi Belarus Dominican Republic Greenland Republic of Macedonia Cyprus Liechtenstein Rwanda Namibia Burundi Benin Botswana Bolivia Latvia Republic of Moldova Bhutan Angola Guinea-Bissau Gambia Cameroon Republic of the Congo Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Syria Kuwait Jordan Kyrgyzstan Libya Togo Tuvalu Quebec Tajikistan
63
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Madagascar
relation country of origin
type film genre
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) ?l WHERE { ?v rdf:type ?t . VALUES ( ?t ) { ( ontology:film_genre ) ( ontology:collectable ) } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:country_of_origin resource:Madagascar . { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:collectable ) ( ontology:film_genre ) } } } } . FILTER ( ?r < ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q774
P495
Q15617994 Q201658 Q2342494
USER
And what about Guatemala?
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q774
relation P495
type Q201658
type Q2342494
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q201658 } UNION { ?h property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2342494 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:P495 resource:Q774 . { { ?g rdf:type ontology:Q201658 } UNION { ?g rdf:type ontology:Q2342494 } } } } . FILTER ( ?v < ?b ) }
Guatemala
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Guatemala
relation country of origin
type film genre
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:film_genre } UNION { ?h property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:collectable } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:country_of_origin resource:Guatemala . { { ?g rdf:type ontology:film_genre } UNION { ?g rdf:type ontology:collectable } } } } . FILTER ( ?v < ?b ) }
[]
designation for an administrative territorial entity film genre collectable
SYSTEM
84
Q805 Q804 Q1462 Q783 Q265 Q36678 Q712 Q711 Q1460 Q398 Q657 Q4628 Q889 Q958 Q986 Q826 Q242 Q244 Q811 Q153136 Q924 Q423 Q733 Q29999 Q819 Q424 Q730 Q1013 Q159626 Q236 Q232 Q233 Q238 Q1045 Q1044 Q921 Q1025 Q1027 Q1020 Q184 Q736 Q786 Q227 Q225 Q223 Q221 Q229 Q347 Q1037 Q1032 Q1030 Q967 Q962 Q963 Q750 Q211 Q217 Q214 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q858 Q878 Q817 Q810 Q1019 Q813 Q1016 Q945 Q672 Q176 Q863 Q953
(c(Q201658)|c(Q2342494),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q774
relation P495
type Q201658
type Q2342494
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q201658 } UNION { ?h property:P495 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2342494 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:P495 resource:Q774 . { { ?g rdf:type ontology:Q201658 } UNION { ?g rdf:type ontology:Q2342494 } } } } . FILTER ( ?v < ?b ) }
Yemen Panama Sardinia Honduras Uzbekistan West Bank Fiji Mongolia Sicily Bahrain Chad Faroe Islands Afghanistan South Sudan Eritrea Maldives Belize Barbados Nicaragua Habsburg Empire Tanzania North Korea Paraguay Kingdom of the Netherlands Laos Cambodia Suriname Lesotho Württemberg Montenegro Kazakhstan Malta San Marino Somalia Sierra Leone Brunei Mauritania Mauritius Malawi Belarus Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Greenland Republic of Macedonia Cyprus Liechtenstein Rwanda Niger Namibia Burundi Benin Botswana Bolivia Latvia Republic of Moldova Slovakia Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Syria United Arab Emirates Kuwait Jordan Madagascar Kyrgyzstan Libya Togo Tuvalu Quebec Tajikistan Zambia
84
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Guatemala
relation country of origin
type film genre
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?v ) WHERE { { ?h property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:film_genre } UNION { ?h property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:collectable } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) WHERE { ?g property:country_of_origin resource:Guatemala . { { ?g rdf:type ontology:film_genre } UNION { ?g rdf:type ontology:collectable } } } } . FILTER ( ?v < ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1715
P138
Q34442
USER
Which road comes from Hanover ?
(c(Q34442),P138,Q1715)
action filter_type
action find_reverse
entity Q1715
relation P138
type Q34442
[{'concept': 'Q34442'}, 'P138', 'Q1715']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q1715 . ?f rdf:type ontology:Q34442 }
Hanover
action filter_type
action find_reverse
entity Hanover
relation named after
type road
[{'concept': 'road'}, 'named after', 'Hanover']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Hanover . ?f rdf:type ontology:road }
[]
road
Q3450763
SYSTEM
rue de Hanovre
Q3450763
(c(Q34442),P138,Q1715)
action filter_type
action find_reverse
entity Q1715
relation P138
type Q34442
[ANSWER] comes from Hanover
[{'concept': 'Q34442'}, 'P138', 'Q1715']
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q1715 . ?f rdf:type ontology:Q34442 }
rue de Hanovre
Rue de Hanovre comes from Hanover
rue de Hanovre
action filter_type
action find_reverse
entity Hanover
relation named after
type road
[{'concept': 'road'}, 'named after', 'Hanover']
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Hanover . ?f rdf:type ontology:road }
[]