Simple Question (Direct)
Simple Question
Q3128828
P22
Q502895
USER
Which male person has a child named Hayashi Ryūtan ?
(Q3128828,P22,c(Q502895))
action filter_type
action find
entity Q3128828
relation P22
type Q502895
['Q3128828', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3128828 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Hayashi Ryūtan
action filter_type
action find
entity Hayashi Ryūtan
relation father
type common name
['Hayashi Ryūtan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Hayashi_Ryūtan property:father ?h . ?h rdf:type ontology:common_name }
[]
common name
Q3128817
SYSTEM
Hayashi Hōkoku
Q3128817
(Q3128828,P22,c(Q502895))
action filter_type
action find
entity Q3128828
relation P22
type Q502895
To [ANSWER] has a child named Hayashi Ryūtan
['Q3128828', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q3128828 property:P22 ?h . ?h rdf:type ontology:Q502895 }
Hayashi Hōkoku
To Hayashi Hōkoku has a child named Hayashi Ryūtan
Hayashi Hōkoku
action filter_type
action find
entity Hayashi Ryūtan
relation father
type common name
['Hayashi Ryūtan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Hayashi_Ryūtan property:father ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3128828
P734
Q82799
USER
Who has the surname Hayashi Ryūtan ?
(Q3128828,P734,c(Q82799))
action filter_type
action find
entity Q3128828
relation P734
type Q82799
['Q3128828', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3128828 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Hayashi Ryūtan
action filter_type
action find
entity Hayashi Ryūtan
relation family name
type name
['Hayashi Ryūtan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Hayashi_Ryūtan property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q279372
SYSTEM
Hayashi
Q279372
(Q3128828,P734,c(Q82799))
action filter_type
action find
entity Q3128828
relation P734
type Q82799
[ANSWER] has the surname [ANSWER] Ryūtan
['Q3128828', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q3128828 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Hayashi
Hayashi has the surname Hayashi Ryūtan
Hayashi
action filter_type
action find
entity Hayashi Ryūtan
relation family name
type name
['Hayashi Ryūtan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Hayashi_Ryūtan property:family_name ?z . ?z rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are around 134 names in ?
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 134
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P407 ?j . ?j rdf:type ontology:Q34770 . ?o rdf:type ontology:Q82799 } GROUP BY ?j } . FILTER ( ?e = 134 ) }
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 134
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:language_of_work_or_name ?j . ?j rdf:type ontology:language . ?o rdf:type ontology:name } GROUP BY ?j } . FILTER ( ?e = 134 ) }
[]
language name
SYSTEM
2
Q1321 Q652
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 134
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:P407 ?j . ?j rdf:type ontology:Q34770 . ?o rdf:type ontology:Q82799 } GROUP BY ?j } . FILTER ( ?e = 134 ) }
Spanish Italian
2
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 134
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?e ) WHERE { ?o property:language_of_work_or_name ?j . ?j rdf:type ontology:language . ?o rdf:type ontology:name } GROUP BY ?j } . FILTER ( ?e = 134 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q22922124
P138
Q15617994 Q2221906 Q82799
USER
How many names come from approximately the same number of administrative territories or geographic locations as von Mecklenburg-Schwerin ?
(c(Q82799),P138,c(Q15617994)|c(Q2221906))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q22922124
relation P138
type Q15617994
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Q22922124 property:P138 ?a . { VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } . ?a rdf:type ?e } } } . FILTER ( ?z = ?q ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?z ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } } GROUP BY ?f } }
von Mecklenburg-Schwerin
action count
action approx
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 geographic location
action count
action filter_multi_types
action find
entity von Mecklenburg-Schwerin
relation named after
type designation for an administrative territorial entity
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:von_Mecklenburg-Schwerin property:named_after ?a . { VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } . ?a rdf:type ?e } } } . FILTER ( ?z = ?q ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?z ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } } GROUP BY ?f } }
[]
designation for an administrative territorial entity geographic location name
SYSTEM
3
Q21493520 Q22922124 Q24229341
(c(Q82799),P138,c(Q15617994)|c(Q2221906))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action find_tuple_counts
relation P138
type Q82799
type Q2221906
action count
action filter_multi_types
action find
entity Q22922124
relation P138
type Q15617994
type Q2221906
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:Q22922124 property:P138 ?a . { VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } . ?a rdf:type ?e } } } . FILTER ( ?z = ?q ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?z ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15617994 ) ( ontology:Q2221906 ) } } GROUP BY ?f } }
Bergmann von Mecklenburg-Schwerin Toscano
3
action count
action approx
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 geographic location
action count
action filter_multi_types
action find
entity von Mecklenburg-Schwerin
relation named after
type designation for an administrative territorial entity
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) WHERE { resource:von_Mecklenburg-Schwerin property:named_after ?a . { VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } . ?a rdf:type ?e } } } . FILTER ( ?z = ?q ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?z ) WHERE { ?w rdf:type ?y . VALUES ( ?y ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:geographic_location ) } } GROUP BY ?f } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q152
P180
Q82799 Q340169 Q3305213
USER
Which names are demonstrated in less number of medias and paintings than fish ?
(c(Q340169)|c(Q3305213),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q152
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?g WHERE { { ?q property:P180 ?g . ?g rdf:type ontology:Q82799 . ?q rdf:type ontology:Q340169 } UNION { ?q property:P180 ?g . ?q rdf:type ontology:Q3305213 . ?g rdf:type ontology:Q82799 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:P180 resource:Q152 . { { ?f rdf:type ontology:Q340169 } UNION { ?f rdf:type ontology:Q3305213 } } } } . FILTER ( ?n < ?k ) }
fish
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type painting
action count
action filter_multi_types
action find_reverse
entity fish
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?g WHERE { { ?q property:depicts ?g . ?g rdf:type ontology:name . ?q rdf:type ontology:media } UNION { ?q property:depicts ?g . ?q rdf:type ontology:painting . ?g rdf:type ontology:name } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:depicts resource:fish . { { ?f rdf:type ontology:media } UNION { ?f rdf:type ontology:painting } } } } . FILTER ( ?n < ?k ) }
[]
name media painting
Q1807269 Q134609 Q11946202
SYSTEM
leek, Cynara scolymus, butterfly
Q13219075 Q134609 Q6453151 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q11946202 Q2258881 Q4767951 Q16529344 Q713019 Q1807269 Q8331 Q846664 Q3116510 Q1865281 Q1192868 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q858243 Q190294 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q5070208 Q10968813
(c(Q340169)|c(Q3305213),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q152
relation P180
type Q340169
type Q3305213
[ANSWERS] are demonstrated in less number of medias and paintings than fish
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?g WHERE { { ?q property:P180 ?g . ?g rdf:type ontology:Q82799 . ?q rdf:type ontology:Q340169 } UNION { ?q property:P180 ?g . ?q rdf:type ontology:Q3305213 . ?g rdf:type ontology:Q82799 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:P180 resource:Q152 . { { ?f rdf:type ontology:Q340169 } UNION { ?f rdf:type ontology:Q3305213 } } } } . FILTER ( ?n < ?k ) }
octopus Cynara scolymus toad mule wolf Partridge sugarcane shrimp butterfly trout cattle goose cannoneer leek fox hawk frog whale clam magpie slug lizard antelope Yellow jacket Tree squirrel mouflon vulture pheasant thistle snail Scipio locust wasp kangaroo jay
Leek, Cynara scolymus and butterfly are demonstrated in less number of medias and paintings than fish
leek Cynara scolymus butterfly
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type painting
action count
action filter_multi_types
action find_reverse
entity fish
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) ?g WHERE { { ?q property:depicts ?g . ?g rdf:type ontology:name . ?q rdf:type ontology:media } UNION { ?q property:depicts ?g . ?q rdf:type ontology:painting . ?g rdf:type ontology:name } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { ?f property:depicts resource:fish . { { ?f rdf:type ontology:media } UNION { ?f rdf:type ontology:painting } } } } . FILTER ( ?n < ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3128817
P19
Q56061
USER
Which administrative territory is the birthplace of Hayashi Hōkoku ?
(Q3128817,P19,c(Q56061))
action filter_type
action find
entity Q3128817
relation P19
type Q56061
['Q3128817', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3128817 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Hayashi Hōkoku
action filter_type
action find
entity Hayashi Hōkoku
relation place of birth
type administrative territorial entity
['Hayashi Hōkoku', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hayashi_Hōkoku property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q215646
SYSTEM
Edo
Q215646
(Q3128817,P19,c(Q56061))
action filter_type
action find
entity Q3128817
relation P19
type Q56061
[ANSWER] is the birthplace of Hayashi Hōkoku
['Q3128817', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3128817 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Edo
Edo is the birthplace of Hayashi Hōkoku
Edo
action filter_type
action find
entity Hayashi Hōkoku
relation place of birth
type administrative territorial entity
['Hayashi Hōkoku', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Hayashi_Hōkoku property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q3305213 Q340169
USER
Which names are depicted in atleast 1 paintings and medias ?
(c(Q3305213)|c(Q340169),P180,c(Q82799))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
value 1
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type media
value 1
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
[]
name painting media
Q144 Q876933 Q152
SYSTEM
dog, magi, fish
Q5 Q726 Q830 Q3736439 Q7368 Q7369 Q2092297 Q144 Q24067392 Q201251 Q8335 Q3537778 Q1367 Q9394 Q2734060 Q43115 Q876933 Q7378 Q152 Q859257
(c(Q3305213)|c(Q340169),P180,c(Q82799))
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
value 1
[ANSWERS] are depicted in atleast 1 paintings and medias
[[{'concept': 'Q3305213'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
human horse cattle duck Ovis aries dolphin eagle dog Boy peacock raven donkeys monkey rabbit reed saint magi elephant fish fly
Dog, magi and fish are depicted in atleast 1 paintings and medias
dog magi fish
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type media
value 1
[[{'concept': 'painting'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?a . VALUES ( ?a ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?y } . FILTER ( ?n >= 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q214169
P180
Q82799 Q18783400 Q340169
USER
How many names are depicted in around the same number of genres of sculpture or medias as pheasant ?
(c(Q18783400)|c(Q340169),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q214169
relation P180
type Q18783400
type Q340169
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P180 resource:Q214169 . { VALUES ( ?k ) { ( ontology:Q18783400 ) ( ontology:Q340169 ) } . ?h rdf:type ?k } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?g WHERE { { ?g rdf:type ontology:Q82799 . ?x rdf:type ontology:Q18783400 . ?x property:P180 ?g } UNION { ?x property:P180 ?g . ?g rdf:type ontology:Q82799 . ?x rdf:type ontology:Q340169 } } GROUP BY ?g } }
pheasant
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity pheasant
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:depicts resource:pheasant . { VALUES ( ?k ) { ( ontology:genre_of_sculpture ) ( ontology:media ) } . ?h rdf:type ?k } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?g WHERE { { ?g rdf:type ontology:name . ?x rdf:type ontology:genre_of_sculpture . ?x property:depicts ?g } UNION { ?x property:depicts ?g . ?g rdf:type ontology:name . ?x rdf:type ontology:media } } GROUP BY ?g } }
[]
name genre of sculpture media
SYSTEM
52
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q18783400)|c(Q340169),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q214169
relation P180
type Q18783400
type Q340169
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:P180 resource:Q214169 . { VALUES ( ?k ) { ( ontology:Q18783400 ) ( ontology:Q340169 ) } . ?h rdf:type ?k } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?g WHERE { { ?g rdf:type ontology:Q82799 . ?x rdf:type ontology:Q18783400 . ?x property:P180 ?g } UNION { ?x property:P180 ?g . ?g rdf:type ontology:Q82799 . ?x rdf:type ontology:Q340169 } } GROUP BY ?g } }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
52
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type media
action count
action filter_multi_types
action find_reverse
entity pheasant
relation depicts
type genre of sculpture
type media
[[{'concept': 'genre of sculpture'}, {'concept': 'media'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { ?h property:depicts resource:pheasant . { VALUES ( ?k ) { ( ontology:genre_of_sculpture ) ( ontology:media ) } . ?h rdf:type ?k } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?g WHERE { { ?g rdf:type ontology:name . ?x rdf:type ontology:genre_of_sculpture . ?x property:depicts ?g } UNION { ?x property:depicts ?g . ?g rdf:type ontology:name . ?x rdf:type ontology:media } } GROUP BY ?g } }
[]