Simple Question (Direct)
Simple Question
Q3839711
P19
Q15617994
USER
Which administrative territory was Luigi Giuliano born at ?
(Q3839711,P19,c(Q15617994))
action filter_type
action find
entity Q3839711
relation P19
type Q15617994
['Q3839711', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q3839711 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Luigi Giuliano
action filter_type
action find
entity Luigi Giuliano
relation place of birth
type designation for an administrative territorial entity
['Luigi Giuliano', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Luigi_Giuliano property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q5990
SYSTEM
Vercelli
Q5990
(Q3839711,P19,c(Q15617994))
action filter_type
action find
entity Q3839711
relation P19
type Q15617994
Luigi Giuliano was born to [ANSWER]
['Q3839711', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q3839711 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Vercelli
Luigi Giuliano was born to Vercelli
Vercelli
action filter_type
action find
entity Luigi Giuliano
relation place of birth
type designation for an administrative territorial entity
['Luigi Giuliano', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Luigi_Giuliano property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3839711
P734
Q82799
USER
Who has the surname Luigi Giuliano ?
(Q3839711,P734,c(Q82799))
action filter_type
action find
entity Q3839711
relation P734
type Q82799
['Q3839711', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q3839711 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Luigi Giuliano
action filter_type
action find
entity Luigi Giuliano
relation family name
type name
['Luigi Giuliano', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Luigi_Giuliano property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Q18609982
SYSTEM
Giuliano
Q18609982
(Q3839711,P734,c(Q82799))
action filter_type
action find
entity Q3839711
relation P734
type Q82799
[ANSWER] has the surname Luigi [ANSWER]
['Q3839711', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q3839711 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Giuliano
Giuliano has the surname Luigi Giuliano
Giuliano
action filter_type
action find
entity Luigi Giuliano
relation family name
type name
['Luigi Giuliano', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Luigi_Giuliano property:family_name ?y . ?y rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11632704
Q82799
USER
And what about Emi Taniguchi?
(Q11632704,P734,c(Q82799))
action filter_type
action find
entity Q11632704
relation P734
type Q82799
['Q11632704', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q11632704 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Emi Taniguchi
action filter_type
action find
entity Emi Taniguchi
relation family name
type name
['Emi Taniguchi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Emi_Taniguchi property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q21509874
SYSTEM
Taniguchi
Q21509874
(Q11632704,P734,c(Q82799))
action filter_type
action find
entity Q11632704
relation P734
type Q82799
[ANSWER]
['Q11632704', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q11632704 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Taniguchi
Taniguchi
action filter_type
action find
entity Emi Taniguchi
relation family name
type name
['Emi Taniguchi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Emi_Taniguchi property:family_name ?j . ?j rdf:type ontology:name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q5
P180
Q82799 Q15709879 Q386724
USER
How many names are expressed in less number of artwork series and works than human ?
(c(Q15709879)|c(Q386724),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q5
relation P180
type Q15709879
type Q386724
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?f WHERE { { ?x property:P180 ?f . ?f rdf:type ontology:Q82799 . ?x rdf:type ontology:Q15709879 } UNION { ?x property:P180 ?f . ?f rdf:type ontology:Q82799 . ?x rdf:type ontology:Q386724 } } GROUP BY ?f } . FILTER ( ?a < ?d ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:P180 resource:Q5 . { VALUES ( ?n ) { ( ontology:Q386724 ) ( ontology:Q15709879 ) } . ?y rdf:type ?n } } } }
human
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type work
action count
action filter_multi_types
action find_reverse
entity human
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?f WHERE { { ?x property:depicts ?f . ?f rdf:type ontology:name . ?x rdf:type ontology:artwork_series } UNION { ?x property:depicts ?f . ?f rdf:type ontology:name . ?x rdf:type ontology:work } } GROUP BY ?f } . FILTER ( ?a < ?d ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:depicts resource:human . { VALUES ( ?n ) { ( ontology:work ) ( ontology:artwork_series ) } . ?y rdf:type ?n } } } }
[]
name artwork series work
SYSTEM
50
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 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 Q5070208 Q859257 Q10968813
(c(Q15709879)|c(Q386724),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q5
relation P180
type Q15709879
type Q386724
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?f WHERE { { ?x property:P180 ?f . ?f rdf:type ontology:Q82799 . ?x rdf:type ontology:Q15709879 } UNION { ?x property:P180 ?f . ?f rdf:type ontology:Q82799 . ?x rdf:type ontology:Q386724 } } GROUP BY ?f } . FILTER ( ?a < ?d ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:P180 resource:Q5 . { VALUES ( ?n ) { ( ontology:Q386724 ) ( ontology:Q15709879 ) } . ?y rdf:type ?n } } } }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek 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 kangaroo fly jay
50
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type work
action count
action filter_multi_types
action find_reverse
entity human
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?f WHERE { { ?x property:depicts ?f . ?f rdf:type ontology:name . ?x rdf:type ontology:artwork_series } UNION { ?x property:depicts ?f . ?f rdf:type ontology:name . ?x rdf:type ontology:work } } GROUP BY ?f } . FILTER ( ?a < ?d ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { ?y property:depicts resource:human . { VALUES ( ?n ) { ( ontology:work ) ( ontology:artwork_series ) } . ?y rdf:type ?n } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q201251
P180
Q82799 Q15709879 Q386724
USER
And also tell me about peacock?
(c(Q15709879)|c(Q386724),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q201251
relation P180
type Q15709879
type Q386724
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:Q15709879 } UNION { ?r rdf:type ontology:Q386724 } } . ?r property:P180 resource:Q201251 } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?k WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15709879 ) ( ontology:Q386724 ) } } GROUP BY ?k } }
peacock
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type work
action count
action filter_multi_types
action find_reverse
entity peacock
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:artwork_series } UNION { ?r rdf:type ontology:work } } . ?r property:depicts resource:peacock } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?k WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:artwork_series ) ( ontology:work ) } } GROUP BY ?k } }
[]
name artwork series work
SYSTEM
50
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 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 Q5070208 Q859257 Q10968813
(c(Q15709879)|c(Q386724),P180,c(Q82799))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q201251
relation P180
type Q15709879
type Q386724
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:Q15709879 } UNION { ?r rdf:type ontology:Q386724 } } . ?r property:P180 resource:Q201251 } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?k WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q15709879 ) ( ontology:Q386724 ) } } GROUP BY ?k } }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek 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 kangaroo fly jay
50
action count
action less
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type work
action count
action filter_multi_types
action find_reverse
entity peacock
relation depicts
type artwork series
type work
[[{'concept': 'artwork series'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { { ?r rdf:type ontology:artwork_series } UNION { ?r rdf:type ontology:work } } . ?r property:depicts resource:peacock } } . FILTER ( ?d < ?x ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?k WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:artwork_series ) ( ontology:work ) } } GROUP BY ?k } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5990
P1376
Q15089
USER
Which province of Italy has Vercelli as its capital ?
(Q5990,P1376,c(Q15089))
action filter_type
action find
entity Q5990
relation P1376
type Q15089
['Q5990', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?z WHERE { resource:Q5990 property:P1376 ?z . ?z rdf:type ontology:Q15089 }
Vercelli
action filter_type
action find
entity Vercelli
relation capital of
type province of Italy
['Vercelli', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?z WHERE { resource:Vercelli property:capital_of ?z . ?z rdf:type ontology:province_of_Italy }
[]
province of Italy
Q15096
SYSTEM
Province of Vercelli
Q15096
(Q5990,P1376,c(Q15089))
action filter_type
action find
entity Q5990
relation P1376
type Q15089
The [ANSWER] has Vercelli as its capital
['Q5990', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?z WHERE { resource:Q5990 property:P1376 ?z . ?z rdf:type ontology:Q15089 }
Province of Vercelli
The Province of Vercelli has Vercelli as its capital
Province of Vercelli
action filter_type
action find
entity Vercelli
relation capital of
type province of Italy
['Vercelli', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?z WHERE { resource:Vercelli property:capital_of ?z . ?z rdf:type ontology:province_of_Italy }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6285
Q15089
USER
And what about Varese?
(Q6285,P1376,c(Q15089))
action filter_type
action find
entity Q6285
relation P1376
type Q15089
['Q6285', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?m WHERE { resource:Q6285 property:P1376 ?m . ?m rdf:type ontology:Q15089 }
Varese
action filter_type
action find
entity Varese
relation capital of
type province of Italy
['Varese', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?m WHERE { resource:Varese property:capital_of ?m . ?m rdf:type ontology:province_of_Italy }
[]
province of Italy
Q16299
SYSTEM
Province of Varese
Q16299
(Q6285,P1376,c(Q15089))
action filter_type
action find
entity Q6285
relation P1376
type Q15089
[ANSWER]
['Q6285', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?m WHERE { resource:Q6285 property:P1376 ?m . ?m rdf:type ontology:Q15089 }
Province of Varese
Province of Varese
action filter_type
action find
entity Varese
relation capital of
type province of Italy
['Varese', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?m WHERE { resource:Varese property:capital_of ?m . ?m rdf:type ontology:province_of_Italy }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16299 Q38
P17
Q15617994
USER
Is Province of Varese situated in Italy ?
(Q16299,P17,Q38)
action is_in
entity Q38
action find
entity Q16299
relation P17
['Q16299', 'P17', 'Q38']
ASK WHERE { resource:Q16299 property:P17 resource:Q38 }
Province of Varese Italy
action is_in
entity Italy
action find
entity Province of Varese
relation country
['Province of Varese', 'country', 'Italy']
ASK WHERE { resource:Province_of_Varese property:country resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q16299,P17,Q38)
action is_in
entity Q38
action find
entity Q16299
relation P17
[ANSWER]
['Q16299', 'P17', 'Q38']
ASK WHERE { resource:Q16299 property:P17 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Province of Varese
relation country
['Province of Varese', 'country', 'Italy']
ASK WHERE { resource:Province_of_Varese property:country resource:Italy }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q386724 Q11060274
USER
Which names are expressed in max number of works or prints ?
(c(Q386724)|c(Q11060274),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
[[{'concept': 'Q386724'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?h WHERE { { ?r property:P180 ?h . ?r rdf:type ontology:Q11060274 . ?h rdf:type ontology:Q82799 } UNION { ?r property:P180 ?h . ?h rdf:type ontology:Q82799 . ?r rdf:type ontology:Q386724 } } GROUP BY ?h } } . FILTER ( ?x = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { VALUES ( ?k ) { ( ontology:Q11060274 ) ( ontology:Q386724 ) } . ?w rdf:type ?k } GROUP BY ?s } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type print
[[{'concept': 'work'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?h WHERE { { ?r property:depicts ?h . ?r rdf:type ontology:print . ?h rdf:type ontology:name } UNION { ?r property:depicts ?h . ?h rdf:type ontology:name . ?r rdf:type ontology:work } } GROUP BY ?h } } . FILTER ( ?x = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { VALUES ( ?k ) { ( ontology:print ) ( ontology:work ) } . ?w rdf:type ?k } GROUP BY ?s } }
[]
name work print
Q5
SYSTEM
human
Q5
(c(Q386724)|c(Q11060274),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
[ANSWER] is expressed in max number of works or prints
[[{'concept': 'Q386724'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?h WHERE { { ?r property:P180 ?h . ?r rdf:type ontology:Q11060274 . ?h rdf:type ontology:Q82799 } UNION { ?r property:P180 ?h . ?h rdf:type ontology:Q82799 . ?r rdf:type ontology:Q386724 } } GROUP BY ?h } } . FILTER ( ?x = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { VALUES ( ?k ) { ( ontology:Q11060274 ) ( ontology:Q386724 ) } . ?w rdf:type ?k } GROUP BY ?s } }
human
Human is expressed in max number of works or prints
human
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type work
action find_reverse_tuple_counts
relation depicts
type name
type print
[[{'concept': 'work'}, {'concept': 'print'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) ?h WHERE { { ?r property:depicts ?h . ?r rdf:type ontology:print . ?h rdf:type ontology:name } UNION { ?r property:depicts ?h . ?h rdf:type ontology:name . ?r rdf:type ontology:work } } GROUP BY ?h } } . FILTER ( ?x = ?l ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) ?s WHERE { VALUES ( ?k ) { ( ontology:print ) ( ontology:work ) } . ?w rdf:type ?k } GROUP BY ?s } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q5990
P19 P21
Q502895
USER
Which people have location of birth at Vercelli and have male as the sex ?
AND((c(Q502895),P19,Q5990), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5990
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q5990'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h property:P19 resource:Q5990 . ?h property:P21 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
male Vercelli
action filter_type
action intersection
action find_reverse
entity Vercelli
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Vercelli'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h property:place_of_birth resource:Vercelli . ?h property:gender resource:male . ?h rdf:type ontology:common_name }
[]
common name
Q6998439 Q3383776 Q3767863 Q988642 Q988690 Q3766881 Q3613905 Q524582 Q3725590 Q3770637
SYSTEM
Some of them are Archimede Bottazzi, Pierre Artaudi, Giovanni Palma, Alfredo Bajardi, Luigi Bajardi, Giovanni Bottino Barzizza, Amedeo Peyron, Louis Boulanger, Enrico Allorio, Giuseppe Garrone
Q12795819 Q3619630 Q20902404 Q869216 Q3633248 Q3609293 Q3616795 Q1607067 Q3107053 Q3372573 Q3659543 Q4015445 Q16597348 Q21914870 Q1395790 Q18590055 Q466638 Q3756677 Q1486641 Q3839381 Q535521 Q3659388 Q529189 Q3770509 Q3751552 Q3742676 Q3659635 Q3609124 Q15617281 Q3383776 Q3564972 Q1461136 Q3659433 Q3839731 Q3992578 Q1044285 Q3956216 Q3741882 Q16135555 Q609055 Q3904157 Q3766096 Q679495 Q4002970 Q3770341 Q1403420 Q2634709 Q16562520 Q3771432 Q508165 Q1491246 Q2835592 Q988642 Q2264958 Q3703583 Q18224288 Q3770637 Q2055429 Q11816612 Q2602307 Q3425640 Q3719531 Q16027584 Q3751315 Q3938565 Q3725590 Q20954159 Q3635054 Q16575919 Q3742254 Q4007865 Q3904188 Q3764694 Q506085 Q723583 Q4007829 Q2144459 Q3958509 Q647563 Q3638726 Q3610031 Q19721680 Q3731968 Q22069319 Q19750519 Q4006399 Q3848481 Q3724277 Q3604376 Q3659803 Q3766467 Q3659945 Q16203877 Q3848568 Q3060974 Q3707133 Q986195 Q3734289 Q3771024 Q3703626 Q470524 Q3767862 Q3767863 Q1486112 Q1405146 Q3852497 Q5200594 Q3617030 Q18224140 Q3619170 Q18222686 Q3767974 Q8506 Q3758748 Q6757530 Q1462079 Q23690152 Q1403893 Q19567751 Q3903348 Q3838567 Q3766881 Q3702640 Q3765554 Q16526658 Q3695255 Q3848766 Q695861 Q3768184 Q3771158 Q3849255 Q3851482 Q3956208 Q3956113 Q3758923 Q3617158 Q1045097 Q916468 Q1157032 Q524582 Q986333 Q16559708 Q16561034 Q15708195 Q3933032 Q1876303 Q2094364 Q2292457 Q3613905 Q3992836 Q3104278 Q950109 Q15936316 Q16561071 Q16560522 Q2290168 Q3720398 Q16151616 Q3771189 Q4002968 Q4013280 Q3665503 Q2719917 Q3915676 Q3609820 Q3761123 Q3658954 Q3619951 Q2197784 Q17364579 Q4483063 Q6998439 Q2496147 Q3839711 Q2602999 Q1540189 Q3771263 Q988690 Q3737727 Q3852313 Q3845117
AND((c(Q502895),P19,Q5990), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5990
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have location of birth at Vercelli and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q5990'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h property:P19 resource:Q5990 . ?h property:P21 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
Mario Marazzani Antonio Garbasso Paolo Barbero Giuseppe Agù Baldassarre Audiberti Aldo Pondrano Angeleri Luigi Casalino Giovanni Battista Calandra Ermando Malinverni Carlo Luigi Buronzo del Signore Vittorio Mero Roberto Sbaratto Carlo Guala Francesco Antonio Vallotti Carlo Boggio Alessandro Roberto Gabriele Savino Giovanni Brutto Luigi Bozino Angelo Agostini Carlo Galante Garrone Luigi Galleani Giuseppe Failla Franco Ricciardiello Ferdinando Santagostino Carlo Molinaro Aldo Beretta Franco Baucè Pierre Artaudi Nino Malinverni Francesco Borello Carlo Giovanni Testori Luigi Guala Tomaso Staiti di Cuddia delle Chiuse Natale Balossino Sergio Pensotti Federico Roncarolo Hugues de Verceil Eusebio Castigliano Pietro Perotti Giovan Battista Pirovano Ugo Ferrante Uguccione Caqualoro Giuseppe Cominetti Remigio Bellini Giovanni Pellielo Gustavo Gay Giuseppe Seccatore Vittorio Ghidella Luigi Caligaris Alfredo Gatti Alfredo Bajardi Eugenio Brunetta d'Usseaux Davide Micillo Alessandro Pellegrini Giuseppe Garrone Niccolò Barbieri Pierino Bertolazzo Franco Bertinetti Renzo Monti Edoardo Arborio Mella Jean-Baptiste Vercellin Franco Fontana Roberto Amadè Enrico Allorio Guido Minghetti Barnaba Cagnoli Marco Rossignoli Feliciano Gattinara di Gattinara Valerio Castronovo Pietro Povero Gino Pensotti Luis Andreoni Pietro Ferraris Valeriano Ottino Renzo Genta Severino Rosso Giuseppe Cavanna Bernardino Peyron Alessandro Galante Garrone Marco Barnabino Ermenegildo Bertola Giuseppe Berta Antonio Roasio Urbano Rattazzi iuniore Mario Curti Emiliano Avogadro della Motta Achille Giovanni Cagna Carlo Rosaspina Giovanni Antonio Ranza Carlo Verga Alessandro De Marco Mario Ferraris Eusebio Bava Diego Baiardi Guido Ara Eugenio Bergamasco Giuseppe Momo Davide Schaier Virginio Rosetta Giovanni Pallavicini Giovanni Palma Antonio Bruna Francesco Bergamasco Maurizio Ambrosini Eugenio Garrone Angelo Gilardino Gaudenzio Nazario Antonio Ambrogio Alciati Ennio Baiardi Giovanni Pramaggiore Il Sodoma Gastone Cecconello Marco Falcone Ermes Borsetti Ettore Berra Angelo Beltaro Giovanni Graziano Piero Romagnolo Luciano Degara Giovanni Bottino Barzizza Dario Perucca Giorgio Liuzzi Angelo Bredo Costa Mario Maratelli Carlo Pellion di Persano Giovanni Stefano Aiazza Giuseppe Parodi Mario Zanello Massimo Struffi Sergio Pagnacco Sergio Ferraris Gaudenzio Sereno Angelo Piccaluga Alberto Barberis Dante Amarilli Domenico Marocchino Louis Boulanger Mario Ardissone Giovanni Agostino Perotti Giuseppe Servetto Vittorio Mandelli Renzo Masoero Carlo Corna Pietro Berra Guala Bicchieri Amedeo Peyron Tommaso Raspino Gerolamo Giovenone Piero Pozzi Felice Avogadro di Quinto Giuseppe Tosi Giulio Libano Antonio Labacco Egidio Scansetti Marcello Bertinetti Giuseppe Peretta Uguccio Borromeo Vincenzo Fresia Cesare Picco Teobaldo Depetrini Roberto Sambonet Alessandro Avogadro di Casanova Germano Lanino Carlo Alberto Quario Antonio Nicolazzini William of Montevergine Vittorio Florio Bernardo Ferrara Archimede Bottazzi Pietro Arborio Luigi Giuliano Marcello Bertinetti Walter Carasso Giuseppe Pozzo Luigi Bajardi Fabio Ghidoni Mattia Rovatti Manuele Cecconello
Archimede Bottazzi, Pierre Artaudi, Giovanni Palma, Alfredo Bajardi, Luigi Bajardi, Giovanni Bottino Barzizza, Amedeo Peyron, Louis Boulanger, Enrico Allorio and Giuseppe Garrone have location of birth at Vercelli and have male as the sex
Archimede Bottazzi Pierre Artaudi Giovanni Palma Alfredo Bajardi Luigi Bajardi Giovanni Bottino Barzizza Amedeo Peyron Louis Boulanger Enrico Allorio Giuseppe Garrone
action filter_type
action intersection
action find_reverse
entity Vercelli
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Vercelli'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h property:place_of_birth resource:Vercelli . ?h property:gender resource:male . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atleast 1373 people ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1373
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?r ) WHERE { ?y property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?r >= 1373 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1373
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?r ) WHERE { ?y property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?r >= 1373 ) }
[]
musical instrument common name
Q5994 Q46185 Q8338
SYSTEM
piano, bass guitar, trumpet
Q46185 Q5994 Q8338 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1373
[ANSWERS] are played by atleast 1373 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?r ) WHERE { ?y property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?r >= 1373 ) }
bass guitar piano trumpet violin organ drum kit
Piano, bass guitar and trumpet are played by atleast 1373 people
piano bass guitar trumpet
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1373
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?r ) WHERE { ?y property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?r >= 1373 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P870
Q34379 Q207628 Q9748
USER
How many musical instruments are the instrumentations used in approximately the same number of musical compositions or concertoes as that musical instrument ?
(c(Q207628)|c(Q9748),P870,c(Q34379))
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q9748 }
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:concerto }
[]
musical instrument musical composition concerto
Comparative|Count over More/Less|Mult. entity type|Clarification
Q46185
SYSTEM
Did you mean bass guitar ?
(c(Q207628)|c(Q9748),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q9748 }
Did you mean bass guitar ?
bass guitar
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:concerto }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q207628)|c(Q9748),P870,c(Q34379))
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
[]
SYSTEM
17
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q1444 Q39777 Q11404 Q206987 Q81982
(c(Q207628)|c(Q9748),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q9748'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q207628 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q9748 }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca drum vibraphone harpsichord
17
[[{'concept': 'musical composition'}, {'concept': 'concerto'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_composition . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:concerto }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5990
P190
Q56061
USER
Which administrative territory is twin town of Vercelli ?
(Q5990,P190,c(Q56061))
action filter_type
action find
entity Q5990
relation P190
type Q56061
['Q5990', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q5990 property:P190 ?j . ?j rdf:type ontology:Q56061 }
Vercelli
action filter_type
action find
entity Vercelli
relation sister city
type administrative territorial entity
['Vercelli', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Vercelli property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q48292
SYSTEM
Arles
Q48292
(Q5990,P190,c(Q56061))
action filter_type
action find
entity Q5990
relation P190
type Q56061
The [ANSWER] is twin town of Vercelli
['Q5990', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q5990 property:P190 ?j . ?j rdf:type ontology:Q56061 }
Arles
The Arles is twin town of Vercelli
Arles
action filter_type
action find
entity Vercelli
relation sister city
type administrative territorial entity
['Vercelli', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Vercelli property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]