Simple Question (Direct)
Simple Question
Q1176433
P734
Q82799
USER
Which name is associated with David Russell ?
(Q1176433,P734,c(Q82799))
action filter_type
action find
entity Q1176433
relation P734
type Q82799
['Q1176433', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q1176433 property:P734 ?n . ?n rdf:type ontology:Q82799 }
David Russell
action filter_type
action find
entity David Russell
relation family name
type name
['David Russell', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:David_Russell property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q1158262
SYSTEM
Russell
Q1158262
(Q1176433,P734,c(Q82799))
action filter_type
action find
entity Q1176433
relation P734
type Q82799
[ANSWER] is associated with David [ANSWER]
['Q1176433', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q1176433 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Russell
Russell is associated with David Russell
Russell
action filter_type
action find
entity David Russell
relation family name
type name
['David Russell', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:David_Russell property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1176433
P27
Q15617994
USER
Which administrative territory is David Russell a civilian of ?
(Q1176433,P27,c(Q15617994))
action filter_type
action find
entity Q1176433
relation P27
type Q15617994
['Q1176433', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1176433 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
David Russell
action filter_type
action find
entity David Russell
relation country of citizenship
type designation for an administrative territorial entity
['David Russell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:David_Russell property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1176433,P27,c(Q15617994))
action filter_type
action find
entity Q1176433
relation P27
type Q15617994
[ANSWER] is David Russell a civilian of
['Q1176433', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1176433 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Spain
Spain is David Russell a civilian of
Spain
action filter_type
action find
entity David Russell
relation country of citizenship
type designation for an administrative territorial entity
['David Russell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:David_Russell property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P36
Q56061
USER
Which administrative territory is associated to that administrative territory as the capital ?
(Q29,P36,c(Q56061))
action filter_type
action find
entity Q29
relation P36
type Q56061
['Q29', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q29 property:P36 ?u }
Spain
action filter_type
action find
entity Spain
relation capital
type administrative territorial entity
['Spain', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Spain property:capital ?u }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q29,P36,c(Q56061))
action filter_type
action find
entity Q29
relation P36
type Q56061
[ANSWER] is associated to that administrative territory as the capital
['Q29', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q29 property:P36 ?u }
Madrid
Madrid is associated to that administrative territory as the capital
Madrid
action filter_type
action find
entity Spain
relation capital
type administrative territorial entity
['Spain', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Spain property:capital ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2807
P163
Q14660
USER
What is associated with that administrative territory ?
(Q2807,P163,c(Q14660))
action filter_type
action find
entity Q2807
relation P163
type Q14660
['Q2807', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?m WHERE { resource:Q2807 property:P163 ?m . ?m rdf:type ontology:Q14660 }
Madrid
action filter_type
action find
entity Madrid
relation flag
type flag
['Madrid', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?m WHERE { resource:Madrid property:flag ?m . ?m rdf:type ontology:flag }
[]
flag
Q600147
SYSTEM
Flag of the City of Madrid
Q600147
(Q2807,P163,c(Q14660))
action filter_type
action find
entity Q2807
relation P163
type Q14660
[ANSWER] is associated with that administrative territory
['Q2807', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?m WHERE { resource:Q2807 property:P163 ?m . ?m rdf:type ontology:Q14660 }
Flag of the City of Madrid
Flag of the City of Madrid is associated with that administrative territory
Flag of the City of Madrid
action filter_type
action find
entity Madrid
relation flag
type flag
['Madrid', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?m WHERE { resource:Madrid property:flag ?m . ?m rdf:type ontology:flag }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q13553585
P138
Q15617994 Q79529 Q82799
USER
How many names have lesser number of administrative territories or chemical substances as their toponym than Gold ?
(c(Q82799),P138,c(Q15617994)|c(Q79529))
action count
action less
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q79529
action count
action filter_multi_types
action find
entity Q13553585
relation P138
type Q15617994
type Q79529
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?k WHERE { VALUES ( ?h ) { ( ontology:Q79529 ) ( ontology:Q15617994 ) } . ?j rdf:type ?h } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q13553585 property:P138 ?i . { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q79529 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?e < ?w ) }
Gold
action count
action less
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type chemical substance
action count
action filter_multi_types
action find
entity Gold
relation named after
type designation for an administrative territorial entity
type chemical substance
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?k WHERE { VALUES ( ?h ) { ( ontology:chemical_substance ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?h } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Gold property:named_after ?i . { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:chemical_substance ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?e < ?w ) }
[]
designation for an administrative territorial entity chemical substance name
SYSTEM
107
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 Q1069827 Q46767 Q1061262 Q19558843 Q25115046 Q16871796 Q23688105 Q23599481 Q1158323 Q1370531 Q16869665 Q1158446 Q1158882 Q8046631 Q11231408 Q24699545 Q13099004 Q17747435 Q15785531 Q21508058 Q16869754 Q5352294 Q20747163 Q813701 Q17847495 Q15629400 Q1746111 Q23885849 Q1812295 Q25343999 Q21161805 Q21449089 Q23783070 Q1643088 Q21507928 Q2909103 Q24529820 Q807882 Q21448754 Q23995126 Q25058808 Q21501910 Q18198433 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q21493520 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q16860286 Q25326750 Q16865812 Q20963077 Q612479 Q1755217 Q17625919 Q26247962 Q22922124 Q24689291 Q16877784 Q23301520 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706
(c(Q82799),P138,c(Q15617994)|c(Q79529))
action count
action less
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q79529
action count
action filter_multi_types
action find
entity Q13553585
relation P138
type Q15617994
type Q79529
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?k WHERE { VALUES ( ?h ) { ( ontology:Q79529 ) ( ontology:Q15617994 ) } . ?j rdf:type ?h } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Q13553585 property:P138 ?i . { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q79529 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?e < ?w ) }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Pseudo-Lucian Louarn Lancaster de Bragança Bouvier Albrecht Meister (surname) Draper Smith Fisher Yael Fischer Saunier Larsen Ruzena Barber Delaroche Eastman Fisichella Saccharomyces carlsbergensis Becker Rózsa Dimorphotheca ecklonis Michael Gregorio Achaz Van Leemput Grenier Cain Lebreton Potier Ramos Mouton Boissel Rameau Barbus Müller Ahrens Mercier Dumoulin Boulanger Peleg Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Bergmann Macdara If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Saxon Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Boucher Février Couture Aryaman Koehler Magowan Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Vigneron Napoli Aonchotheca moraveci Buffet Archer Schultheiss Picard Le Guen Sawyer
107
action count
action less
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type chemical substance
action count
action filter_multi_types
action find
entity Gold
relation named after
type designation for an administrative territorial entity
type chemical substance
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) ?k WHERE { VALUES ( ?h ) { ( ontology:chemical_substance ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?j rdf:type ?h } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { resource:Gold property:named_after ?i . { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:chemical_substance ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?e < ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q24229341
P138
Q15617994 Q79529 Q82799
USER
And what about Toscano?
(c(Q82799),P138,c(Q15617994)|c(Q79529))
action count
action less
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q79529
action count
action filter_multi_types
action find
entity Q24229341
relation P138
type Q15617994
type Q79529
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q79529 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q24229341 property:P138 ?z . { { ?z rdf:type ontology:Q79529 } UNION { ?z rdf:type ontology:Q15617994 } } } } . FILTER ( ?i < ?v ) }
Toscano
action count
action less
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type chemical substance
action count
action filter_multi_types
action find
entity Toscano
relation named after
type designation for an administrative territorial entity
type chemical substance
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:chemical_substance ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Toscano property:named_after ?z . { { ?z rdf:type ontology:chemical_substance } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?i < ?v ) }
[]
designation for an administrative territorial entity chemical substance name
SYSTEM
107
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 Q1069827 Q46767 Q1061262 Q19558843 Q25115046 Q16871796 Q23688105 Q23599481 Q1158323 Q1370531 Q16869665 Q1158446 Q1158882 Q8046631 Q11231408 Q24699545 Q13099004 Q17747435 Q15785531 Q21508058 Q16869754 Q5352294 Q20747163 Q813701 Q17847495 Q15629400 Q1746111 Q23885849 Q1812295 Q25343999 Q21161805 Q21449089 Q23783070 Q1643088 Q21507928 Q2909103 Q24529820 Q807882 Q21448754 Q23995126 Q25058808 Q21501910 Q18198433 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q21493520 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q16860286 Q25326750 Q16865812 Q20963077 Q612479 Q1755217 Q17625919 Q26247962 Q22922124 Q24689291 Q16877784 Q23301520 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706
(c(Q82799),P138,c(Q15617994)|c(Q79529))
action count
action less
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q79529
action count
action filter_multi_types
action find
entity Q24229341
relation P138
type Q15617994
type Q79529
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q79529 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Q24229341 property:P138 ?z . { { ?z rdf:type ontology:Q79529 } UNION { ?z rdf:type ontology:Q15617994 } } } } . FILTER ( ?i < ?v ) }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Pseudo-Lucian Louarn Lancaster de Bragança Bouvier Albrecht Meister (surname) Draper Smith Fisher Yael Fischer Saunier Larsen Ruzena Barber Delaroche Eastman Fisichella Saccharomyces carlsbergensis Becker Rózsa Dimorphotheca ecklonis Michael Gregorio Achaz Van Leemput Grenier Cain Lebreton Potier Ramos Mouton Boissel Rameau Barbus Müller Ahrens Mercier Dumoulin Boulanger Peleg Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Bergmann Macdara If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Saxon Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Boucher Février Couture Aryaman Koehler Magowan Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Vigneron Napoli Aonchotheca moraveci Buffet Archer Schultheiss Picard Le Guen Sawyer
107
action count
action less
action union
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type name
type chemical substance
action count
action filter_multi_types
action find
entity Toscano
relation named after
type designation for an administrative territorial entity
type chemical substance
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:chemical_substance ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { resource:Toscano property:named_after ?z . { { ?z rdf:type ontology:chemical_substance } UNION { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?i < ?v ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q2472587 Q486972 Q82799
USER
Which names come from max number of peoples or human settlements ?
(c(Q82799),P138,c(Q2472587)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action find_tuple_counts
relation P138
type Q82799
type Q486972
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2472587'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?w ) AS ?u ) WHERE { { ?o property:P138 ?w . ?o rdf:type ontology:Q82799 . ?w rdf:type ontology:Q486972 } UNION { ?o property:P138 ?w . ?w rdf:type ontology:Q2472587 . ?o rdf:type ontology:Q82799 } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { { ?f property:P138 ?t . ?f rdf:type ontology:Q82799 . ?t rdf:type ontology:Q2472587 } UNION { ?f property:P138 ?t . ?t rdf:type ontology:Q486972 . ?f rdf:type ontology:Q82799 } } GROUP BY ?f } . FILTER ( ?j = ?d ) }
action argmax
action union
action find_tuple_counts
relation named after
type name
type people
action find_tuple_counts
relation named after
type name
type human settlement
[{'concept': 'name'}, 'named after', [{'concept': 'people'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?w ) AS ?u ) WHERE { { ?o property:named_after ?w . ?o rdf:type ontology:name . ?w rdf:type ontology:human_settlement } UNION { ?o property:named_after ?w . ?w rdf:type ontology:people . ?o rdf:type ontology:name } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { { ?f property:named_after ?t . ?f rdf:type ontology:name . ?t rdf:type ontology:people } UNION { ?f property:named_after ?t . ?t rdf:type ontology:human_settlement . ?f rdf:type ontology:name } } GROUP BY ?f } . FILTER ( ?j = ?d ) }
[]
people human settlement name
Q27022433 Q20027829
SYSTEM
Danziger, Saxon
Q27022433 Q20027829
(c(Q82799),P138,c(Q2472587)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action find_tuple_counts
relation P138
type Q82799
type Q486972
[ANSWERS] come from max number of peoples or human settlements
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2472587'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?w ) AS ?u ) WHERE { { ?o property:P138 ?w . ?o rdf:type ontology:Q82799 . ?w rdf:type ontology:Q486972 } UNION { ?o property:P138 ?w . ?w rdf:type ontology:Q2472587 . ?o rdf:type ontology:Q82799 } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { { ?f property:P138 ?t . ?f rdf:type ontology:Q82799 . ?t rdf:type ontology:Q2472587 } UNION { ?f property:P138 ?t . ?t rdf:type ontology:Q486972 . ?f rdf:type ontology:Q82799 } } GROUP BY ?f } . FILTER ( ?j = ?d ) }
Danziger Saxon
Danziger and Saxon come from max number of peoples or human settlements
Danziger Saxon
action argmax
action union
action find_tuple_counts
relation named after
type name
type people
action find_tuple_counts
relation named after
type name
type human settlement
[{'concept': 'name'}, 'named after', [{'concept': 'people'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?d ) { SELECT DISTINCT ?o ( COUNT ( ?w ) AS ?u ) WHERE { { ?o property:named_after ?w . ?o rdf:type ontology:name . ?w rdf:type ontology:human_settlement } UNION { ?o property:named_after ?w . ?w rdf:type ontology:people . ?o rdf:type ontology:name } } GROUP BY ?o } } . { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { { ?f property:named_after ?t . ?f rdf:type ontology:name . ?t rdf:type ontology:people } UNION { ?f property:named_after ?t . ?t rdf:type ontology:human_settlement . ?f rdf:type ontology:name } } GROUP BY ?f } . FILTER ( ?j = ?d ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P176
Q2235308
USER
What was built by Spain ?
(c(Q2235308),P176,Q29)
action filter_type
action find_reverse
entity Q29
relation P176
type Q2235308
[{'concept': 'Q2235308'}, 'P176', 'Q29']
SELECT DISTINCT ?c WHERE { ?c property:P176 resource:Q29 . ?c rdf:type ontology:Q2235308 }
Spain
action filter_type
action find_reverse
entity Spain
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Spain']
SELECT DISTINCT ?c WHERE { ?c property:manufacturer resource:Spain . ?c rdf:type ontology:ship_type }
[]
ship type
Q1935564
SYSTEM
Ictineo II
Q1935564
(c(Q2235308),P176,Q29)
action filter_type
action find_reverse
entity Q29
relation P176
type Q2235308
[ANSWER] was built by Spain
[{'concept': 'Q2235308'}, 'P176', 'Q29']
SELECT DISTINCT ?c WHERE { ?c property:P176 resource:Q29 . ?c rdf:type ontology:Q2235308 }
Ictineo II
Ictineo II was built by Spain
Ictineo II
action filter_type
action find_reverse
entity Spain
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Spain']
SELECT DISTINCT ?c WHERE { ?c property:manufacturer resource:Spain . ?c rdf:type ontology:ship_type }
[]