Simple Question (Direct)
Simple Question
Q427197
P734
Q82799
USER
Which name is associated with Noah Martin ?
(Q427197,P734,c(Q82799))
action filter_type
action find
entity Q427197
relation P734
type Q82799
['Q427197', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q427197 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Noah Martin
action filter_type
action find
entity Noah Martin
relation family name
type name
['Noah Martin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Noah_Martin property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q17744604
SYSTEM
Martin
Q17744604
(Q427197,P734,c(Q82799))
action filter_type
action find
entity Q427197
relation P734
type Q82799
[ANSWER] is associated with Noah [ANSWER]
['Q427197', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q427197 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Martin
Martin is associated with Noah Martin
Martin
action filter_type
action find
entity Noah Martin
relation family name
type name
['Noah Martin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Noah_Martin property:family_name ?i . ?i rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q427197
P106
Q12737077
USER
What does Noah Martin do for a living ?
(Q427197,P106,c(Q12737077))
action filter_type
action find
entity Q427197
relation P106
type Q12737077
['Q427197', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q427197 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Noah Martin
action filter_type
action find
entity Noah Martin
relation occupation
type occupation
['Noah Martin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Noah_Martin property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q427197,P106,c(Q12737077))
action filter_type
action find
entity Q427197
relation P106
type Q12737077
Noah Martin does a [ANSWER] for a living
['Q427197', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q427197 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
politician
Noah Martin does a politician for a living
politician
action filter_type
action find
entity Noah Martin
relation occupation
type occupation
['Noah Martin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Noah_Martin property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16223706
Q12737077
USER
And how about Jolly Katongole?
(Q16223706,P106,c(Q12737077))
action filter_type
action find
entity Q16223706
relation P106
type Q12737077
['Q16223706', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q16223706 property:P106 ?w }
Jolly Katongole
action filter_type
action find
entity Jolly Katongole
relation occupation
type occupation
['Jolly Katongole', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Jolly_Katongole property:occupation ?w }
[]
occupation
Q11338576
SYSTEM
boxer
Q11338576
(Q16223706,P106,c(Q12737077))
action filter_type
action find
entity Q16223706
relation P106
type Q12737077
[ANSWER]
['Q16223706', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12737077 . resource:Q16223706 property:P106 ?w }
boxer
boxer
action filter_type
action find
entity Jolly Katongole
relation occupation
type occupation
['Jolly Katongole', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:occupation . resource:Jolly_Katongole property:occupation ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16223706
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q11338576,P27,c(Q15617994))
action filter_type
action find
entity Q16223706
relation P27
type Q15617994
['Q11338576', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q16223706 property:P27 ?k }
Jolly Katongole
action filter_type
action find
entity Jolly Katongole
relation country of citizenship
type designation for an administrative territorial entity
['boxer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jolly_Katongole property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
Q1036
SYSTEM
Uganda
Q1036
(Q11338576,P27,c(Q15617994))
action filter_type
action find
entity Q16223706
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q11338576', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q16223706 property:P27 ?k }
Uganda
Uganda is the country of citizenship of that person
Uganda
action filter_type
action find
entity Jolly Katongole
relation country of citizenship
type designation for an administrative territorial entity
['boxer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jolly_Katongole property:country_of_citizenship ?k }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q20727079
P138
Q15619164 Q2221906 Q82799
USER
Which names have approximately the same number of abstract beings and geographic locations as their namesake as Schultheiss ?
(c(Q82799),P138,c(Q15619164)|c(Q2221906))
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q15619164
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q20727079
relation P138
type Q15619164
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?c WHERE { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15619164 ) ( ontology:Q2221906 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Q20727079 property:P138 ?l . { { ?l rdf:type ontology:Q15619164 } UNION { ?l rdf:type ontology:Q2221906 } } } } . FILTER ( ?a = ?j ) }
Schultheiss
action approx
action union
action find_tuple_counts
relation named after
type name
type abstract being
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Schultheiss
relation named after
type abstract being
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?c WHERE { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:abstract_being ) ( ontology:geographic_location ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Schultheiss property:named_after ?l . { { ?l rdf:type ontology:abstract_being } UNION { ?l rdf:type ontology:geographic_location } } } } . FILTER ( ?a = ?j ) }
[]
abstract being geographic location name
Q318363 Q1746111 Q26247962
SYSTEM
Abel, Michael Gregorio, Master of The Hours of Henri II
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 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 Q13553585 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q18309769 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q16883336 Q16860286 Q25326750 Q16865812 Q612479 Q1755217 Q17625919 Q26247962 Q24689291 Q16877784 Q23301520 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706 Q24229341
(c(Q82799),P138,c(Q15619164)|c(Q2221906))
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q15619164
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q20727079
relation P138
type Q15619164
type Q2221906
[ANSWERS] have approximately the same number of abstract beings and geographic locations as their namesake as Schultheiss
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?c WHERE { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15619164 ) ( ontology:Q2221906 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Q20727079 property:P138 ?l . { { ?l rdf:type ontology:Q15619164 } UNION { ?l rdf:type ontology:Q2221906 } } } } . FILTER ( ?a = ?j ) }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla 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 Gold Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Macdara Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Saxon Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Silver Boucher Février Couture Koehler Magowan Du Moulin Master of The Hours of Henri II Vigneron Napoli Aonchotheca moraveci Buffet Archer Schultheiss Picard Le Guen Sawyer Toscano
Abel, Michael Gregorio and Master of The Hours of Henri II have approximately the same number of abstract beings and geographic locations as their namesake as Schultheiss
Abel Michael Gregorio Master of The Hours of Henri II
action approx
action union
action find_tuple_counts
relation named after
type name
type abstract being
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Schultheiss
relation named after
type abstract being
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?c WHERE { ?y rdf:type ?g . VALUES ( ?g ) { ( ontology:abstract_being ) ( ontology:geographic_location ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { resource:Schultheiss property:named_after ?l . { { ?l rdf:type ontology:abstract_being } UNION { ?l rdf:type ontology:geographic_location } } } } . FILTER ( ?a = ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q21448754
P138
Q15619164 Q2221906 Q82799
USER
And how about Ahrens?
(c(Q82799),P138,c(Q15619164)|c(Q2221906))
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q15619164
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q21448754
relation P138
type Q15619164
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?t WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2221906 ) ( ontology:Q15619164 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Q21448754 property:P138 ?r . { { ?r rdf:type ontology:Q15619164 } UNION { ?r rdf:type ontology:Q2221906 } } } } . FILTER ( ?g = ?a ) }
Ahrens
action approx
action union
action find_tuple_counts
relation named after
type name
type abstract being
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Ahrens
relation named after
type abstract being
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?t WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:geographic_location ) ( ontology:abstract_being ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Ahrens property:named_after ?r . { { ?r rdf:type ontology:abstract_being } UNION { ?r rdf:type ontology:geographic_location } } } } . FILTER ( ?g = ?a ) }
[]
abstract being geographic location name
Q318363 Q1746111 Q26247962
SYSTEM
Abel, Michael Gregorio, Master of The Hours of Henri II
Q18335877 Q25212228 Q6501864 Q27022433 Q18198499 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 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 Q13553585 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q18309769 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q688520 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q20027829 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q16883336 Q16860286 Q25326750 Q16865812 Q612479 Q1755217 Q17625919 Q26247962 Q24689291 Q16877784 Q23301520 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706 Q24229341
(c(Q82799),P138,c(Q15619164)|c(Q2221906))
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q15619164
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q21448754
relation P138
type Q15619164
type Q2221906
[ANSWERS]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?t WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2221906 ) ( ontology:Q15619164 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Q21448754 property:P138 ?r . { { ?r rdf:type ontology:Q15619164 } UNION { ?r rdf:type ontology:Q2221906 } } } } . FILTER ( ?g = ?a ) }
Prévot Émile-Louis Kaplan Danziger Elizur Sha'aban Racine Poisson Renard Súla 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 Gold Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Macdara Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Arminia Kelly Abel Pignon Rose Ofer Lamour Saxon Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Silver Boucher Février Couture Koehler Magowan Du Moulin Master of The Hours of Henri II Vigneron Napoli Aonchotheca moraveci Buffet Archer Schultheiss Picard Le Guen Sawyer Toscano
Abel Michael Gregorio Master of The Hours of Henri II
action approx
action union
action find_tuple_counts
relation named after
type name
type abstract being
action find_tuple_counts
relation named after
type name
type geographic location
action count
action filter_multi_types
action find
entity Ahrens
relation named after
type abstract being
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?t WHERE { ?c rdf:type ?q . VALUES ( ?q ) { ( ontology:geographic_location ) ( ontology:abstract_being ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Ahrens property:named_after ?r . { { ?r rdf:type ontology:abstract_being } UNION { ?r rdf:type ontology:geographic_location } } } } . FILTER ( ?g = ?a ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1746111
P50
Q2342494
USER
Which collectables were written by that name ?
(c(Q2342494),P50,Q1746111)
action filter_type
action find_reverse
entity Q1746111
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q1746111']
SELECT DISTINCT ?d WHERE { ?d property:P50 resource:Q1746111 . ?d rdf:type ontology:Q2342494 }
Michael Gregorio
action filter_type
action find_reverse
entity Michael Gregorio
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Michael Gregorio']
SELECT DISTINCT ?d WHERE { ?d property:author resource:Michael_Gregorio . ?d rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q26247962
SYSTEM
Did you mean Master of The Hours of Henri II ?
Q318363 Q1746111 Q26247962
(c(Q2342494),P50,Q318363) (c(Q2342494),P50,Q1746111) (c(Q2342494),P50,Q26247962)
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q318363'] [{'concept': 'Q2342494'}, 'P50', 'Q1746111'] [{'concept': 'Q2342494'}, 'P50', 'Q26247962']
SELECT DISTINCT ?d WHERE { ?d property:P50 resource:Q1746111 . ?d rdf:type ontology:Q2342494 }
Abel Michael Gregorio Master of The Hours of Henri II
Did you mean Master of The Hours of Henri II ?
Master of The Hours of Henri II
[{'concept': 'collectable'}, 'author', 'Abel'] [{'concept': 'collectable'}, 'author', 'Michael Gregorio'] [{'concept': 'collectable'}, 'author', 'Master of The Hours of Henri II']
SELECT DISTINCT ?d WHERE { ?d property:author resource:Michael_Gregorio . ?d rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant Michael Gregorio. Could you tell me the answer for that?
(c(Q2342494),P50,Q1746111)
Q1746111
[{'concept': 'Q2342494'}, 'P50', 'Q1746111']
[{'concept': 'collectable'}, 'author', 'Michael Gregorio']
[]
Q5186895 Q5243363
SYSTEM
Critique of Criminal Reason, Days of Atonement
Q5186895 Q5243363
(c(Q2342494),P50,Q1746111)
action filter_type
action find_reverse
entity Q1746111
relation P50
type Q2342494
And [ANSWERS] were written by that name
[{'concept': 'Q2342494'}, 'P50', 'Q1746111']
SELECT DISTINCT ?d WHERE { ?d property:P50 resource:Q1746111 . ?d rdf:type ontology:Q2342494 }
Critique of Criminal Reason Days of Atonement
And Critique of Criminal Reason and Days of Atonement were written by that name
Critique of Criminal Reason Days of Atonement
action filter_type
action find_reverse
entity Michael Gregorio
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Michael Gregorio']
SELECT DISTINCT ?d WHERE { ?d property:author resource:Michael_Gregorio . ?d rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1036 Q748965
P6
Q502895
USER
How many people are Uganda or Varna Municipality the head of goverment of ?
(Q1036,P6,c(Q502895)) (Q748965,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q1036
relation P6
type Q502895
action filter_type
action find
entity Q748965
relation P6
type Q502895
['Q1036', 'P6', {'concept': 'Q502895'}] ['Q748965', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { resource:Q748965 property:P6 ?j . ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q502895 . resource:Q1036 property:P6 ?j } }
Uganda Varna Municipality
action count
action union
action filter_type
action find
entity Uganda
relation head of government
type common name
action filter_type
action find
entity Varna Municipality
relation head of government
type common name
['Uganda', 'head of government', {'concept': 'common name'}] ['Varna Municipality', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { resource:Varna_Municipality property:head_of_government ?j . ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:common_name . resource:Uganda property:head_of_government ?j } }
[]
common name
SYSTEM
2
Q57873 Q12281147
(Q1036,P6,c(Q502895)) (Q748965,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q1036
relation P6
type Q502895
action filter_type
action find
entity Q748965
relation P6
type Q502895
[ANSWER]
['Q1036', 'P6', {'concept': 'Q502895'}] ['Q748965', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { resource:Q748965 property:P6 ?j . ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q502895 . resource:Q1036 property:P6 ?j } }
Amama Mbabazi Ivan Portnih
2
action count
action union
action filter_type
action find
entity Uganda
relation head of government
type common name
action filter_type
action find
entity Varna Municipality
relation head of government
type common name
['Uganda', 'head of government', {'concept': 'common name'}] ['Varna Municipality', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?o ) WHERE { { resource:Varna_Municipality property:head_of_government ?j . ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:common_name . resource:Uganda property:head_of_government ?j } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q15617994 Q2342494 Q838948
USER
Which administrative territories are expressed in max number of collectables or works of art ?
(c(Q2342494)|c(Q838948),P180,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?c ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:P180 ?d . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P180 ?d . ?z rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q15617994 } } GROUP BY ?d } } . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2342494 } UNION { ?s property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } } GROUP BY ?n } . FILTER ( ?k = ?c ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?c ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:depicts ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art } UNION { ?z property:depicts ?d . ?z rdf:type ontology:collectable . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?d } } . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:collectable } UNION { ?s property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } } GROUP BY ?n } . FILTER ( ?k = ?c ) }
[]
designation for an administrative territorial entity collectable work of art
Q82025
SYSTEM
horn
Q82025
(c(Q2342494)|c(Q838948),P180,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
[ANSWER] is expressed in max number of collectables or works of art
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?c ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:P180 ?d . ?d rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P180 ?d . ?z rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q15617994 } } GROUP BY ?d } } . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q2342494 } UNION { ?s property:P180 ?n . ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q838948 } } GROUP BY ?n } . FILTER ( ?k = ?c ) }
horn
Horn is expressed in max number of collectables or works of art
horn
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?c ) { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?m ) WHERE { { ?z property:depicts ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art } UNION { ?z property:depicts ?d . ?z rdf:type ontology:collectable . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?d } } . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:collectable } UNION { ?s property:depicts ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:work_of_art } } GROUP BY ?n } . FILTER ( ?k = ?c ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P180
Q838948
USER
How many works of art express that administrative territory ?
(c(Q838948),P180,Q82025)
action count
action filter_type
action find_reverse
entity Q82025
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q82025']
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P180 resource:Q82025 . ?n rdf:type ontology:Q838948 }
action count
action filter_type
action find_reverse
entity horn
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'horn']
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:depicts resource:horn . ?n rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
4
Q19359585 Q20668323 Q19354026 Q203765
(c(Q838948),P180,Q82025)
action count
action filter_type
action find_reverse
entity Q82025
relation P180
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q82025']
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P180 resource:Q82025 . ?n rdf:type ontology:Q838948 }
Andromeda Arsinoe II The Muse of Poetry Venus of Laussel
4
action count
action filter_type
action find_reverse
entity horn
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'horn']
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:depicts resource:horn . ?n rdf:type ontology:work_of_art }
[]