Simple Question (Direct)
Simple Question
Q563287
P106
Q12737077
USER
What are the job of Fred Rose ?
(Q563287,P106,c(Q12737077))
action filter_type
action find
entity Q563287
relation P106
type Q12737077
['Q563287', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q563287 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Fred Rose
action filter_type
action find
entity Fred Rose
relation occupation
type occupation
['Fred Rose', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Fred_Rose property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q639669 Q7622988 Q753110
SYSTEM
musician, street artist, songwriter
Q639669 Q7622988 Q753110
(Q563287,P106,c(Q12737077))
action filter_type
action find
entity Q563287
relation P106
type Q12737077
The job of Fred Rose are a [ANSWERS]
['Q563287', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q563287 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
musician street artist songwriter
The job of Fred Rose are a musician, street artist and songwriter
musician street artist songwriter
action filter_type
action find
entity Fred Rose
relation occupation
type occupation
['Fred Rose', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Fred_Rose property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q639669
P425
Q1914636
USER
Which activity has musician as thier associated field of occupation ?
(Q639669,P425,c(Q1914636))
action filter_type
action find
entity Q639669
relation P425
type Q1914636
['Q639669', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?h WHERE { resource:Q639669 property:P425 ?h . ?h rdf:type ontology:Q1914636 }
musician
action filter_type
action find
entity musician
relation field of this occupation
type activity
['musician', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?h WHERE { resource:musician property:field_of_this_occupation ?h . ?h rdf:type ontology:activity }
[]
activity
Q638
SYSTEM
music
Q638
(Q639669,P425,c(Q1914636))
action filter_type
action find
entity Q639669
relation P425
type Q1914636
As [ANSWER] has [ANSWER]ian as thier associated field of occupation
['Q639669', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?h WHERE { resource:Q639669 property:P425 ?h . ?h rdf:type ontology:Q1914636 }
music
As music has musician as thier associated field of occupation
music
action filter_type
action find
entity musician
relation field of this occupation
type activity
['musician', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?h WHERE { resource:musician property:field_of_this_occupation ?h . ?h rdf:type ontology:activity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q18783400 Q3516658
USER
Which occupations are demonstrated in max number of genres of sculpture or heraldic symbols ?
(c(Q18783400)|c(Q3516658),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
[[{'concept': 'Q18783400'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?g ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?p ) { ( ontology:Q18783400 ) ( ontology:Q3516658 ) } . ?e rdf:type ?p } GROUP BY ?m } } . FILTER ( ?b = ?g ) . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q18783400 ) ( ontology:Q3516658 ) } } GROUP BY ?c } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'genre of sculpture'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?g ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?p ) { ( ontology:genre_of_sculpture ) ( ontology:heraldic_symbol ) } . ?e rdf:type ?p } GROUP BY ?m } } . FILTER ( ?b = ?g ) . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:genre_of_sculpture ) ( ontology:heraldic_symbol ) } } GROUP BY ?c } }
[]
occupation genre of sculpture heraldic symbol
Q4991371
SYSTEM
soldier
Q4991371
(c(Q18783400)|c(Q3516658),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
The [ANSWER] is demonstrated in max number of genres of sculpture or heraldic symbols
[[{'concept': 'Q18783400'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?g ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?p ) { ( ontology:Q18783400 ) ( ontology:Q3516658 ) } . ?e rdf:type ?p } GROUP BY ?m } } . FILTER ( ?b = ?g ) . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:Q18783400 ) ( ontology:Q3516658 ) } } GROUP BY ?c } }
soldier
The soldier is demonstrated in max number of genres of sculpture or heraldic symbols
soldier
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'genre of sculpture'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?g ) { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?p ) { ( ontology:genre_of_sculpture ) ( ontology:heraldic_symbol ) } . ?e rdf:type ?p } GROUP BY ?m } } . FILTER ( ?b = ?g ) . { SELECT DISTINCT ?c ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?q . VALUES ( ?q ) { ( ontology:genre_of_sculpture ) ( ontology:heraldic_symbol ) } } GROUP BY ?c } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4991371
P417
Q502895
USER
What people are the patron saint of that occupation ?
(Q4991371,P417,c(Q502895))
action filter_type
action find
entity Q4991371
relation P417
type Q502895
['Q4991371', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q4991371 property:P417 ?w }
soldier
action filter_type
action find
entity soldier
relation patron saint
type common name
['soldier', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:soldier property:patron_saint ?w }
[]
common name
Q48438 Q192816 Q44281
SYSTEM
Saint George, Saint Barbara, Ignatius of Loyola
Q48438 Q192816 Q44281
(Q4991371,P417,c(Q502895))
action filter_type
action find
entity Q4991371
relation P417
type Q502895
[ANSWERS] are the patron saint of that occupation
['Q4991371', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q4991371 property:P417 ?w }
Saint George Saint Barbara Ignatius of Loyola
Saint George, Saint Barbara and Ignatius of Loyola are the patron saint of that occupation
Saint George Saint Barbara Ignatius of Loyola
action filter_type
action find
entity soldier
relation patron saint
type common name
['soldier', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:soldier property:patron_saint ?w }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P180
Q21711025 Q838948
USER
How many sculpture techniques and works of art express that person ?
(c(Q21711025),P180,Q192816) (c(Q838948),P180,Q192816) (c(Q21711025),P180,Q48438) (c(Q838948),P180,Q48438) (c(Q21711025),P180,Q192816) (c(Q838948),P180,Q192816) (c(Q21711025),P180,Q44281) (c(Q838948),P180,Q44281)
[{'concept': 'Q21711025'}, 'P180', 'Q192816'] [{'concept': 'Q838948'}, 'P180', 'Q192816'] [{'concept': 'Q21711025'}, 'P180', 'Q48438'] [{'concept': 'Q838948'}, 'P180', 'Q48438'] [{'concept': 'Q21711025'}, 'P180', 'Q192816'] [{'concept': 'Q838948'}, 'P180', 'Q192816'] [{'concept': 'Q21711025'}, 'P180', 'Q44281'] [{'concept': 'Q838948'}, 'P180', 'Q44281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q27118899 } UNION { ?y property:P180 resource:Q27118899 } UNION { ?z property:P180 resource:Q20201777 } UNION { ?y property:P180 resource:Q20201777 } UNION { ?z property:P180 resource:Q27118899 } UNION { ?y property:P180 resource:Q27118899 } UNION { ?z property:P180 resource:Q44281 } UNION { ?y property:P180 resource:Q44281 } } . ?z rdf:type ontology:Q21711025 . ?y rdf:type ontology:Q838948 }
[{'concept': 'sculpture technique'}, 'depicts', 'Saint Barbara'] [{'concept': 'work of art'}, 'depicts', 'Saint Barbara'] [{'concept': 'sculpture technique'}, 'depicts', 'Saint George'] [{'concept': 'work of art'}, 'depicts', 'Saint George'] [{'concept': 'sculpture technique'}, 'depicts', 'Saint Barbara'] [{'concept': 'work of art'}, 'depicts', 'Saint Barbara'] [{'concept': 'sculpture technique'}, 'depicts', 'Ignatius of Loyola'] [{'concept': 'work of art'}, 'depicts', 'Ignatius of Loyola']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:Saint_Barbara } UNION { ?y property:depicts resource:Saint_Barbara } UNION { ?z property:depicts resource:Saint_George } UNION { ?y property:depicts resource:Saint_George } UNION { ?z property:depicts resource:Saint_Barbara } UNION { ?y property:depicts resource:Saint_Barbara } UNION { ?z property:depicts resource:Ignatius_of_Loyola } UNION { ?y property:depicts resource:Ignatius_of_Loyola } } . ?z rdf:type ontology:sculpture_technique . ?y rdf:type ontology:work_of_art }
[]
sculpture technique work of art
Quantitative|Count|Mult. entity type|Clarification
Q48438
SYSTEM
Did you mean Saint George ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q27118899 } UNION { ?y property:P180 resource:Q27118899 } UNION { ?z property:P180 resource:Q20201777 } UNION { ?y property:P180 resource:Q20201777 } UNION { ?z property:P180 resource:Q27118899 } UNION { ?y property:P180 resource:Q27118899 } UNION { ?z property:P180 resource:Q44281 } UNION { ?y property:P180 resource:Q44281 } } . ?z rdf:type ontology:Q21711025 . ?y rdf:type ontology:Q838948 }
Did you mean Saint George ?
Saint George
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:Saint_Barbara } UNION { ?y property:depicts resource:Saint_Barbara } UNION { ?z property:depicts resource:Saint_George } UNION { ?y property:depicts resource:Saint_George } UNION { ?z property:depicts resource:Saint_Barbara } UNION { ?y property:depicts resource:Saint_Barbara } UNION { ?z property:depicts resource:Ignatius_of_Loyola } UNION { ?y property:depicts resource:Ignatius_of_Loyola } } . ?z rdf:type ontology:sculpture_technique . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Saint Barbara. Could you tell me the answer for that?
(c(Q21711025),P180,Q192816) (c(Q838948),P180,Q192816) (c(Q21711025),P180,Q48438) (c(Q838948),P180,Q48438) (c(Q21711025),P180,Q192816) (c(Q838948),P180,Q192816) (c(Q21711025),P180,Q44281) (c(Q838948),P180,Q44281)
Q192816
[{'concept': 'Q21711025'}, 'P180', 'Q192816'] [{'concept': 'Q838948'}, 'P180', 'Q192816'] [{'concept': 'Q21711025'}, 'P180', 'Q48438'] [{'concept': 'Q838948'}, 'P180', 'Q48438'] [{'concept': 'Q21711025'}, 'P180', 'Q192816'] [{'concept': 'Q838948'}, 'P180', 'Q192816'] [{'concept': 'Q21711025'}, 'P180', 'Q44281'] [{'concept': 'Q838948'}, 'P180', 'Q44281']
[{'concept': 'sculpture technique'}, 'depicts', 'Saint Barbara'] [{'concept': 'work of art'}, 'depicts', 'Saint Barbara'] [{'concept': 'sculpture technique'}, 'depicts', 'Saint George'] [{'concept': 'work of art'}, 'depicts', 'Saint George'] [{'concept': 'sculpture technique'}, 'depicts', 'Saint Barbara'] [{'concept': 'work of art'}, 'depicts', 'Saint Barbara'] [{'concept': 'sculpture technique'}, 'depicts', 'Ignatius of Loyola'] [{'concept': 'work of art'}, 'depicts', 'Ignatius of Loyola']
[]
SYSTEM
1 sculpture techniques and 1 works of art
Q27095565 Q26267270
(c(Q21711025),P180,Q192816) (c(Q838948),P180,Q192816) (c(Q21711025),P180,Q48438) (c(Q838948),P180,Q48438) (c(Q21711025),P180,Q192816) (c(Q838948),P180,Q192816) (c(Q21711025),P180,Q44281) (c(Q838948),P180,Q44281)
[ANSWER]
[{'concept': 'Q21711025'}, 'P180', 'Q192816'] [{'concept': 'Q838948'}, 'P180', 'Q192816'] [{'concept': 'Q21711025'}, 'P180', 'Q48438'] [{'concept': 'Q838948'}, 'P180', 'Q48438'] [{'concept': 'Q21711025'}, 'P180', 'Q192816'] [{'concept': 'Q838948'}, 'P180', 'Q192816'] [{'concept': 'Q21711025'}, 'P180', 'Q44281'] [{'concept': 'Q838948'}, 'P180', 'Q44281']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q27118899 } UNION { ?y property:P180 resource:Q27118899 } UNION { ?z property:P180 resource:Q20201777 } UNION { ?y property:P180 resource:Q20201777 } UNION { ?z property:P180 resource:Q27118899 } UNION { ?y property:P180 resource:Q27118899 } UNION { ?z property:P180 resource:Q44281 } UNION { ?y property:P180 resource:Q44281 } } . ?z rdf:type ontology:Q21711025 . ?y rdf:type ontology:Q838948 }
Wings of a polyptych with donors -Man with son and Saint, Woman with daughters and Saint (burned) St. Barbara
1 sculpture techniques and 1 works of art
[{'concept': 'sculpture technique'}, 'depicts', 'Saint Barbara'] [{'concept': 'work of art'}, 'depicts', 'Saint Barbara'] [{'concept': 'sculpture technique'}, 'depicts', 'Saint George'] [{'concept': 'work of art'}, 'depicts', 'Saint George'] [{'concept': 'sculpture technique'}, 'depicts', 'Saint Barbara'] [{'concept': 'work of art'}, 'depicts', 'Saint Barbara'] [{'concept': 'sculpture technique'}, 'depicts', 'Ignatius of Loyola'] [{'concept': 'work of art'}, 'depicts', 'Ignatius of Loyola']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:Saint_Barbara } UNION { ?y property:depicts resource:Saint_Barbara } UNION { ?z property:depicts resource:Saint_George } UNION { ?y property:depicts resource:Saint_George } UNION { ?z property:depicts resource:Saint_Barbara } UNION { ?y property:depicts resource:Saint_Barbara } UNION { ?z property:depicts resource:Ignatius_of_Loyola } UNION { ?y property:depicts resource:Ignatius_of_Loyola } } . ?z rdf:type ontology:sculpture_technique . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can max number of people perform with ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?i = ?m ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?i = ?m ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people can perform on [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?l } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?i = ?m ) }
piano
Max number of people can perform on piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?d ) WHERE { ?v property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?l } } . { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?i ) WHERE { ?h property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?i = ?m ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q5994 Q1394337
P1303
Q502895
USER
Does Reginald Foresythe play that musical instrument ?
(Q1394337,P1303,Q5994)
action is_in
entity Q5994
action find
entity Q1394337
relation P1303
['Q1394337', 'P1303', 'Q5994']
ASK WHERE { resource:Q1394337 property:P1303 resource:Q5994 }
piano Reginald Foresythe
action is_in
entity piano
action find
entity Reginald Foresythe
relation instrument
['Reginald Foresythe', 'instrument', 'piano']
ASK WHERE { resource:Reginald_Foresythe property:instrument resource:piano }
[]
common name
SYSTEM
YES
(Q1394337,P1303,Q5994)
action is_in
entity Q5994
action find
entity Q1394337
relation P1303
[ANSWER]
['Q1394337', 'P1303', 'Q5994']
ASK WHERE { resource:Q1394337 property:P1303 resource:Q5994 }
Yes
action is_in
entity piano
action find
entity Reginald Foresythe
relation instrument
['Reginald Foresythe', 'instrument', 'piano']
ASK WHERE { resource:Reginald_Foresythe property:instrument resource:piano }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q48438 Q7918902
P411
Q82799
USER
Does Saint George have Velez ?
(Q48438,P411,Q7918902)
action is_in
entity Q7918902
action find
entity Q48438
relation P411
['Q48438', 'P411', 'Q7918902']
ASK WHERE { resource:Q48438 property:P411 resource:Q7918902 }
Saint George Velez
action is_in
entity Velez
action find
entity Saint George
relation canonization status
['Saint George', 'canonization status', 'Velez']
ASK WHERE { resource:Saint_George property:canonization_status resource:Velez }
[]
name
SYSTEM
NO
(Q48438,P411,Q7918902)
action is_in
entity Q7918902
action find
entity Q48438
relation P411
[ANSWER]
['Q48438', 'P411', 'Q7918902']
ASK WHERE { resource:Q48438 property:P411 resource:Q7918902 }
No
action is_in
entity Velez
action find
entity Saint George
relation canonization status
['Saint George', 'canonization status', 'Velez']
ASK WHERE { resource:Saint_George property:canonization_status resource:Velez }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q183 Q192816
P138 P17
Q811979
USER
Which architectural structures come from Saint Barbara and are present in Germany ?
AND((c(Q811979),P138,Q192816), (c(Q811979),P17,Q183))
action filter_type
action intersection
action find_reverse
entity Q192816
relation P138
action find_reverse
entity Q183
relation P17
type Q811979
{'AND': [[{'concept': 'Q811979'}, 'P138', 'Q192816'], [{'concept': 'Q811979'}, 'P17', 'Q183']]}
SELECT DISTINCT ?s WHERE { ?s property:P138 resource:Q192816 . ?s property:P17 resource:Q183 . ?s rdf:type ontology:Q811979 }
Germany Saint Barbara
action filter_type
action intersection
action find_reverse
entity Saint Barbara
relation named after
action find_reverse
entity Germany
relation country
type architectural structure
{'AND': [[{'concept': 'architectural structure'}, 'named after', 'Saint Barbara'], [{'concept': 'architectural structure'}, 'country', 'Germany']]}
SELECT DISTINCT ?s WHERE { ?s property:named_after resource:Saint_Barbara . ?s property:country resource:Germany . ?s rdf:type ontology:architectural_structure }
[]
architectural structure
Q807725
SYSTEM
Barbarastollen underground archive
Q807725
AND((c(Q811979),P138,Q192816), (c(Q811979),P17,Q183))
action filter_type
action intersection
action find_reverse
entity Q192816
relation P138
action find_reverse
entity Q183
relation P17
type Q811979
[ANSWER] come from Saint Barbara and are present in Germany
{'AND': [[{'concept': 'Q811979'}, 'P138', 'Q192816'], [{'concept': 'Q811979'}, 'P17', 'Q183']]}
SELECT DISTINCT ?s WHERE { ?s property:P138 resource:Q192816 . ?s property:P17 resource:Q183 . ?s rdf:type ontology:Q811979 }
Barbarastollen underground archive
Barbarastollen underground archive come from Saint Barbara and are present in Germany
Barbarastollen underground archive
action filter_type
action intersection
action find_reverse
entity Saint Barbara
relation named after
action find_reverse
entity Germany
relation country
type architectural structure
{'AND': [[{'concept': 'architectural structure'}, 'named after', 'Saint Barbara'], [{'concept': 'architectural structure'}, 'country', 'Germany']]}
SELECT DISTINCT ?s WHERE { ?s property:named_after resource:Saint_Barbara . ?s property:country resource:Germany . ?s rdf:type ontology:architectural_structure }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q44281
P138
Q44539 Q17444909
USER
How many temples and astronomical object types come from Ignatius of Loyola ?
(c(Q44539),P138,Q44281) (c(Q17444909),P138,Q44281)
action count
action union
action filter_type
action find_reverse
entity Q44281
relation P138
type Q44539
action filter_type
action find_reverse
entity Q44281
relation P138
type Q17444909
[{'concept': 'Q44539'}, 'P138', 'Q44281'] [{'concept': 'Q17444909'}, 'P138', 'Q44281']
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { ?b property:P138 resource:Q44281 . ?b rdf:type ontology:Q44539 } UNION { ?b property:P138 resource:Q44281 . ?b rdf:type ontology:Q17444909 } }
Ignatius of Loyola
action count
action union
action filter_type
action find_reverse
entity Ignatius of Loyola
relation named after
type temple
action filter_type
action find_reverse
entity Ignatius of Loyola
relation named after
type astronomical object type
[{'concept': 'temple'}, 'named after', 'Ignatius of Loyola'] [{'concept': 'astronomical object type'}, 'named after', 'Ignatius of Loyola']
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { ?b property:named_after resource:Ignatius_of_Loyola . ?b rdf:type ontology:temple } UNION { ?b property:named_after resource:Ignatius_of_Loyola . ?b rdf:type ontology:astronomical_object_type } }
[]
temple astronomical object type
SYSTEM
1 temples and 1 astronomical object types
Q911846 Q11746705
(c(Q44539),P138,Q44281) (c(Q17444909),P138,Q44281)
action count
action union
action filter_type
action find_reverse
entity Q44281
relation P138
type Q44539
action filter_type
action find_reverse
entity Q44281
relation P138
type Q17444909
[ANSWER]
[{'concept': 'Q44539'}, 'P138', 'Q44281'] [{'concept': 'Q17444909'}, 'P138', 'Q44281']
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { ?b property:P138 resource:Q44281 . ?b rdf:type ontology:Q44539 } UNION { ?b property:P138 resource:Q44281 . ?b rdf:type ontology:Q17444909 } }
3562 Ignatius Church of Saint Ignatius of Loyola
1 temples and 1 astronomical object types
action count
action union
action filter_type
action find_reverse
entity Ignatius of Loyola
relation named after
type temple
action filter_type
action find_reverse
entity Ignatius of Loyola
relation named after
type astronomical object type
[{'concept': 'temple'}, 'named after', 'Ignatius of Loyola'] [{'concept': 'astronomical object type'}, 'named after', 'Ignatius of Loyola']
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { { ?b property:named_after resource:Ignatius_of_Loyola . ?b rdf:type ontology:temple } UNION { ?b property:named_after resource:Ignatius_of_Loyola . ?b rdf:type ontology:astronomical_object_type } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q811979 Q838948 Q17335294
USER
Which architectural structures are expressed in max number of works of art and coats of arms ?
(c(Q838948)|c(Q17335294),P180,c(Q811979))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q811979
type Q838948
action find_reverse_tuple_counts
relation P180
type Q811979
type Q17335294
[[{'concept': 'Q838948'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q811979'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?m ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q17335294 ) } . ?h rdf:type ?l } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q17335294 ) } . ?a rdf:type ?k } GROUP BY ?y } . FILTER ( ?s = ?r ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type architectural structure
type work of art
action find_reverse_tuple_counts
relation depicts
type architectural structure
type flag or coat of arms
[[{'concept': 'work of art'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'architectural structure'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?m ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:flag_or_coat_of_arms ) } . ?h rdf:type ?l } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:flag_or_coat_of_arms ) } . ?a rdf:type ?k } GROUP BY ?y } . FILTER ( ?s = ?r ) }
[]
architectural structure work of art flag or coat of arms
Q101687
SYSTEM
altar
Q101687
(c(Q838948)|c(Q17335294),P180,c(Q811979))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q811979
type Q838948
action find_reverse_tuple_counts
relation P180
type Q811979
type Q17335294
The [ANSWER] is expressed in max number of works of art and coats of arms
[[{'concept': 'Q838948'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q811979'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?m ) WHERE { VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q17335294 ) } . ?h rdf:type ?l } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q17335294 ) } . ?a rdf:type ?k } GROUP BY ?y } . FILTER ( ?s = ?r ) }
altar
The altar is expressed in max number of works of art and coats of arms
altar
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type architectural structure
type work of art
action find_reverse_tuple_counts
relation depicts
type architectural structure
type flag or coat of arms
[[{'concept': 'work of art'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'architectural structure'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?m ) WHERE { VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:flag_or_coat_of_arms ) } . ?h rdf:type ?l } GROUP BY ?q } } . { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?s ) WHERE { VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:flag_or_coat_of_arms ) } . ?a rdf:type ?k } GROUP BY ?y } . FILTER ( ?s = ?r ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q4830453 Q811979
USER
Which business enterprises operate exactly 1 architectural structure ?
(c(Q811979),P137,c(Q4830453))
action equal
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
value 1
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P137 ?a . ?a rdf:type ontology:Q4830453 . ?e rdf:type ontology:Q811979 } GROUP BY ?a } . FILTER ( ?h = 1 ) }
action equal
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
value 1
[{'concept': 'architectural structure'}, 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:operator ?a . ?a rdf:type ontology:business_enterprise . ?e rdf:type ontology:architectural_structure } GROUP BY ?a } . FILTER ( ?h = 1 ) }
[]
business enterprise architectural structure
Q158276 Q20438616 Q378181
SYSTEM
AEG, KMKK Középkelet-magyarországi Közlekedési Központ, Chemins de fer du Midi
Q20438616 Q378181 Q158276 Q2990097
(c(Q811979),P137,c(Q4830453))
action equal
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q811979
value 1
[ANSWERS] operate exactly 1 architectural structure
[{'concept': 'Q811979'}, 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:P137 ?a . ?a rdf:type ontology:Q4830453 . ?e rdf:type ontology:Q811979 } GROUP BY ?a } . FILTER ( ?h = 1 ) }
KMKK Középkelet-magyarországi Közlekedési Központ Chemins de fer du Midi AEG Compagnie du chemin de fer de Bordeaux à La Teste
AEG, KMKK Középkelet-magyarországi Közlekedési Központ and Chemins de fer du Midi operate exactly 1 architectural structure
AEG KMKK Középkelet-magyarországi Közlekedési Központ Chemins de fer du Midi
action equal
action find_reverse_tuple_counts
relation operator
type business enterprise
type architectural structure
value 1
[{'concept': 'architectural structure'}, 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?h ) WHERE { ?e property:operator ?a . ?a rdf:type ontology:business_enterprise . ?e rdf:type ontology:architectural_structure } GROUP BY ?a } . FILTER ( ?h = 1 ) }
[]