Simple Question (Direct)
Simple Question
Q3941344
P937
Q56061
USER
What is the location where Rosario Ardica worked ?
(Q3941344,P937,c(Q56061))
action filter_type
action find
entity Q3941344
relation P937
type Q56061
['Q3941344', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3941344 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Rosario Ardica
action filter_type
action find
entity Rosario Ardica
relation work location
type administrative territorial entity
['Rosario Ardica', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Rosario_Ardica property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3941344,P937,c(Q56061))
action filter_type
action find
entity Q3941344
relation P937
type Q56061
The location Rosario Ardica worked is in [ANSWER]
['Q3941344', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q3941344 property:P937 ?c . ?c rdf:type ontology:Q56061 }
Rome
The location Rosario Ardica worked is in Rome
Rome
action filter_type
action find
entity Rosario Ardica
relation work location
type administrative territorial entity
['Rosario Ardica', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Rosario_Ardica property:work_location ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3941344
P735
Q82799
USER
Which name is Rosario Ardica known by ?
(Q3941344,P735,c(Q82799))
action filter_type
action find
entity Q3941344
relation P735
type Q82799
['Q3941344', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q3941344 property:P735 ?b . ?b rdf:type ontology:Q82799 }
Rosario Ardica
action filter_type
action find
entity Rosario Ardica
relation given name
type name
['Rosario Ardica', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:Rosario_Ardica property:given_name ?b . ?b rdf:type ontology:name }
[]
name
Q1069827
SYSTEM
Rosario
Q1069827
(Q3941344,P735,c(Q82799))
action filter_type
action find
entity Q3941344
relation P735
type Q82799
[ANSWER] Ardica is known as [ANSWER]
['Q3941344', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q3941344 property:P735 ?b . ?b rdf:type ontology:Q82799 }
Rosario
Rosario Ardica is known as Rosario
Rosario
action filter_type
action find
entity Rosario Ardica
relation given name
type name
['Rosario Ardica', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:Rosario_Ardica property:given_name ?b . ?b rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1069827 Q6356778 Q54875
P138
Q15619164
USER
Is Rosario named after Kamen Rider V3 and Our Lady of the Rosary ?
(Q1069827,P138,Q6356778) (Q1069827,P138,Q54875)
action is_in
entity Q1069827
action intersection
action find_reverse
entity Q6356778
relation P138
action find_reverse
entity Q54875
relation P138
['Q1069827', 'P138', 'Q6356778'] ['Q1069827', 'P138', 'Q54875']
ASK WHERE { resource:Q1069827 property:P138 resource:Q6356778 . resource:Q1069827 property:P138 resource:Q54875 }
Rosario Kamen Rider V3 Our Lady of the Rosary
action is_in
entity Rosario
action intersection
action find_reverse
entity Kamen Rider V3
relation named after
action find_reverse
entity Our Lady of the Rosary
relation named after
['Rosario', 'named after', 'Kamen Rider V3'] ['Rosario', 'named after', 'Our Lady of the Rosary']
ASK WHERE { resource:Rosario property:named_after resource:Kamen_Rider_V3 . resource:Rosario property:named_after resource:Our_Lady_of_the_Rosary }
[]
abstract being
SYSTEM
NO and YES respectively
(Q1069827,P138,Q6356778) (Q1069827,P138,Q54875)
action is_in
entity Q1069827
action intersection
action find_reverse
entity Q6356778
relation P138
action find_reverse
entity Q54875
relation P138
[ANSWER]
['Q1069827', 'P138', 'Q6356778'] ['Q1069827', 'P138', 'Q54875']
ASK WHERE { resource:Q1069827 property:P138 resource:Q6356778 . resource:Q1069827 property:P138 resource:Q54875 }
NO and YES respectively
action is_in
entity Rosario
action intersection
action find_reverse
entity Kamen Rider V3
relation named after
action find_reverse
entity Our Lady of the Rosary
relation named after
['Rosario', 'named after', 'Kamen Rider V3'] ['Rosario', 'named after', 'Our Lady of the Rosary']
ASK WHERE { resource:Rosario property:named_after resource:Kamen_Rider_V3 . resource:Rosario property:named_after resource:Our_Lady_of_the_Rosary }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1069827
P1533
Q82799
USER
Which name matches that one ?
action filter_type
action find
entity Q1069827
relation P1533
type Q82799
SELECT DISTINCT ?g WHERE { resource:Q1069827 property:P1533 ?g . ?g rdf:type ontology:Q82799 }
Rosario
action filter_type
action find
entity Rosario
relation family name identical to this first name
type name
SELECT DISTINCT ?g WHERE { resource:Rosario property:family_name_identical_to_this_first_name ?g . ?g rdf:type ontology:name }
[]
name
Q16882278
SYSTEM
Rosario
Q16882278
action filter_type
action find
entity Q1069827
relation P1533
type Q82799
[ANSWER] matches that one
SELECT DISTINCT ?g WHERE { resource:Q1069827 property:P1533 ?g . ?g rdf:type ontology:Q82799 }
Rosario
Rosario matches that one
Rosario
action filter_type
action find
entity Rosario
relation family name identical to this first name
type name
SELECT DISTINCT ?g WHERE { resource:Rosario property:family_name_identical_to_this_first_name ?g . ?g rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q726
P180
Q82799 Q18783400 Q1792379
USER
Which names are depicted in less number of genres of sculpture or art genres than horse ?
(c(Q18783400)|c(Q1792379),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q726
relation P180
type Q18783400
type Q1792379
[[{'concept': 'Q18783400'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:P180 resource:Q726 . { VALUES ( ?t ) { ( ontology:Q18783400 ) ( ontology:Q1792379 ) } . ?g rdf:type ?t } } } . FILTER ( ?m < ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:P180 ?n . ?n rdf:type ontology:Q82799 . ?c rdf:type ontology:Q18783400 } UNION { ?c property:P180 ?n . ?c rdf:type ontology:Q1792379 . ?n rdf:type ontology:Q82799 } } GROUP BY ?n } }
horse
action less
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 art genre
action count
action filter_multi_types
action find_reverse
entity horse
relation depicts
type genre of sculpture
type art genre
[[{'concept': 'genre of sculpture'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:depicts resource:horse . { VALUES ( ?t ) { ( ontology:genre_of_sculpture ) ( ontology:art_genre ) } . ?g rdf:type ?t } } } . FILTER ( ?m < ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:depicts ?n . ?n rdf:type ontology:name . ?c rdf:type ontology:genre_of_sculpture } UNION { ?c property:depicts ?n . ?c rdf:type ontology:art_genre . ?n rdf:type ontology:name } } GROUP BY ?n } }
[]
name genre of sculpture art genre
Q144 Q1807269 Q876933
SYSTEM
dog, leek, magi
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 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(Q1792379),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q726
relation P180
type Q18783400
type Q1792379
[ANSWERS] are depicted in less number of genres of sculpture or art genres than horse
[[{'concept': 'Q18783400'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:P180 resource:Q726 . { VALUES ( ?t ) { ( ontology:Q18783400 ) ( ontology:Q1792379 ) } . ?g rdf:type ?t } } } . FILTER ( ?m < ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:P180 ?n . ?n rdf:type ontology:Q82799 . ?c rdf:type ontology:Q18783400 } UNION { ?c property:P180 ?n . ?c rdf:type ontology:Q1792379 . ?n rdf:type ontology:Q82799 } } GROUP BY ?n } }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog 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
Dog, leek and magi are depicted in less number of genres of sculpture or art genres than horse
dog leek magi
action less
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 art genre
action count
action filter_multi_types
action find_reverse
entity horse
relation depicts
type genre of sculpture
type art genre
[[{'concept': 'genre of sculpture'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g property:depicts resource:horse . { VALUES ( ?t ) { ( ontology:genre_of_sculpture ) ( ontology:art_genre ) } . ?g rdf:type ?t } } } . FILTER ( ?m < ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?c ) AS ?m ) WHERE { { ?c property:depicts ?n . ?n rdf:type ontology:name . ?c rdf:type ontology:genre_of_sculpture } UNION { ?c property:depicts ?n . ?c rdf:type ontology:art_genre . ?n rdf:type ontology:name } } GROUP BY ?n } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1367
P180
Q82799 Q18783400 Q1792379
USER
And how about monkey?
(c(Q18783400)|c(Q1792379),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1367
relation P180
type Q18783400
type Q1792379
[[{'concept': 'Q18783400'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) ?p WHERE { VALUES ( ?c ) { ( ontology:Q18783400 ) ( ontology:Q1792379 ) } . ?f rdf:type ?c } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?l property:P180 resource:Q1367 . { VALUES ( ?h ) { ( ontology:Q18783400 ) ( ontology:Q1792379 ) } . ?l rdf:type ?h } } } . FILTER ( ?r < ?y ) }
monkey
action less
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 art genre
action count
action filter_multi_types
action find_reverse
entity monkey
relation depicts
type genre of sculpture
type art genre
[[{'concept': 'genre of sculpture'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) ?p WHERE { VALUES ( ?c ) { ( ontology:genre_of_sculpture ) ( ontology:art_genre ) } . ?f rdf:type ?c } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?l property:depicts resource:monkey . { VALUES ( ?h ) { ( ontology:genre_of_sculpture ) ( ontology:art_genre ) } . ?l rdf:type ?h } } } . FILTER ( ?r < ?y ) }
[]
name genre of sculpture art genre
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 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(Q1792379),P180,c(Q82799))
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1367
relation P180
type Q18783400
type Q1792379
[ANSWERS]
[[{'concept': 'Q18783400'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) ?p WHERE { VALUES ( ?c ) { ( ontology:Q18783400 ) ( ontology:Q1792379 ) } . ?f rdf:type ?c } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?l property:P180 resource:Q1367 . { VALUES ( ?h ) { ( ontology:Q18783400 ) ( ontology:Q1792379 ) } . ?l rdf:type ?h } } } . FILTER ( ?r < ?y ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale 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
leek magi fish
action less
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 art genre
action count
action filter_multi_types
action find_reverse
entity monkey
relation depicts
type genre of sculpture
type art genre
[[{'concept': 'genre of sculpture'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) ?p WHERE { VALUES ( ?c ) { ( ontology:genre_of_sculpture ) ( ontology:art_genre ) } . ?f rdf:type ?c } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?l property:depicts resource:monkey . { VALUES ( ?h ) { ( ontology:genre_of_sculpture ) ( ontology:art_genre ) } . ?l rdf:type ?h } } } . FILTER ( ?r < ?y ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q152
P921
Q2342494
USER
Which collectable has that name as its principal topic ?
(c(Q2342494),P921,Q152)
action filter_type
action find_reverse
entity Q152
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q152']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2342494 . ?e property:P921 resource:Q152 }
fish
action filter_type
action find_reverse
entity fish
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'fish']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:collectable . ?e property:main_subject resource:fish }
[]
collectable
Clarification for simple ques.
Q1807269
SYSTEM
Did you mean leek ?
Q1807269 Q876933 Q152
(c(Q2342494),P921,Q1807269) (c(Q2342494),P921,Q876933) (c(Q2342494),P921,Q152)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q1807269'] [{'concept': 'Q2342494'}, 'P921', 'Q876933'] [{'concept': 'Q2342494'}, 'P921', 'Q152']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2342494 . ?e property:P921 resource:Q152 }
leek magi fish
Did you mean leek ?
leek
[{'concept': 'collectable'}, 'main subject', 'leek'] [{'concept': 'collectable'}, 'main subject', 'magi'] [{'concept': 'collectable'}, 'main subject', 'fish']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:collectable . ?e property:main_subject resource:fish }
[]
Simple Question (Coreferenced)
USER
No, I meant fish. Could you tell me the answer for that?
(c(Q2342494),P921,Q152)
Q152
[{'concept': 'Q2342494'}, 'P921', 'Q152']
[{'concept': 'collectable'}, 'main subject', 'fish']
[]
Q757293
SYSTEM
Fishes of the World
Q757293
(c(Q2342494),P921,Q152)
action filter_type
action find_reverse
entity Q152
relation P921
type Q2342494
[ANSWER] has that name as its principal topic
[{'concept': 'Q2342494'}, 'P921', 'Q152']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2342494 . ?e property:P921 resource:Q152 }
Fishes of the World
Fishes of the World has that name as its principal topic
Fishes of the World
action filter_type
action find_reverse
entity fish
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'fish']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:collectable . ?e property:main_subject resource:fish }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P629
Q2342494 Q2342494
USER
Which collectables are around the same number of collectables an edition or translation of as that collectable ?
(c(Q2342494),P629,c(Q2342494))
action approx
action find_reverse_tuple_counts
relation P629
type Q2342494
type Q2342494
action count
action filter_type
action find
entity Q757293
relation P629
type Q2342494
[{'concept': 'Q2342494'}, 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:P629 ?g . ?a rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q2342494 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q757293 property:P629 ?s . ?s rdf:type ontology:Q2342494 } } . FILTER ( ?b = ?i ) }
action approx
action find_reverse_tuple_counts
relation edition or translation of
type collectable
type collectable
action count
action filter_type
action find
entity Fishes of the World
relation edition or translation of
type collectable
[{'concept': 'collectable'}, 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:edition_or_translation_of ?g . ?a rdf:type ontology:collectable . ?g rdf:type ontology:collectable } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Fishes_of_the_World property:edition_or_translation_of ?s . ?s rdf:type ontology:collectable } } . FILTER ( ?b = ?i ) }
[]
collectable collectable
Q952340 Q150827 Q70806
SYSTEM
The Talisman, Frankenstein, Romance of the Three Kingdoms
Q70806 Q150827 Q19366545 Q961566 Q19842229 Q1156747 Q952340 Q757293 Q1152283 Q1931478
(c(Q2342494),P629,c(Q2342494))
action approx
action find_reverse_tuple_counts
relation P629
type Q2342494
type Q2342494
action count
action filter_type
action find
entity Q757293
relation P629
type Q2342494
[ANSWERS] are around the same number of collectables an edition or translation of as that collectable
[{'concept': 'Q2342494'}, 'P629', {'concept': 'Q2342494'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:P629 ?g . ?a rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q2342494 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q757293 property:P629 ?s . ?s rdf:type ontology:Q2342494 } } . FILTER ( ?b = ?i ) }
Romance of the Three Kingdoms Frankenstein Ludwig der Deutsche The Autumn of the Patriarch Blood's a rover Enneads The Talisman Fishes of the World Meditations Homecoming
The Talisman, Frankenstein and Romance of the Three Kingdoms are around the same number of collectables an edition or translation of as that collectable
The Talisman Frankenstein Romance of the Three Kingdoms
action approx
action find_reverse_tuple_counts
relation edition or translation of
type collectable
type collectable
action count
action filter_type
action find
entity Fishes of the World
relation edition or translation of
type collectable
[{'concept': 'collectable'}, 'edition or translation of', {'concept': 'collectable'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?b ) WHERE { ?a property:edition_or_translation_of ?g . ?a rdf:type ontology:collectable . ?g rdf:type ontology:collectable } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Fishes_of_the_World property:edition_or_translation_of ?s . ?s rdf:type ontology:collectable } } . FILTER ( ?b = ?i ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P101
Q12737077 Q5962346 Q2342494
USER
Which collectables work in the domain of max number of occupations or classification schemes ?
(c(Q2342494),P101,c(Q12737077)|c(Q5962346))
action argmax
action union
action find_tuple_counts
relation P101
type Q2342494
type Q12737077
action find_tuple_counts
relation P101
type Q2342494
type Q5962346
[{'concept': 'Q2342494'}, 'P101', [{'concept': 'Q12737077'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?v WHERE { { ?v property:P101 ?p . ?v rdf:type ontology:Q2342494 . ?p rdf:type ontology:Q5962346 } UNION { ?v property:P101 ?p . ?v rdf:type ontology:Q2342494 . ?p rdf:type ontology:Q12737077 } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?u WHERE { { ?u property:P101 ?i . ?u rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q12737077 } UNION { ?u rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q5962346 . ?u property:P101 ?i } } GROUP BY ?u } . FILTER ( ?k = ?r ) }
action argmax
action union
action find_tuple_counts
relation field of work
type collectable
type occupation
action find_tuple_counts
relation field of work
type collectable
type classification scheme
[{'concept': 'collectable'}, 'field of work', [{'concept': 'occupation'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?v WHERE { { ?v property:field_of_work ?p . ?v rdf:type ontology:collectable . ?p rdf:type ontology:classification_scheme } UNION { ?v property:field_of_work ?p . ?v rdf:type ontology:collectable . ?p rdf:type ontology:occupation } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?u WHERE { { ?u property:field_of_work ?i . ?u rdf:type ontology:collectable . ?i rdf:type ontology:occupation } UNION { ?u rdf:type ontology:collectable . ?i rdf:type ontology:classification_scheme . ?u property:field_of_work ?i } } GROUP BY ?u } . FILTER ( ?k = ?r ) }
[]
occupation classification scheme collectable
Q514727 Q123397 Q7589523
SYSTEM
The Spirit of the Laws, The Republic, St. Leon
Q123397 Q7589523 Q15830505 Q514727
(c(Q2342494),P101,c(Q12737077)|c(Q5962346))
action argmax
action union
action find_tuple_counts
relation P101
type Q2342494
type Q12737077
action find_tuple_counts
relation P101
type Q2342494
type Q5962346
[ANSWERS] work in the domain of max number of occupations or classification schemes
[{'concept': 'Q2342494'}, 'P101', [{'concept': 'Q12737077'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?v WHERE { { ?v property:P101 ?p . ?v rdf:type ontology:Q2342494 . ?p rdf:type ontology:Q5962346 } UNION { ?v property:P101 ?p . ?v rdf:type ontology:Q2342494 . ?p rdf:type ontology:Q12737077 } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?u WHERE { { ?u property:P101 ?i . ?u rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q12737077 } UNION { ?u rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q5962346 . ?u property:P101 ?i } } GROUP BY ?u } . FILTER ( ?k = ?r ) }
The Republic St. Leon The Boynton family and the family seat of Burton Agnes The Spirit of the Laws
The Spirit of the Laws, The Republic and St. Leon work in the domain of max number of occupations or classification schemes
The Spirit of the Laws The Republic St. Leon
action argmax
action union
action find_tuple_counts
relation field of work
type collectable
type occupation
action find_tuple_counts
relation field of work
type collectable
type classification scheme
[{'concept': 'collectable'}, 'field of work', [{'concept': 'occupation'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?b ) ?v WHERE { { ?v property:field_of_work ?p . ?v rdf:type ontology:collectable . ?p rdf:type ontology:classification_scheme } UNION { ?v property:field_of_work ?p . ?v rdf:type ontology:collectable . ?p rdf:type ontology:occupation } } GROUP BY ?v } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?u WHERE { { ?u property:field_of_work ?i . ?u rdf:type ontology:collectable . ?i rdf:type ontology:occupation } UNION { ?u rdf:type ontology:collectable . ?i rdf:type ontology:classification_scheme . ?u property:field_of_work ?i } } GROUP BY ?u } . FILTER ( ?k = ?r ) }
[]