Simple Question (Direct)
Simple Question
Q719891
P20
Q56061
USER
Where did the demise of Jim Loscutoff occur ?
(Q719891,P20,c(Q56061))
action filter_type
action find
entity Q719891
relation P20
type Q56061
['Q719891', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q719891 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Jim Loscutoff
action filter_type
action find
entity Jim Loscutoff
relation place of death
type administrative territorial entity
['Jim Loscutoff', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jim_Loscutoff property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q257830
SYSTEM
Naples
Q257830
(Q719891,P20,c(Q56061))
action filter_type
action find
entity Q719891
relation P20
type Q56061
The demise of Jim Loscutoff occurred in [ANSWER]
['Q719891', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q719891 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Naples
The demise of Jim Loscutoff occurred in Naples
Naples
action filter_type
action find
entity Jim Loscutoff
relation place of death
type administrative territorial entity
['Jim Loscutoff', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jim_Loscutoff property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q719891
P1196
Q1931388
USER
What situation did Jim Loscutoff die in ?
(Q719891,P1196,c(Q1931388))
action filter_type
action find
entity Q719891
relation P1196
type Q1931388
['Q719891', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?e WHERE { resource:Q719891 property:P1196 ?e . ?e rdf:type ontology:Q1931388 }
Jim Loscutoff
action filter_type
action find
entity Jim Loscutoff
relation manner of death
type cause of death
['Jim Loscutoff', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?e WHERE { resource:Jim_Loscutoff property:manner_of_death ?e . ?e rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q719891,P1196,c(Q1931388))
action filter_type
action find
entity Q719891
relation P1196
type Q1931388
Jim Loscutoff died of [ANSWER]
['Q719891', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?e WHERE { resource:Q719891 property:P1196 ?e . ?e rdf:type ontology:Q1931388 }
natural causes
Jim Loscutoff died of natural causes
natural causes
action filter_type
action find
entity Jim Loscutoff
relation manner of death
type cause of death
['Jim Loscutoff', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?e WHERE { resource:Jim_Loscutoff property:manner_of_death ?e . ?e rdf:type ontology:cause_of_death }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1278407
Q1931388
USER
And what about Patrick Hamilton?
(Q1278407,P1196,c(Q1931388))
action filter_type
action find
entity Q1278407
relation P1196
type Q1931388
['Q1278407', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?r WHERE { resource:Q1278407 property:P1196 ?r . ?r rdf:type ontology:Q1931388 }
Patrick Hamilton
action filter_type
action find
entity Patrick Hamilton
relation manner of death
type cause of death
['Patrick Hamilton', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?r WHERE { resource:Patrick_Hamilton property:manner_of_death ?r . ?r rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q1278407,P1196,c(Q1931388))
action filter_type
action find
entity Q1278407
relation P1196
type Q1931388
[ANSWER]
['Q1278407', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?r WHERE { resource:Q1278407 property:P1196 ?r . ?r rdf:type ontology:Q1931388 }
natural causes
natural causes
action filter_type
action find
entity Patrick Hamilton
relation manner of death
type cause of death
['Patrick Hamilton', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?r WHERE { resource:Patrick_Hamilton property:manner_of_death ?r . ?r rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q40801
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories have adopted greater number of people or holidays as their patron saint than Borca di Cadore ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action greater
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 Q40801
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?c ) WHERE { VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?v rdf:type ?x } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } . resource:Q40801 property:P417 ?l } } . FILTER ( ?c > ?w ) }
Borca di Cadore
action greater
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 Borca di Cadore
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?c ) WHERE { VALUES ( ?x ) { ( ontology:common_name ) ( ontology:holiday ) } . ?v rdf:type ?x } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } . resource:Borca_di_Cadore property:patron_saint ?l } } . FILTER ( ?c > ?w ) }
[]
common name holiday administrative territorial entity
Q39519 Q220
SYSTEM
Brinzio, Rome
Q39519 Q220
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action greater
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 Q40801
relation P417
type Q502895
type Q1445650
[ANSWERS] have adopted greater number of people or holidays as their patron saint than Borca di Cadore
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?c ) WHERE { VALUES ( ?x ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?v rdf:type ?x } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } . resource:Q40801 property:P417 ?l } } . FILTER ( ?c > ?w ) }
Brinzio Rome
Brinzio and Rome have adopted greater number of people or holidays as their patron saint than Borca di Cadore
Brinzio Rome
action greater
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 Borca di Cadore
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?v ) AS ?c ) WHERE { VALUES ( ?x ) { ( ontology:common_name ) ( ontology:holiday ) } . ?v rdf:type ?x } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { { ?l rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } . resource:Borca_di_Cadore property:patron_saint ?l } } . FILTER ( ?c > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q380189
P417
Q502895 Q1445650 Q56061
USER
And also tell me about Toblach?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action greater
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 Q380189
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?i WHERE { VALUES ( ?j ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?u rdf:type ?j } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Q380189 property:P417 ?w . { { ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1445650 } } } } . FILTER ( ?h > ?d ) }
Toblach
action greater
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 Toblach
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?i WHERE { VALUES ( ?j ) { ( ontology:common_name ) ( ontology:holiday ) } . ?u rdf:type ?j } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Toblach property:patron_saint ?w . { { ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:holiday } } } } . FILTER ( ?h > ?d ) }
[]
common name holiday administrative territorial entity
Q39519 Q220
SYSTEM
Brinzio, Rome
Q39519 Q220
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action greater
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 Q380189
relation P417
type Q502895
type Q1445650
[ANSWERS]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?i WHERE { VALUES ( ?j ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?u rdf:type ?j } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Q380189 property:P417 ?w . { { ?w rdf:type ontology:Q502895 } UNION { ?w rdf:type ontology:Q1445650 } } } } . FILTER ( ?h > ?d ) }
Brinzio Rome
Brinzio Rome
action greater
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 Toblach
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?i WHERE { VALUES ( ?j ) { ( ontology:common_name ) ( ontology:holiday ) } . ?u rdf:type ?j } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Toblach property:patron_saint ?w . { { ?w rdf:type ontology:common_name } UNION { ?w rdf:type ontology:holiday } } } } . FILTER ( ?h > ?d ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P417
Q1445650 Q56061
USER
Which administrative territories have adopted around the same number of holidays as their patron saint as that administrative territory ?
(c(Q56061),P417,c(Q1445650))
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
holiday administrative territorial entity
Comparative|More/Less|Single entity type|Clarification
Q220
SYSTEM
Did you mean Rome ?
(c(Q56061),P417,c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Did you mean Rome ?
Rome
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Comparative Reasoning (All)
USER
No, I meant Brinzio. Could you tell me the answer for that?
(c(Q56061),P417,c(Q1445650))
Q39519
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
[]
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q264716 Q5818 Q187352 Q11974 Q12883498 Q40801 Q212841 Q54494 Q454875 Q14209773 Q50057 Q34111 Q117388 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q6221 Q2028 Q46718 Q929022 Q641 Q46165 Q649 Q58463 Q3395964 Q73489 Q54119 Q53825 Q200908 Q15090 Q81258 Q36647 Q13375 Q47074 Q59257 Q15088 Q4361 Q2914723 Q10305 Q53265 Q6340 Q101229 Q100129 Q52547 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q82208 Q116440 Q2284679 Q3557616 Q374108 Q3562704 Q220 Q90 Q496890 Q297224 Q431389 Q5991813 Q380189 Q617 Q470461 Q259039 Q733574 Q54556 Q932648 Q487786 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q100943 Q51400 Q504216 Q244193 Q1747381 Q51315 Q492475 Q334577 Q210470 Q39493 Q11959 Q329984 Q47034 Q15095 Q215080 Q270288 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q102820 Q15487 Q244207 Q1957 Q50074 Q1897 Q46864
(c(Q56061),P417,c(Q1445650))
[ANSWERS] have adopted around the same number of holidays as their patron saint as that administrative territory
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Carzano Córdoba Kavala Las Palmas de Gran Canaria Pano Platres Borca di Cadore Drama Belvedere di Spinello Amarante Municipality San Lorenzo de' Picenardi Cagnano Amiterno Pozzallo Strangolagalli Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Brescia Verona Carrè Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Koufalia Camerino San Pedro Altilia Rethymno Lleida Padula Cork Pisa Aielli Montefortino Tarragona Curitiba Nemausus Zaragoza Gemona del Friuli Castel Giorgio Martinengo Calvenzano Campomaggiore Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Kastritsa Arpino General Alvear, Mendoza Platres Altrei Molista Rome Paris Balestrate Padergnone Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Giardinello Istiaia Africo Didymoteicho Orihuela Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Sorbolo Spoltore St. Martin in Passeier Cagno Polykastro Villamagna Valença Quetzaltenango Katerini Cantello Alicante Úbeda Espoo Albacete Machala Riccò del Golfo di Spezia Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Nibbiano Berga Campione d'Italia Vologda Castellafiume Cagliari Arcugnano
Moscow, Madrid and Milan have adopted around the same number of holidays as their patron saint as that administrative territory
Moscow Madrid Milan
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1000232
P138
Q82799 Q79529 Q56061
USER
Which administrative territories have greater number of names and chemical substances as their toponym than Falcon Heights ?
(c(Q56061),P138,c(Q82799)|c(Q79529))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q79529
action count
action filter_multi_types
action find
entity Q1000232
relation P138
type Q82799
type Q79529
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?c ) WHERE { { ?p property:P138 ?h . ?p rdf:type ontology:Q56061 . ?h rdf:type ontology:Q82799 } UNION { ?p property:P138 ?h . ?p rdf:type ontology:Q56061 . ?h rdf:type ontology:Q79529 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q1000232 property:P138 ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q82799 ) ( ontology:Q79529 ) } } } } . FILTER ( ?c > ?v ) }
Falcon Heights
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action count
action filter_multi_types
action find
entity Falcon Heights
relation named after
type name
type chemical substance
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?c ) WHERE { { ?p property:named_after ?h . ?p rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:name } UNION { ?p property:named_after ?h . ?p rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:chemical_substance } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Falcon_Heights property:named_after ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:name ) ( ontology:chemical_substance ) } } } } . FILTER ( ?c > ?v ) }
[]
name chemical substance administrative territorial entity
Q167895 Q103661 Q3239732
SYSTEM
Kalamata, Apatity, Sulphur
Q167895 Q3239732 Q1620075 Q103661
(c(Q56061),P138,c(Q82799)|c(Q79529))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q79529
action count
action filter_multi_types
action find
entity Q1000232
relation P138
type Q82799
type Q79529
[ANSWERS] have greater number of names and chemical substances as their toponym than Falcon Heights
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?c ) WHERE { { ?p property:P138 ?h . ?p rdf:type ontology:Q56061 . ?h rdf:type ontology:Q82799 } UNION { ?p property:P138 ?h . ?p rdf:type ontology:Q56061 . ?h rdf:type ontology:Q79529 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q1000232 property:P138 ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q82799 ) ( ontology:Q79529 ) } } } } . FILTER ( ?c > ?v ) }
Kalamata Sulphur Hippos Apatity
Kalamata, Apatity and Sulphur have greater number of names and chemical substances as their toponym than Falcon Heights
Kalamata Apatity Sulphur
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action count
action filter_multi_types
action find
entity Falcon Heights
relation named after
type name
type chemical substance
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?c ) WHERE { { ?p property:named_after ?h . ?p rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:name } UNION { ?p property:named_after ?h . ?p rdf:type ontology:administrative_territorial_entity . ?h rdf:type ontology:chemical_substance } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Falcon_Heights property:named_after ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:name ) ( ontology:chemical_substance ) } } } } . FILTER ( ?c > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5425343
P138
Q82799 Q79529 Q56061
USER
And how about FELDA L.B. Johnson?
(c(Q56061),P138,c(Q82799)|c(Q79529))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q79529
action count
action filter_multi_types
action find
entity Q5425343
relation P138
type Q82799
type Q79529
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?z WHERE { VALUES ( ?a ) { ( ontology:Q82799 ) ( ontology:Q79529 ) } . ?w rdf:type ?a } GROUP BY ?z } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q5425343 property:P138 ?l . { { ?l rdf:type ontology:Q82799 } UNION { ?l rdf:type ontology:Q79529 } } } } }
FELDA L.B. Johnson
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action count
action filter_multi_types
action find
entity FELDA L.B. Johnson
relation named after
type name
type chemical substance
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?z WHERE { VALUES ( ?a ) { ( ontology:name ) ( ontology:chemical_substance ) } . ?w rdf:type ?a } GROUP BY ?z } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:FELDA_L.B._Johnson property:named_after ?l . { { ?l rdf:type ontology:name } UNION { ?l rdf:type ontology:chemical_substance } } } } }
[]
name chemical substance administrative territorial entity
Q167895 Q103661 Q3239732
SYSTEM
Kalamata, Apatity, Sulphur
Q167895 Q3239732 Q1620075 Q103661
(c(Q56061),P138,c(Q82799)|c(Q79529))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q82799
action find_tuple_counts
relation P138
type Q56061
type Q79529
action count
action filter_multi_types
action find
entity Q5425343
relation P138
type Q82799
type Q79529
[ANSWERS]
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q82799'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?z WHERE { VALUES ( ?a ) { ( ontology:Q82799 ) ( ontology:Q79529 ) } . ?w rdf:type ?a } GROUP BY ?z } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q5425343 property:P138 ?l . { { ?l rdf:type ontology:Q82799 } UNION { ?l rdf:type ontology:Q79529 } } } } }
Kalamata Sulphur Hippos Apatity
Kalamata Apatity Sulphur
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type name
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action count
action filter_multi_types
action find
entity FELDA L.B. Johnson
relation named after
type name
type chemical substance
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'name'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?z WHERE { VALUES ( ?a ) { ( ontology:name ) ( ontology:chemical_substance ) } . ?w rdf:type ?a } GROUP BY ?z } . FILTER ( ?s > ?c ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:FELDA_L.B._Johnson property:named_after ?l . { { ?l rdf:type ontology:name } UNION { ?l rdf:type ontology:chemical_substance } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q167895
P19 P21
Q502895
USER
Which people were born at Kalamata and have the gender as male ?
AND((c(Q502895),P19,Q167895), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q167895
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q167895'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P21 resource:Q6581097 . ?q property:P19 resource:Q167895 . ?q rdf:type ontology:Q502895 }
male Kalamata
action filter_type
action intersection
action find_reverse
entity Kalamata
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Kalamata'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:gender resource:male . ?q property:place_of_birth resource:Kalamata . ?q rdf:type ontology:common_name }
[]
common name
Q4755363 Q3559918 Q1367117 Q12881557 Q655289 Q3876966 Q12873921 Q16512517 Q12879656 Q16194919
SYSTEM
Some of them are Andreas Apostolopoulos, Aris Galanopoulos, Kenny Stamatopoulos, Nikos Moulatsiotis, John Iliopoulos, Nikolaos Papanikolopoulos, Apostolos Georgiadis, Stavros Kostopoulos, Konstantinos Koumoundouros, Dimitrios Stefanakos
Q1820531 Q7129832 Q3341831 Q3108226 Q1367117 Q3562118 Q192923 Q12879656 Q1389713 Q3876966 Q451156 Q3563281 Q223312 Q3559918 Q12873921 Q1750520 Q6430202 Q16512510 Q16512517 Q7155964 Q16329257 Q6825101 Q7710139 Q7129829 Q12881557 Q4755363 Q655289 Q234716 Q3407316 Q1651424 Q18019556 Q14158533 Q7131554 Q16236483 Q16194919 Q13518215 Q4763011 Q2903065 Q15407958
AND((c(Q502895),P19,Q167895), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q167895
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Kalamata and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q167895'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P21 resource:Q6581097 . ?q property:P19 resource:Q167895 . ?q rdf:type ontology:Q502895 }
Nikolaos Georgeas Panagiotis Benakis Nikos Economopoulos Giórgos Petréas Kenny Stamatopoulos Christos Kalantzis Sokratis Papastathopoulos Konstantinos Koumoundouros Nikos Chatzis Nikolaos Papanikolopoulos William II of Villehardouin Mihalis Papagiannakis Georgios Fotakis Aris Galanopoulos Apostolos Georgiadis Vassilis Photopoulos Konstantinos Ventiris Andreas Skias Stavros Kostopoulos Pavlos Kouroupis Miltos Paschalidis Metropolitan Gerasimos (Michaleas) of San Francisco Thanasis Sentementes Panagiotis Bachramis Nikos Moulatsiotis Andreas Apostolopoulos John Iliopoulos Yanni Prokopis Pavlopoulos Nikolaos Doxaras Nikolaos Otoneos Giannis Christopoulos Panos Mihalopoulos Spyros Risvanis Dimitrios Stefanakos Yannis Livadas Angelos Skafidas Aris San Yorgos Moutsios
Andreas Apostolopoulos, Aris Galanopoulos, Kenny Stamatopoulos, Nikos Moulatsiotis, John Iliopoulos, Nikolaos Papanikolopoulos, Apostolos Georgiadis, Stavros Kostopoulos, Konstantinos Koumoundouros and Dimitrios Stefanakos were born at Kalamata and have the gender as male
Andreas Apostolopoulos Aris Galanopoulos Kenny Stamatopoulos Nikos Moulatsiotis John Iliopoulos Nikolaos Papanikolopoulos Apostolos Georgiadis Stavros Kostopoulos Konstantinos Koumoundouros Dimitrios Stefanakos
action filter_type
action intersection
action find_reverse
entity Kalamata
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Kalamata'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:gender resource:male . ?q property:place_of_birth resource:Kalamata . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do atleast 2275 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2275
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?t ) WHERE { ?a rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 . ?c property:P1303 ?a } GROUP BY ?a } . FILTER ( ?t >= 2275 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2275
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?t ) WHERE { ?a rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name . ?c property:instrument ?a } GROUP BY ?a } . FILTER ( ?t >= 2275 ) }
[]
musical instrument common name
SYSTEM
3
Q5994 Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2275
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?t ) WHERE { ?a rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 . ?c property:P1303 ?a } GROUP BY ?a } . FILTER ( ?t >= 2275 ) }
piano violin organ
3
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2275
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?t ) WHERE { ?a rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name . ?c property:instrument ?a } GROUP BY ?a } . FILTER ( ?t >= 2275 ) }
[]