Simple Question (Direct)
Simple Question
Q1610200
P21
Q290
USER
What is the sex of Giovanni Cavasin ?
(Q1610200,P21,c(Q290))
action filter_type
action find
entity Q1610200
relation P21
type Q290
['Q1610200', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q1610200 property:P21 ?q . ?q rdf:type ontology:Q290 }
Giovanni Cavasin
action filter_type
action find
entity Giovanni Cavasin
relation gender
type sex
['Giovanni Cavasin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Giovanni_Cavasin property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1610200,P21,c(Q290))
action filter_type
action find
entity Q1610200
relation P21
type Q290
The sex of Giovanni Cavasin is the [ANSWER]
['Q1610200', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q1610200 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of Giovanni Cavasin is the male
male
action filter_type
action find
entity Giovanni Cavasin
relation gender
type sex
['Giovanni Cavasin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Giovanni_Cavasin property:gender ?q . ?q rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q636497 Q603432
USER
How many stock characters and Mario franchise characters have the gender as that sex ?
(c(Q636497),P21,Q6581097) (c(Q603432),P21,Q6581097) (c(Q636497),P21,Q6581097) (c(Q603432),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q636497
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q603432
[{'concept': 'Q636497'}, 'P21', 'Q6581097'] [{'concept': 'Q603432'}, 'P21', 'Q6581097'] [{'concept': 'Q636497'}, 'P21', 'Q6581097'] [{'concept': 'Q603432'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:P21 resource:Q6581097 . ?d rdf:type ontology:Q636497 } UNION { ?d rdf:type ontology:Q603432 . ?d property:P21 resource:Q6581097 } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type stock character
action filter_type
action find_reverse
entity male
relation gender
type Mario franchise character
[{'concept': 'stock character'}, 'gender', 'male'] [{'concept': 'Mario franchise character'}, 'gender', 'male'] [{'concept': 'stock character'}, 'gender', 'male'] [{'concept': 'Mario franchise character'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:gender resource:male . ?d rdf:type ontology:stock_character } UNION { ?d rdf:type ontology:Mario_franchise_character . ?d property:gender resource:male } }
[]
stock character Mario franchise character
SYSTEM
105 stock characters and 5 Mario franchise characters
Q2282627 Q1602892 Q7180557 Q734932 Q21282620 Q2122739 Q2339776 Q4840834 Q2265812 Q209092 Q21282580 Q1982051 Q9049926 Q840291 Q4018330 Q2260732 Q2267760 Q3123072 Q2633611 Q3899725 Q6134747 Q2296652 Q3979081 Q3474448 Q21282792 Q1748380 Q2089370 Q907 Q3139745 Q1168830 Q79037 Q628248 Q3115785 Q1779361 Q12379 Q2746596 Q21282673 Q3272245 Q584585 Q635781 Q3139793 Q729150 Q2385117 Q327553 Q3155104 Q2538991 Q730684 Q2706880 Q2608870 Q21283095 Q2938033 Q2738066 Q2882340 Q15733252 Q17020732 Q841372 Q7546602 Q79015 Q2519989 Q176132 Q2513638 Q507241 Q954755 Q6313312 Q2578146 Q2551564 Q929273 Q1985548 Q5313076 Q2624426 Q653898 Q214174 Q3186050 Q1753322 Q5677044 Q2957689 Q977088 Q2469538 Q2467893 Q647105 Q2423326 Q1141527 Q2320292 Q865017 Q3192657 Q2367867 Q3483990 Q283111 Q1735229 Q2624716 Q557584 Q2604715 Q1087722 Q962777 Q592909 Q580074 Q2092660 Q728851 Q2944353 Q491609 Q226822 Q2982927 Q8003808 Q2071805 Q2916413 Q536138 Q2348262 Q7304660 Q1172694 Q2663956
(c(Q636497),P21,Q6581097) (c(Q603432),P21,Q6581097) (c(Q636497),P21,Q6581097) (c(Q603432),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q636497
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q603432
[ANSWER]
[{'concept': 'Q636497'}, 'P21', 'Q6581097'] [{'concept': 'Q603432'}, 'P21', 'Q6581097'] [{'concept': 'Q636497'}, 'P21', 'Q6581097'] [{'concept': 'Q603432'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:P21 resource:Q6581097 . ?d rdf:type ontology:Q636497 } UNION { ?d rdf:type ontology:Q603432 . ?d property:P21 resource:Q6581097 } }
Hush Hellion Phantom Eagle Hannibal King Brill Doc Samson Pyro Badger Sebastian Shaw V Robert Clayton Dean Kang the Conqueror Nico Minoru Magneto Wart General Zod Luke Cage General Immortus Bill Foster Percy Jackson James Gordon, Jr. Bishop Sylvester Pemberton Savage Steel Boss Paulie Pintero Deacon Frost Randle McMurphy Gordon Freeman Man-Bull Vanisher Spider-Man Varg Veum Gravity Harry Osborn Mario Ulik Thomas Bryan Reynolds Living Lightning Human Torch Blastaar Purple Man Punisher Corsair Daredevil Isaiah Bradley Black Manta Doomguy Sal Maroni Bowser Jr. Koopa David Lightman Cardiac Forgotten One Donyell Taylor Ahuizotl The Spider Juggernaut Smuggler Superman Wiccan Lord Voldemort Vandal Savage Riot Mister Fear Junior Juniper Lasher William Stryker Quicksilver Jigsaw Duke of Oil Ventriloquist Kraven the Hunter Yoshi Josiah X Kingpin Harvey Birdman Charcoal Sunfire Kull Norman Bates Banshee John Jameson Unus the Untouchable Avalanche Mister Fantastic Kangaroo Big Bad Wolf Silver Dagger Professor Moriarty Adam Warlock Franklin Richards Mr. Freeze Eddie Brock Morbius, the Living Vampire Rockslide Brainiac David North Spider-Man 2099 Sthenelus Hybrid Sentry Zorro Collector (comics) William "B.J." Blazkowicz Apocalypse Lord Farquaad Wario My Lord Bag of Rice Red Nine Erik Josten Carmine Falcone
105 stock characters and 5 Mario franchise characters
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type stock character
action filter_type
action find_reverse
entity male
relation gender
type Mario franchise character
[{'concept': 'stock character'}, 'gender', 'male'] [{'concept': 'Mario franchise character'}, 'gender', 'male'] [{'concept': 'stock character'}, 'gender', 'male'] [{'concept': 'Mario franchise character'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:gender resource:male . ?d rdf:type ontology:stock_character } UNION { ?d rdf:type ontology:Mario_franchise_character . ?d property:gender resource:male } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3608636 Q1610200
P19 P20
Q56061
USER
Which administrative territories did Giovanni Cavasin die and were Alberto Vettorelli born at ?
AND((Q1610200,P20,c(Q56061)), (Q3608636,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q1610200
relation P20
action find
entity Q3608636
relation P19
type Q56061
{'AND': [['Q1610200', 'P20', {'concept': 'Q56061'}], ['Q3608636', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { resource:Q1610200 property:P20 ?k . resource:Q3608636 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Alberto Vettorelli Giovanni Cavasin
action filter_type
action intersection
action find
entity Giovanni Cavasin
relation place of death
action find
entity Alberto Vettorelli
relation place of birth
type administrative territorial entity
{'AND': [['Giovanni Cavasin', 'place of death', {'concept': 'administrative territorial entity'}], ['Alberto Vettorelli', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Giovanni_Cavasin property:place_of_death ?k . resource:Alberto_Vettorelli property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q641
SYSTEM
Venice
Q641
AND((Q1610200,P20,c(Q56061)), (Q3608636,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q1610200
relation P20
action find
entity Q3608636
relation P19
type Q56061
Giovanni Cavasin died in [ANSWER]
{'AND': [['Q1610200', 'P20', {'concept': 'Q56061'}], ['Q3608636', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { resource:Q1610200 property:P20 ?k . resource:Q3608636 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Venice
Giovanni Cavasin died in Venice
Venice
action filter_type
action intersection
action find
entity Giovanni Cavasin
relation place of death
action find
entity Alberto Vettorelli
relation place of birth
type administrative territorial entity
{'AND': [['Giovanni Cavasin', 'place of death', {'concept': 'administrative territorial entity'}], ['Alberto Vettorelli', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Giovanni_Cavasin property:place_of_death ?k . resource:Alberto_Vettorelli property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have adopted lesser number of people or holidays as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q641
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Q641 property:P417 ?n . { { ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q1445650 } } } } . FILTER ( ?l < ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?l ) WHERE { { ?o rdf:type ontology:Q502895 . ?r rdf:type ontology:Q56061 . ?r property:P417 ?o } UNION { ?r rdf:type ontology:Q56061 . ?o rdf:type ontology:Q1445650 . ?r property:P417 ?o } } GROUP BY ?r } }
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Venice
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Venice property:patron_saint ?n . { { ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:holiday } } } } . FILTER ( ?l < ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?l ) WHERE { { ?o rdf:type ontology:common_name . ?r rdf:type ontology:administrative_territorial_entity . ?r property:patron_saint ?o } UNION { ?r rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:holiday . ?r property:patron_saint ?o } } GROUP BY ?r } }
[]
common name holiday administrative territorial entity
SYSTEM
0
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q641
relation P417
type Q502895
type Q1445650
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Q641 property:P417 ?n . { { ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q1445650 } } } } . FILTER ( ?l < ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?l ) WHERE { { ?o rdf:type ontology:Q502895 . ?r rdf:type ontology:Q56061 . ?r property:P417 ?o } UNION { ?r rdf:type ontology:Q56061 . ?o rdf:type ontology:Q1445650 . ?r property:P417 ?o } } GROUP BY ?r } }
0
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Venice
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { resource:Venice property:patron_saint ?n . { { ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:holiday } } } } . FILTER ( ?l < ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?l ) WHERE { { ?o rdf:type ontology:common_name . ?r rdf:type ontology:administrative_territorial_entity . ?r property:patron_saint ?o } UNION { ?r rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:holiday . ?r property:patron_saint ?o } } GROUP BY ?r } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1610200
P641
Q349
USER
Which sport was Giovanni Cavasin a part of ?
(Q1610200,P641,c(Q349))
action filter_type
action find
entity Q1610200
relation P641
type Q349
['Q1610200', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q349 . resource:Q1610200 property:P641 ?h }
Giovanni Cavasin
action filter_type
action find
entity Giovanni Cavasin
relation sport
type sport
['Giovanni Cavasin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sport . resource:Giovanni_Cavasin property:sport ?h }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1610200,P641,c(Q349))
action filter_type
action find
entity Q1610200
relation P641
type Q349
Which sport was Giovanni Cavasin a part of
['Q1610200', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q349 . resource:Q1610200 property:P641 ?h }
association football
Which sport was Giovanni Cavasin a part of
association football
action filter_type
action find
entity Giovanni Cavasin
relation sport
type sport
['Giovanni Cavasin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:sport . resource:Giovanni_Cavasin property:sport ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1610200
P27
Q15617994
USER
Which administrative territory is Giovanni Cavasin an inhabitant of ?
(Q1610200,P27,c(Q15617994))
action filter_type
action find
entity Q1610200
relation P27
type Q15617994
['Q1610200', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1610200 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Giovanni Cavasin
action filter_type
action find
entity Giovanni Cavasin
relation country of citizenship
type designation for an administrative territorial entity
['Giovanni Cavasin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Giovanni_Cavasin property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q1610200,P27,c(Q15617994))
action filter_type
action find
entity Q1610200
relation P27
type Q15617994
[ANSWER] is Giovanni Cavasin an inhabitant of
['Q1610200', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1610200 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Italy
Italy is Giovanni Cavasin an inhabitant of
Italy
action filter_type
action find
entity Giovanni Cavasin
relation country of citizenship
type designation for an administrative territorial entity
['Giovanni Cavasin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Giovanni_Cavasin property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1610200
P106
Q12737077
USER
What does Giovanni Cavasin do for a living ?
(Q1610200,P106,c(Q12737077))
action filter_type
action find
entity Q1610200
relation P106
type Q12737077
['Q1610200', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1610200 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Giovanni Cavasin
action filter_type
action find
entity Giovanni Cavasin
relation occupation
type occupation
['Giovanni Cavasin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Giovanni_Cavasin property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1610200,P106,c(Q12737077))
action filter_type
action find
entity Q1610200
relation P106
type Q12737077
[ANSWER] Giovanni Cavasin does for a living
['Q1610200', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1610200 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
association football player
Association football player Giovanni Cavasin does for a living
association football player
action filter_type
action find
entity Giovanni Cavasin
relation occupation
type occupation
['Giovanni Cavasin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Giovanni_Cavasin property:occupation ?h . ?h rdf:type ontology:occupation }
[]